msm-pcm-routing-v2.c 990 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951
  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. },
  23626. .probe = msm_routing_pcm_probe,
  23627. .remove = msm_routing_pcm_remove,
  23628. };
  23629. int msm_routing_check_backend_enabled(int fedai_id)
  23630. {
  23631. int i;
  23632. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  23633. /* bad ID assigned in machine driver */
  23634. pr_err("%s: bad MM ID\n", __func__);
  23635. return 0;
  23636. }
  23637. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  23638. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  23639. return msm_bedais[i].active;
  23640. }
  23641. return 0;
  23642. }
  23643. static int get_cal_type_index(int32_t cal_type)
  23644. {
  23645. int ret = -EINVAL;
  23646. switch (cal_type) {
  23647. case ADM_TOPOLOGY_CAL_TYPE:
  23648. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  23649. break;
  23650. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  23651. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  23652. break;
  23653. default:
  23654. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  23655. }
  23656. return ret;
  23657. }
  23658. static int msm_routing_set_cal(int32_t cal_type,
  23659. size_t data_size, void *data)
  23660. {
  23661. int ret = 0;
  23662. int cal_index;
  23663. pr_debug("%s\n", __func__);
  23664. cal_index = get_cal_type_index(cal_type);
  23665. if (cal_index < 0) {
  23666. pr_err("%s: Could not get cal index %d\n",
  23667. __func__, cal_index);
  23668. ret = -EINVAL;
  23669. goto done;
  23670. }
  23671. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  23672. if (ret < 0) {
  23673. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  23674. __func__, ret, cal_type);
  23675. ret = -EINVAL;
  23676. goto done;
  23677. }
  23678. /* Pre-load if it is ADM topology */
  23679. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  23680. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  23681. msm_routing_load_topology(data_size, data);
  23682. }
  23683. done:
  23684. return ret;
  23685. }
  23686. static void msm_routing_delete_cal_data(void)
  23687. {
  23688. pr_debug("%s\n", __func__);
  23689. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  23690. }
  23691. static int msm_routing_init_cal_data(void)
  23692. {
  23693. int ret = 0;
  23694. struct cal_type_info cal_type_info[] = {
  23695. {{ADM_TOPOLOGY_CAL_TYPE,
  23696. {NULL, NULL, NULL,
  23697. msm_routing_set_cal, NULL, NULL} },
  23698. {NULL, NULL, cal_utils_match_buf_num} },
  23699. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  23700. {NULL, NULL, NULL,
  23701. msm_routing_set_cal, NULL, NULL} },
  23702. {NULL, NULL, cal_utils_match_buf_num} },
  23703. };
  23704. pr_debug("%s\n", __func__);
  23705. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  23706. &cal_type_info[0]);
  23707. if (ret < 0) {
  23708. pr_err("%s: could not create cal type!\n",
  23709. __func__);
  23710. ret = -EINVAL;
  23711. goto err;
  23712. }
  23713. return ret;
  23714. err:
  23715. msm_routing_delete_cal_data();
  23716. return ret;
  23717. }
  23718. int __init msm_soc_routing_platform_init(void)
  23719. {
  23720. mutex_init(&routing_lock);
  23721. if (msm_routing_init_cal_data())
  23722. pr_err("%s: could not init cal data!\n", __func__);
  23723. afe_set_routing_callback(
  23724. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  23725. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  23726. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  23727. return platform_driver_register(&msm_routing_pcm_driver);
  23728. }
  23729. void msm_soc_routing_platform_exit(void)
  23730. {
  23731. msm_routing_delete_cal_data();
  23732. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  23733. mutex_destroy(&routing_lock);
  23734. platform_driver_unregister(&msm_routing_pcm_driver);
  23735. }
  23736. MODULE_DESCRIPTION("MSM routing platform driver");
  23737. MODULE_LICENSE("GPL v2");