msm-pcm-routing-v2.c 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321
  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 sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define LSM_FUNCTION_TEXT "LSM Function"
  113. static const char * const lsm_port_text[] = {
  114. "None",
  115. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  116. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  117. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  118. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  119. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  120. };
  121. struct msm_pcm_route_bdai_pp_params {
  122. u16 port_id; /* AFE port ID */
  123. unsigned long pp_params_config;
  124. bool mute_on;
  125. int latency;
  126. };
  127. static struct msm_pcm_route_bdai_pp_params
  128. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  129. {HDMI_RX, 0, 0, 0},
  130. {DISPLAY_PORT_RX, 0, 0, 0},
  131. };
  132. /*
  133. * The be_dai_name_table is passed to HAL so that it can specify the
  134. * BE ID for the BE it wants to enable based on the name. Thus there
  135. * is a matching table and structure in HAL that need to be updated
  136. * if any changes to these are made.
  137. */
  138. struct msm_pcm_route_bdai_name {
  139. unsigned int be_id;
  140. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  141. };
  142. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  143. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  144. int fe_id);
  145. static void msm_routing_load_topology(size_t data_size, void *data);
  146. static void msm_routing_unload_topology(uint32_t topology_id);
  147. static int msm_routing_get_bit_width(unsigned int format)
  148. {
  149. int bit_width;
  150. switch (format) {
  151. case SNDRV_PCM_FORMAT_S32_LE:
  152. bit_width = 32;
  153. break;
  154. case SNDRV_PCM_FORMAT_S24_LE:
  155. case SNDRV_PCM_FORMAT_S24_3LE:
  156. bit_width = 24;
  157. break;
  158. case SNDRV_PCM_FORMAT_S16_LE:
  159. default:
  160. bit_width = 16;
  161. }
  162. return bit_width;
  163. }
  164. static bool msm_is_resample_needed(int input_sr, int output_sr)
  165. {
  166. bool rc = false;
  167. if (input_sr != output_sr)
  168. rc = true;
  169. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  170. (rc ? "oh yes" : "not really"),
  171. input_sr, output_sr);
  172. return rc;
  173. }
  174. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  175. int channels)
  176. {
  177. int rc = 0;
  178. switch (topology) {
  179. case SRS_TRUMEDIA_TOPOLOGY_ID:
  180. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  181. msm_dts_srs_tm_init(port_id, copp_idx);
  182. break;
  183. case DS2_ADM_COPP_TOPOLOGY_ID:
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  185. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  186. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  187. is_custom_stereo_on);
  188. if (rc < 0)
  189. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  190. __func__, topology, port_id,
  191. is_custom_stereo_on, rc);
  192. break;
  193. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  194. if (is_ds2_on) {
  195. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  196. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  197. is_custom_stereo_on);
  198. if (rc < 0)
  199. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  200. __func__, topology, port_id, rc);
  201. } else {
  202. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  203. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  204. is_custom_stereo_on);
  205. if (rc < 0)
  206. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  207. __func__, topology, port_id, rc);
  208. }
  209. break;
  210. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  211. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  212. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  213. if (rc < 0)
  214. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  215. __func__, topology, port_id, copp_idx, rc);
  216. break;
  217. default:
  218. /* custom topology specific feature param handlers */
  219. break;
  220. }
  221. }
  222. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  223. {
  224. switch (topology) {
  225. case SRS_TRUMEDIA_TOPOLOGY_ID:
  226. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  227. msm_dts_srs_tm_deinit(port_id);
  228. break;
  229. case DS2_ADM_COPP_TOPOLOGY_ID:
  230. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  231. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  232. msm_ds2_dap_deinit(port_id);
  233. break;
  234. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  235. if (is_ds2_on) {
  236. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  237. msm_ds2_dap_deinit(port_id);
  238. } else {
  239. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_dolby_dap_deinit(port_id);
  241. }
  242. break;
  243. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  244. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  245. msm_qti_pp_asphere_deinit(port_id);
  246. break;
  247. default:
  248. /* custom topology specific feature deinit handlers */
  249. break;
  250. }
  251. }
  252. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  253. int path_type, int perf_mode)
  254. {
  255. int itr = 0, rc = 0;
  256. if ((path_type == ADM_PATH_PLAYBACK) &&
  257. (perf_mode == LEGACY_PCM_MODE) &&
  258. is_custom_stereo_on) {
  259. for (itr = 0; itr < payload.num_copps; itr++) {
  260. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  261. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  262. continue;
  263. }
  264. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  265. payload.port_id[itr],
  266. payload.copp_idx[itr],
  267. payload.session_id,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE);
  272. if (rc < 0)
  273. pr_err("%s: err setting custom stereo\n",
  274. __func__);
  275. }
  276. }
  277. }
  278. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  279. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  280. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  281. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  282. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  283. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  284. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  285. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  286. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  287. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  288. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  289. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_AFE_PCM_RX},
  291. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_TX},
  293. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AUXPCM_RX},
  295. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_TX},
  297. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_VOICE_PLAYBACK_TX},
  299. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE2_PLAYBACK_TX},
  301. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_INCALL_RECORD_RX},
  303. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_TX},
  305. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  306. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  307. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  308. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  309. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  310. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  311. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  312. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  313. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  314. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  315. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  316. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  317. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  318. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  319. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  320. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  321. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  322. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  323. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  327. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_QUAT_MI2S_RX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_TX},
  331. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_SEC_MI2S_RX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_TX},
  335. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_PRI_MI2S_RX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_TX},
  339. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_TERT_MI2S_RX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_TX},
  343. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_AUDIO_I2S_RX},
  345. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_SEC_AUXPCM_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_TX},
  349. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_PRI_SPDIF_RX},
  351. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_SEC_MI2S_RX_SD1},
  353. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_QUIN_MI2S_RX},
  355. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_TX},
  357. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_SENARY_MI2S_TX},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_RX_0},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_TX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_RX_1},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_TX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_RX_2},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_TX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_RX_3},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_TX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_RX_4},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_TX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_RX_5},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_TX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_RX_6},
  385. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_TX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_RX_7},
  389. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_TX_7},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_RX_0},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_TX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_RX_1},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_TX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_RX_2},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_TX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_RX_3},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_TX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_RX_4},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_TX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_RX_5},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_TX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_RX_6},
  417. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_TX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_RX_7},
  421. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_TX_7},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_RX_0},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_TX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_RX_1},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_TX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_RX_2},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_TX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_RX_3},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_TX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_RX_4},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_TX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_RX_5},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_TX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_RX_6},
  449. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_TX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_RX_7},
  453. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_TX_7},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_RX_0},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_TX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_RX_1},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_TX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_RX_2},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_TX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_RX_3},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_TX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_RX_4},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_TX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_RX_5},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_TX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_RX_6},
  481. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_TX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_RX_7},
  485. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_TX_7},
  487. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_RX_0},
  489. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_TX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_RX_1},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_TX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_RX_2},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_TX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_RX_3},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_TX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_RX_4},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_TX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_RX_5},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_TX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_RX_6},
  513. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_TX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_RX_7},
  517. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_TX_7},
  519. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_SEN_TDM_RX_0},
  521. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_TX_0},
  523. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_RX_1},
  525. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_TX_1},
  527. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_RX_2},
  529. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_TX_2},
  531. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_RX_3},
  533. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_TX_3},
  535. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_RX_4},
  537. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_TX_4},
  539. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_RX_5},
  541. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_TX_5},
  543. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_RX_6},
  545. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_TX_6},
  547. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_RX_7},
  549. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_TX_7},
  551. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT_BT_A2DP_RX},
  553. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_USB_AUDIO_RX},
  555. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_TX},
  557. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_DISPLAY_PORT},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT1},
  561. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_TERT_AUXPCM_RX},
  563. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_TX},
  565. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_QUAT_AUXPCM_RX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_TX},
  569. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUIN_AUXPCM_RX},
  571. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_TX},
  573. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_INT0_MI2S_RX},
  575. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_TX},
  577. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT1_MI2S_RX},
  579. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_TX},
  581. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT2_MI2S_RX},
  583. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_TX},
  585. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT3_MI2S_RX},
  587. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_TX},
  589. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT4_MI2S_RX},
  591. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_TX},
  593. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT5_MI2S_RX},
  595. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_TX},
  597. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT6_MI2S_RX},
  599. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_TX},
  601. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_SEN_AUXPCM_RX},
  603. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_TX},
  605. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SENARY_MI2S_RX},
  607. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_WSA_CDC_DMA_RX_0},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_TX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_RX_1},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_TX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_2},
  617. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_VA_CDC_DMA_TX_0},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_1},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_2},
  623. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_RX_CDC_DMA_RX_0},
  625. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_TX_CDC_DMA_TX_0},
  627. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_RX_CDC_DMA_RX_1},
  629. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_TX_CDC_DMA_TX_1},
  631. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_RX_CDC_DMA_RX_2},
  633. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_TX_CDC_DMA_TX_2},
  635. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_RX_CDC_DMA_RX_3},
  637. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_TX_CDC_DMA_TX_3},
  639. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_RX_CDC_DMA_RX_4},
  641. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_TX_CDC_DMA_TX_4},
  643. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_RX_CDC_DMA_RX_5},
  645. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_TX_CDC_DMA_TX_5},
  647. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_RX_CDC_DMA_RX_6},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_7},
  651. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_PRI_SPDIF_TX},
  653. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_SEC_SPDIF_RX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_TX},
  657. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  658. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  659. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  660. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_PRI_META_MI2S_RX},
  662. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_SEC_META_MI2S_RX},
  664. };
  665. /* Track ASM playback & capture sessions of DAI
  666. * Track LSM listen sessions
  667. */
  668. static struct msm_pcm_routing_fdai_data
  669. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  670. /* MULTIMEDIA1 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  673. /* MULTIMEDIA2 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA3 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA4 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA5 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA6 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA7*/
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA8 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA9 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* MULTIMEDIA10 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* MULTIMEDIA11 */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* MULTIMEDIA12 */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* MULTIMEDIA13 */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* MULTIMEDIA14 */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* MULTIMEDIA15 */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* MULTIMEDIA16 */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* MULTIMEDIA17 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* MULTIMEDIA18 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* MULTIMEDIA19 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* MULTIMEDIA20 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* MULTIMEDIA21 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* MULTIMEDIA22 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* MULTIMEDIA26 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* MULTIMEDIA27 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* MULTIMEDIA28 */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* MULTIMEDIA29 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* MULTIMEDIA30 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. /* VOIP */
  752. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  753. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  754. /* AFE_RX */
  755. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  756. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  757. /* AFE_TX */
  758. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  759. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  760. /* VOICE_STUB */
  761. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  762. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  763. /* DTMF_RX */
  764. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  765. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  766. /* QCHAT */
  767. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  768. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  769. /* VOLTE_STUB */
  770. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  771. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  772. /* LSM1 */
  773. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  774. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  775. /* LSM2 */
  776. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  777. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  778. /* LSM3 */
  779. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  780. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  781. /* LSM4 */
  782. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  783. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  784. /* LSM5 */
  785. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  786. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  787. /* LSM6 */
  788. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  789. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  790. /* LSM7 */
  791. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  792. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  793. /* LSM8 */
  794. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  795. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  796. /* VOICE2_STUB */
  797. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  798. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  799. /* VOICEMMODE1 */
  800. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  801. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  802. /* VOICEMMODE2 */
  803. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  804. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  805. };
  806. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  807. [MSM_BACKEND_DAI_MAX];
  808. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  809. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  810. static struct msm_pcm_stream_app_type_cfg
  811. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  812. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  813. /* The caller of this should acquire routing lock */
  814. void msm_pcm_routing_get_bedai_info(int be_idx,
  815. struct msm_pcm_routing_bdai_data *be_dai)
  816. {
  817. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  818. memcpy(be_dai, &msm_bedais[be_idx],
  819. sizeof(struct msm_pcm_routing_bdai_data));
  820. }
  821. /* The caller of this should acquire routing lock */
  822. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  823. struct msm_pcm_routing_fdai_data *fe_dai)
  824. {
  825. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  826. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  827. sizeof(struct msm_pcm_routing_fdai_data));
  828. }
  829. void msm_pcm_routing_acquire_lock(void)
  830. {
  831. mutex_lock(&routing_lock);
  832. }
  833. void msm_pcm_routing_release_lock(void)
  834. {
  835. mutex_unlock(&routing_lock);
  836. }
  837. static int msm_pcm_routing_get_app_type_idx(int app_type)
  838. {
  839. int idx;
  840. pr_debug("%s: app_type: %d\n", __func__, app_type);
  841. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  842. if (app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_info("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (lsm_app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_debug("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int get_port_id(int port_id)
  860. {
  861. int ret = port_id;
  862. if (port_id == AFE_LOOPBACK_TX) {
  863. /*
  864. * Return afe_loopback_tx_port_id if set. Else return
  865. * msm_ec_ref_port_id to maintain backward compatibility.
  866. */
  867. if (afe_loopback_tx_port_id != -1)
  868. ret = afe_loopback_tx_port_id;
  869. else
  870. ret = msm_ec_ref_port_id;
  871. }
  872. return ret;
  873. }
  874. static bool is_mm_lsm_fe_id(int fe_id)
  875. {
  876. bool rc = true;
  877. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  878. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  879. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  880. rc = false;
  881. }
  882. return rc;
  883. }
  884. /*
  885. * msm_pcm_routing_send_chmix_cfg:
  886. * send the channel mixer command to mix the input channels
  887. * into output channels.
  888. *
  889. * @fe_id: front end id
  890. * @ip_channel_cnt: input channel count
  891. * @op_channel_cnt: output channel count
  892. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  893. * @session_type: indicates session is of type TX or RX
  894. * @stream_type: indicates either Audio or Listen stream type
  895. */
  896. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  897. int op_channel_cnt, int *ch_wght_coeff,
  898. int session_type, int stream_type)
  899. {
  900. int rc = 0, idx = 0;
  901. int be_index = 0, port_id;
  902. unsigned int session_id = 0;
  903. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  904. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  905. stream_type);
  906. if (!is_mm_lsm_fe_id(fe_id)) {
  907. /* bad ID assigned in machine driver */
  908. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  909. return -EINVAL;
  910. }
  911. if (ch_wght_coeff == NULL) {
  912. pr_err("%s: Null channel weightage coefficients passed\n",
  913. __func__);
  914. return -EINVAL;
  915. }
  916. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  917. port_id = msm_bedais[be_index].port_id;
  918. if (!msm_bedais[be_index].active ||
  919. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  920. continue;
  921. session_id = fe_dai_map[fe_id][session_type].strm_id;
  922. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  923. unsigned long copp =
  924. session_copp_map[fe_id][session_type][be_index];
  925. if (!test_bit(idx, &copp))
  926. continue;
  927. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  928. session_id, ip_channel_cnt,
  929. op_channel_cnt, ch_wght_coeff,
  930. session_type, stream_type);
  931. if (rc < 0)
  932. pr_err("%s: err setting channel mix config\n",
  933. __func__);
  934. }
  935. }
  936. return 0;
  937. }
  938. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  939. /**
  940. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  941. * setting before use case start.
  942. *
  943. * @fe_id: frontend idx
  944. * @type: stream direction type
  945. * @params: parameters of channel mixer setting
  946. *
  947. * Return 0 for success
  948. */
  949. int msm_pcm_routing_set_channel_mixer_cfg(
  950. int fe_id, int type,
  951. struct msm_pcm_channel_mixer *params)
  952. {
  953. int i, j = 0;
  954. channel_mixer_v2[fe_id][type].enable = params->enable;
  955. channel_mixer_v2[fe_id][type].rule = params->rule;
  956. channel_mixer_v2[fe_id][type].input_channel =
  957. params->input_channel;
  958. channel_mixer_v2[fe_id][type].output_channel =
  959. params->output_channel;
  960. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  961. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  962. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  963. params->in_ch_map[i];
  964. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  965. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  966. params->out_ch_map[i];
  967. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  968. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  969. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  970. params->channel_weight[i][j];
  971. channel_mixer_v2[fe_id][type].override_in_ch_map =
  972. params->override_in_ch_map;
  973. channel_mixer_v2[fe_id][type].override_out_ch_map =
  974. params->override_out_ch_map;
  975. return 0;
  976. }
  977. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  978. int msm_pcm_routing_reg_stream_app_type_cfg(
  979. int fedai_id, int session_type, int be_id,
  980. struct msm_pcm_stream_app_type_cfg *cfg_data)
  981. {
  982. int ret = 0;
  983. if (cfg_data == NULL) {
  984. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  985. ret = -EINVAL;
  986. goto done;
  987. }
  988. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  989. __func__, fedai_id, session_type, be_id,
  990. cfg_data->app_type, cfg_data->acdb_dev_id,
  991. cfg_data->sample_rate);
  992. if (!is_mm_lsm_fe_id(fedai_id)) {
  993. pr_err("%s: Invalid machine driver ID %d\n",
  994. __func__, fedai_id);
  995. ret = -EINVAL;
  996. goto done;
  997. }
  998. if (session_type != SESSION_TYPE_RX &&
  999. session_type != SESSION_TYPE_TX) {
  1000. pr_err("%s: Invalid session type %d\n",
  1001. __func__, session_type);
  1002. ret = -EINVAL;
  1003. goto done;
  1004. }
  1005. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1006. pr_err("%s: Received out of bounds be_id %d\n",
  1007. __func__, be_id);
  1008. ret = -EINVAL;
  1009. goto done;
  1010. }
  1011. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1012. /*
  1013. * Store the BE ID of the configuration information set as the latest so
  1014. * the get mixer control knows what to return.
  1015. */
  1016. last_be_id_configured[fedai_id][session_type] = be_id;
  1017. done:
  1018. return ret;
  1019. }
  1020. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1021. /**
  1022. * msm_pcm_routing_get_stream_app_type_cfg
  1023. *
  1024. * Receives fedai_id, session_type, be_id, and populates app_type,
  1025. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1026. * -EINVAL and does not alter passed values.
  1027. *
  1028. * fedai_id - Passed value, front end ID for which app type config is wanted
  1029. * session_type - Passed value, session type for which app type config
  1030. * is wanted
  1031. * be_id - Returned value, back end device id the app type config data is for
  1032. * cfg_data - Returned value, configuration data used by app type config
  1033. */
  1034. int msm_pcm_routing_get_stream_app_type_cfg(
  1035. int fedai_id, int session_type, int *bedai_id,
  1036. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1037. {
  1038. int be_id;
  1039. int ret = 0;
  1040. if (bedai_id == NULL) {
  1041. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1042. ret = -EINVAL;
  1043. goto done;
  1044. } else if (cfg_data == NULL) {
  1045. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1046. ret = -EINVAL;
  1047. goto done;
  1048. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1049. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. } else if (session_type != SESSION_TYPE_RX &&
  1053. session_type != SESSION_TYPE_TX) {
  1054. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. }
  1058. be_id = last_be_id_configured[fedai_id][session_type];
  1059. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1060. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. }
  1064. *bedai_id = be_id;
  1065. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1066. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1067. __func__, fedai_id, session_type, *bedai_id,
  1068. cfg_data->app_type, cfg_data->acdb_dev_id,
  1069. cfg_data->sample_rate);
  1070. done:
  1071. return ret;
  1072. }
  1073. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1074. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1075. int cal_index)
  1076. {
  1077. struct list_head *ptr, *next;
  1078. struct cal_block_data *cal_block = NULL;
  1079. pr_debug("%s\n", __func__);
  1080. list_for_each_safe(ptr, next,
  1081. &cal_data[cal_index]->cal_blocks) {
  1082. cal_block = list_entry(ptr,
  1083. struct cal_block_data, list);
  1084. if (cal_utils_is_cal_stale(cal_block))
  1085. continue;
  1086. if (((struct audio_cal_info_adm_top *)cal_block
  1087. ->cal_info)->path == path) {
  1088. return cal_block;
  1089. }
  1090. }
  1091. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1092. return NULL;
  1093. }
  1094. static struct cal_block_data *msm_routing_find_topology(int path,
  1095. int app_type,
  1096. int acdb_id,
  1097. int cal_index,
  1098. bool exact)
  1099. {
  1100. struct list_head *ptr, *next;
  1101. struct cal_block_data *cal_block = NULL;
  1102. struct audio_cal_info_adm_top *cal_info;
  1103. pr_debug("%s\n", __func__);
  1104. list_for_each_safe(ptr, next,
  1105. &cal_data[cal_index]->cal_blocks) {
  1106. cal_block = list_entry(ptr,
  1107. struct cal_block_data, list);
  1108. if (cal_utils_is_cal_stale(cal_block))
  1109. continue;
  1110. cal_info = (struct audio_cal_info_adm_top *)
  1111. cal_block->cal_info;
  1112. if ((cal_info->path == path) &&
  1113. (cal_info->app_type == app_type) &&
  1114. (cal_info->acdb_id == acdb_id)) {
  1115. return cal_block;
  1116. }
  1117. }
  1118. pr_debug("%s: Can't find topology for path %d, app %d, "
  1119. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1120. exact ? "fail" : "defaulting to search by path");
  1121. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1122. cal_index);
  1123. }
  1124. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1125. int acdb_dev_id, int idx,
  1126. bool exact)
  1127. {
  1128. int topology = -EINVAL;
  1129. struct cal_block_data *cal_block = NULL;
  1130. mutex_lock(&cal_data[idx]->lock);
  1131. cal_block = msm_routing_find_topology(session_type, app_type,
  1132. acdb_dev_id, idx, exact);
  1133. if (cal_block != NULL) {
  1134. topology = ((struct audio_cal_info_adm_top *)
  1135. cal_block->cal_info)->topology;
  1136. }
  1137. mutex_unlock(&cal_data[idx]->lock);
  1138. return topology;
  1139. }
  1140. /*
  1141. * Retrieving cal_block will mark cal_block as stale.
  1142. * Hence it cannot be reused or resent unless the flag
  1143. * is reset.
  1144. */
  1145. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1146. int be_id)
  1147. {
  1148. int topology = NULL_COPP_TOPOLOGY;
  1149. int app_type = 0, acdb_dev_id = 0;
  1150. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1151. __func__, fedai_id, session_type, be_id);
  1152. if (cal_data == NULL)
  1153. goto done;
  1154. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1155. acdb_dev_id =
  1156. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1157. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1158. topology = msm_routing_find_topology_on_index(session_type,
  1159. app_type,
  1160. acdb_dev_id,
  1161. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1162. true /*exact*/);
  1163. if (topology < 0) {
  1164. pr_debug("%s: Check for compatible topology\n", __func__);
  1165. topology = msm_routing_find_topology_on_index(session_type,
  1166. app_type,
  1167. acdb_dev_id,
  1168. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1169. false /*exact*/);
  1170. if (topology < 0)
  1171. topology = NULL_COPP_TOPOLOGY;
  1172. }
  1173. done:
  1174. pr_debug("%s: Using topology %d\n", __func__, topology);
  1175. return topology;
  1176. }
  1177. static uint8_t is_be_dai_extproc(int be_dai)
  1178. {
  1179. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1180. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1181. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1182. return 1;
  1183. else
  1184. return 0;
  1185. }
  1186. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1187. int path_type, int perf_mode,
  1188. uint32_t passthr_mode)
  1189. {
  1190. int i, port_type, j, num_copps = 0;
  1191. struct route_payload payload;
  1192. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1193. path_type == ADM_PATH_COMPRESSED_RX) ?
  1194. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  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. int port_id = get_port_id(msm_bedais[i].port_id);
  1201. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1202. unsigned long copp =
  1203. session_copp_map[fedai_id][sess_type][i];
  1204. if (test_bit(j, &copp)) {
  1205. payload.port_id[num_copps] = port_id;
  1206. payload.copp_idx[num_copps] = j;
  1207. payload.app_type[num_copps] =
  1208. fe_dai_app_type_cfg
  1209. [fedai_id][sess_type][i]
  1210. .app_type;
  1211. payload.acdb_dev_id[num_copps] =
  1212. fe_dai_app_type_cfg
  1213. [fedai_id][sess_type][i]
  1214. .acdb_dev_id;
  1215. payload.sample_rate[num_copps] =
  1216. fe_dai_app_type_cfg
  1217. [fedai_id][sess_type][i]
  1218. .sample_rate;
  1219. num_copps++;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. if (num_copps) {
  1225. payload.num_copps = num_copps;
  1226. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1227. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1228. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1229. }
  1230. }
  1231. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1232. int stream_type)
  1233. {
  1234. int i, session_type, path_type, port_type;
  1235. u32 mode = 0;
  1236. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1237. /* bad ID assigned in machine driver */
  1238. pr_err("%s: bad MM ID\n", __func__);
  1239. return;
  1240. }
  1241. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1242. session_type = SESSION_TYPE_RX;
  1243. path_type = ADM_PATH_PLAYBACK;
  1244. port_type = MSM_AFE_PORT_TYPE_RX;
  1245. } else {
  1246. session_type = SESSION_TYPE_TX;
  1247. path_type = ADM_PATH_LIVE_REC;
  1248. port_type = MSM_AFE_PORT_TYPE_TX;
  1249. }
  1250. mutex_lock(&routing_lock);
  1251. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1252. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1253. if (!is_be_dai_extproc(i) &&
  1254. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1255. (msm_bedais[i].active) &&
  1256. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1257. mode = afe_get_port_type(msm_bedais[i].port_id);
  1258. adm_connect_afe_port(mode, dspst_id,
  1259. msm_bedais[i].port_id);
  1260. break;
  1261. }
  1262. }
  1263. mutex_unlock(&routing_lock);
  1264. }
  1265. static bool route_check_fe_id_adm_support(int fe_id)
  1266. {
  1267. bool rc = true;
  1268. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1269. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1270. /* fe id is listen while port is set to afe */
  1271. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1272. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1273. __func__, fe_id, lsm_port_index);
  1274. rc = false;
  1275. }
  1276. }
  1277. return rc;
  1278. }
  1279. /*
  1280. * msm_pcm_routing_get_pp_ch_cnt:
  1281. * Read the processed channel count
  1282. *
  1283. * @fe_id: Front end ID
  1284. * @session_type: Inidicates RX or TX session type
  1285. */
  1286. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1287. {
  1288. struct msm_pcm_stream_app_type_cfg cfg_data;
  1289. int be_id = 0, app_type_idx = 0, app_type = 0;
  1290. int ret = -EINVAL;
  1291. memset(&cfg_data, 0, sizeof(cfg_data));
  1292. if (!is_mm_lsm_fe_id(fe_id)) {
  1293. pr_err("%s: bad MM ID\n", __func__);
  1294. return -EINVAL;
  1295. }
  1296. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1297. &be_id, &cfg_data);
  1298. if (ret) {
  1299. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1300. return ret;
  1301. }
  1302. app_type = cfg_data.app_type;
  1303. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1304. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1305. }
  1306. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1307. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1308. int dspst_id, int stream_type,
  1309. uint32_t passthr_mode)
  1310. {
  1311. int i, j, session_type, path_type, port_type, topology;
  1312. int num_copps = 0;
  1313. struct route_payload payload;
  1314. u32 channels, sample_rate;
  1315. u16 bit_width = 16, be_bit_width;
  1316. bool is_lsm;
  1317. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1318. __func__, fe_id, perf_mode, dspst_id,
  1319. stream_type, passthr_mode);
  1320. if (!is_mm_lsm_fe_id(fe_id)) {
  1321. /* bad ID assigned in machine driver */
  1322. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1323. return -EINVAL;
  1324. }
  1325. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1326. session_type = SESSION_TYPE_RX;
  1327. if (passthr_mode != LEGACY_PCM)
  1328. path_type = ADM_PATH_COMPRESSED_RX;
  1329. else
  1330. path_type = ADM_PATH_PLAYBACK;
  1331. port_type = MSM_AFE_PORT_TYPE_RX;
  1332. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1333. session_type = SESSION_TYPE_TX;
  1334. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1335. path_type = ADM_PATH_COMPRESSED_TX;
  1336. else
  1337. path_type = ADM_PATH_LIVE_REC;
  1338. port_type = MSM_AFE_PORT_TYPE_TX;
  1339. } else {
  1340. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1341. return -EINVAL;
  1342. }
  1343. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1344. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1345. mutex_lock(&routing_lock);
  1346. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1347. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1348. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1349. if (!route_check_fe_id_adm_support(fe_id)) {
  1350. /* ignore adm open if not supported for fe_id */
  1351. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1352. mutex_unlock(&routing_lock);
  1353. return 0;
  1354. }
  1355. payload.num_copps = 0; /* only RX needs to use payload */
  1356. /* re-enable EQ if active */
  1357. msm_qti_pp_send_eq_values(fe_id);
  1358. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1359. if (!is_be_dai_extproc(i) &&
  1360. (afe_get_port_type(msm_bedais[i].port_id) ==
  1361. port_type) &&
  1362. (msm_bedais[i].active) &&
  1363. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1364. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1365. int port_id = get_port_id(msm_bedais[i].port_id);
  1366. /*
  1367. * check if ADM needs to be configured with different
  1368. * channel mapping than backend
  1369. */
  1370. if (!msm_bedais[i].adm_override_ch)
  1371. channels = msm_bedais[i].channel;
  1372. else
  1373. channels = msm_bedais[i].adm_override_ch;
  1374. bit_width = msm_routing_get_bit_width(
  1375. msm_bedais[i].format);
  1376. app_type =
  1377. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1378. if (app_type && is_lsm) {
  1379. app_type_idx =
  1380. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1381. sample_rate =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i]
  1383. .sample_rate;
  1384. bit_width =
  1385. lsm_app_type_cfg[app_type_idx].bit_width;
  1386. } else if (app_type) {
  1387. app_type_idx =
  1388. msm_pcm_routing_get_app_type_idx(
  1389. app_type);
  1390. sample_rate =
  1391. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1392. bit_width =
  1393. app_type_cfg[app_type_idx].bit_width;
  1394. } else {
  1395. sample_rate = msm_bedais[i].sample_rate;
  1396. }
  1397. acdb_dev_id =
  1398. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1399. topology = msm_routing_get_adm_topology(fe_id,
  1400. session_type,
  1401. i);
  1402. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1403. || (passthr_mode ==
  1404. COMPRESSED_PASSTHROUGH_GEN)
  1405. || (passthr_mode ==
  1406. COMPRESSED_PASSTHROUGH_IEC61937))
  1407. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1408. pr_debug("%s: Before adm open topology %d\n", __func__,
  1409. topology);
  1410. be_bit_width = msm_routing_get_bit_width(
  1411. msm_bedais[i].format);
  1412. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1413. == 384000 || msm_bedais[i].sample_rate ==
  1414. 352800) && be_bit_width == 32)
  1415. bit_width = msm_routing_get_bit_width(
  1416. SNDRV_PCM_FORMAT_S32_LE);
  1417. copp_idx =
  1418. adm_open(port_id, path_type, sample_rate,
  1419. channels, topology, perf_mode,
  1420. bit_width, app_type, acdb_dev_id,
  1421. session_type);
  1422. if ((copp_idx < 0) ||
  1423. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1424. pr_err("%s:adm open failed coppid:%d\n",
  1425. __func__, copp_idx);
  1426. mutex_unlock(&routing_lock);
  1427. return -EINVAL;
  1428. }
  1429. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1430. __func__, fe_id, session_type, i);
  1431. set_bit(copp_idx,
  1432. &session_copp_map[fe_id][session_type][i]);
  1433. if (msm_is_resample_needed(
  1434. sample_rate,
  1435. msm_bedais[i].sample_rate))
  1436. adm_copp_mfc_cfg(port_id, copp_idx,
  1437. msm_bedais[i].sample_rate);
  1438. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1439. unsigned long copp =
  1440. session_copp_map[fe_id][session_type][i];
  1441. if (test_bit(j, &copp)) {
  1442. payload.port_id[num_copps] = port_id;
  1443. payload.copp_idx[num_copps] = j;
  1444. payload.app_type[num_copps] =
  1445. fe_dai_app_type_cfg
  1446. [fe_id][session_type][i]
  1447. .app_type;
  1448. payload.acdb_dev_id[num_copps] =
  1449. fe_dai_app_type_cfg
  1450. [fe_id][session_type][i]
  1451. .acdb_dev_id;
  1452. payload.sample_rate[num_copps] =
  1453. fe_dai_app_type_cfg
  1454. [fe_id][session_type][i]
  1455. .sample_rate;
  1456. num_copps++;
  1457. }
  1458. }
  1459. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1460. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1461. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1462. msm_routing_send_device_pp_params(port_id,
  1463. copp_idx, fe_id);
  1464. }
  1465. }
  1466. if (num_copps) {
  1467. payload.num_copps = num_copps;
  1468. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1469. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1470. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1471. }
  1472. mutex_unlock(&routing_lock);
  1473. return 0;
  1474. }
  1475. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1476. {
  1477. u32 session_id;
  1478. switch (val) {
  1479. case MSM_FRONTEND_DAI_QCHAT:
  1480. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1481. break;
  1482. case MSM_FRONTEND_DAI_VOIP:
  1483. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1484. break;
  1485. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1486. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1487. break;
  1488. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1489. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1490. break;
  1491. default:
  1492. session_id = 0;
  1493. }
  1494. pr_debug("%s session_id 0x%x", __func__, session_id);
  1495. return session_id;
  1496. }
  1497. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1498. int dspst_id, int stream_type)
  1499. {
  1500. int copp_idx = 0;
  1501. int sess_type = 0;
  1502. int j = 0, be_id = 0;
  1503. int ret = 0;
  1504. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1505. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1506. return 0;
  1507. }
  1508. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1509. sess_type = SESSION_TYPE_RX;
  1510. else
  1511. sess_type = SESSION_TYPE_TX;
  1512. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1513. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1514. __func__, fe_id, sess_type);
  1515. return 0;
  1516. }
  1517. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1518. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1519. channel_mixer_v2[fe_id][sess_type].input_channel;
  1520. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1521. __func__, sess_type, fe_id,
  1522. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1523. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1524. msm_bedais[be_id].active);
  1525. if ((msm_bedais[be_id].active) &&
  1526. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1527. unsigned long copp =
  1528. session_copp_map[fe_id][sess_type][be_id];
  1529. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1530. if (test_bit(j, &copp)) {
  1531. copp_idx = j;
  1532. break;
  1533. }
  1534. }
  1535. ret = adm_programable_channel_mixer(
  1536. msm_bedais[be_id].port_id,
  1537. copp_idx, dspst_id, sess_type,
  1538. &channel_mixer_v2[fe_id][sess_type], 0);
  1539. }
  1540. return ret;
  1541. }
  1542. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1543. int dspst_id, int stream_type)
  1544. {
  1545. int copp_idx = 0;
  1546. int sess_type = 0;
  1547. int i = 0, j = 0, be_id;
  1548. int ret = 0;
  1549. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1550. dspst_id, stream_type);
  1551. if (ret) {
  1552. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1553. fe_id);
  1554. return ret;
  1555. }
  1556. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1557. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1558. return 0;
  1559. }
  1560. if (!(channel_mixer[fe_id].enable)) {
  1561. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1562. __func__, fe_id);
  1563. return 0;
  1564. }
  1565. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1566. sess_type = SESSION_TYPE_RX;
  1567. else
  1568. sess_type = SESSION_TYPE_TX;
  1569. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1570. ++i) {
  1571. be_id = channel_input[fe_id][i] - 1;
  1572. channel_mixer[fe_id].input_channels[i] =
  1573. msm_bedais[be_id].channel;
  1574. if ((msm_bedais[be_id].active) &&
  1575. test_bit(fe_id,
  1576. &msm_bedais[be_id].fe_sessions[0])) {
  1577. unsigned long copp =
  1578. session_copp_map[fe_id][sess_type][be_id];
  1579. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1580. if (test_bit(j, &copp)) {
  1581. copp_idx = j;
  1582. break;
  1583. }
  1584. }
  1585. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1586. __func__,
  1587. fe_id, be_id, msm_bedais[be_id].channel,
  1588. copp_idx);
  1589. ret = adm_programable_channel_mixer(
  1590. get_port_id(msm_bedais[be_id].port_id),
  1591. copp_idx, dspst_id, sess_type,
  1592. channel_mixer + fe_id, i);
  1593. }
  1594. }
  1595. return ret;
  1596. }
  1597. /**
  1598. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1599. * setting during runtime.
  1600. *
  1601. * @be_id: backend index
  1602. * @session_id: session index
  1603. * @session_type: session type
  1604. * @params: parameters for channel mixer
  1605. *
  1606. * Retuen: 0 for success, else error
  1607. */
  1608. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1609. int session_type,
  1610. struct msm_pcm_channel_mixer *params)
  1611. {
  1612. int rc = 0;
  1613. int port_id, copp_idx = 0;
  1614. be_id--;
  1615. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1616. pr_err("%s: invalid backend id %d\n", __func__,
  1617. be_id);
  1618. return -EINVAL;
  1619. }
  1620. port_id = msm_bedais[be_id].port_id;
  1621. copp_idx = adm_get_default_copp_idx(port_id);
  1622. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1623. __func__, port_id, copp_idx, session_id);
  1624. if ((params->input_channel < 0) ||
  1625. (params->input_channel > ADM_MAX_CHANNELS)) {
  1626. pr_err("%s: invalid input channel %d\n", __func__,
  1627. params->input_channel);
  1628. return -EINVAL;
  1629. }
  1630. if ((params->output_channel < 0) ||
  1631. (params->output_channel > ADM_MAX_CHANNELS)) {
  1632. pr_err("%s: invalid output channel %d\n", __func__,
  1633. params->output_channel);
  1634. return -EINVAL;
  1635. }
  1636. params->input_channels[0] = params->input_channel;
  1637. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1638. __func__, session_type,
  1639. params->override_in_ch_map,
  1640. params->override_out_ch_map,
  1641. msm_bedais[be_id].active);
  1642. rc = adm_programable_channel_mixer(port_id,
  1643. copp_idx,
  1644. session_id,
  1645. session_type,
  1646. params,
  1647. 0);
  1648. if (rc) {
  1649. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1650. rc = -EINVAL;
  1651. }
  1652. return rc;
  1653. }
  1654. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1655. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1656. int dspst_id, int stream_type)
  1657. {
  1658. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1659. struct route_payload payload;
  1660. u32 channels, sample_rate;
  1661. uint16_t bits_per_sample = 16, be_bit_width;
  1662. uint32_t passthr_mode = LEGACY_PCM;
  1663. int ret = 0;
  1664. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1665. /* bad ID assigned in machine driver */
  1666. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1667. return -EINVAL;
  1668. }
  1669. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1670. session_type = SESSION_TYPE_RX;
  1671. path_type = ADM_PATH_PLAYBACK;
  1672. port_type = MSM_AFE_PORT_TYPE_RX;
  1673. } else {
  1674. session_type = SESSION_TYPE_TX;
  1675. path_type = ADM_PATH_LIVE_REC;
  1676. port_type = MSM_AFE_PORT_TYPE_TX;
  1677. }
  1678. mutex_lock(&routing_lock);
  1679. payload.num_copps = 0; /* only RX needs to use payload */
  1680. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1681. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1682. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1683. /* re-enable EQ if active */
  1684. msm_qti_pp_send_eq_values(fedai_id);
  1685. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1686. if (!is_be_dai_extproc(i) &&
  1687. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1688. (msm_bedais[i].active) &&
  1689. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1690. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1691. int port_id = get_port_id(msm_bedais[i].port_id);
  1692. /*
  1693. * check if ADM needs to be configured with different
  1694. * channel mapping than backend
  1695. */
  1696. if (!msm_bedais[i].adm_override_ch)
  1697. channels = msm_bedais[i].channel;
  1698. else
  1699. channels = msm_bedais[i].adm_override_ch;
  1700. bits_per_sample = msm_routing_get_bit_width(
  1701. msm_bedais[i].format);
  1702. app_type =
  1703. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1704. if (app_type) {
  1705. app_type_idx =
  1706. msm_pcm_routing_get_app_type_idx(app_type);
  1707. sample_rate =
  1708. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1709. .sample_rate;
  1710. bits_per_sample =
  1711. app_type_cfg[app_type_idx].bit_width;
  1712. } else
  1713. sample_rate = msm_bedais[i].sample_rate;
  1714. acdb_dev_id =
  1715. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1716. .acdb_dev_id;
  1717. topology = msm_routing_get_adm_topology(fedai_id,
  1718. session_type,
  1719. i);
  1720. be_bit_width = msm_routing_get_bit_width(
  1721. msm_bedais[i].format);
  1722. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1723. 384000 ||msm_bedais[i].sample_rate == 352800)
  1724. && be_bit_width == 32)
  1725. bits_per_sample = msm_routing_get_bit_width(
  1726. SNDRV_PCM_FORMAT_S32_LE);
  1727. copp_idx = adm_open(port_id, path_type,
  1728. sample_rate, channels, topology,
  1729. perf_mode, bits_per_sample,
  1730. app_type, acdb_dev_id,
  1731. session_type);
  1732. if ((copp_idx < 0) ||
  1733. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1734. pr_err("%s: adm open failed copp_idx:%d\n",
  1735. __func__, copp_idx);
  1736. mutex_unlock(&routing_lock);
  1737. return -EINVAL;
  1738. }
  1739. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1740. __func__, fedai_id, session_type, i);
  1741. set_bit(copp_idx,
  1742. &session_copp_map[fedai_id][session_type][i]);
  1743. if (msm_is_resample_needed(
  1744. sample_rate,
  1745. msm_bedais[i].sample_rate))
  1746. adm_copp_mfc_cfg(port_id, copp_idx,
  1747. msm_bedais[i].sample_rate);
  1748. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1749. unsigned long copp =
  1750. session_copp_map[fedai_id][session_type][i];
  1751. if (test_bit(j, &copp)) {
  1752. payload.port_id[num_copps] = port_id;
  1753. payload.copp_idx[num_copps] = j;
  1754. payload.app_type[num_copps] =
  1755. fe_dai_app_type_cfg
  1756. [fedai_id][session_type]
  1757. [i].app_type;
  1758. payload.acdb_dev_id[num_copps] =
  1759. fe_dai_app_type_cfg
  1760. [fedai_id][session_type]
  1761. [i].acdb_dev_id;
  1762. payload.sample_rate[num_copps] =
  1763. fe_dai_app_type_cfg
  1764. [fedai_id][session_type]
  1765. [i].sample_rate;
  1766. num_copps++;
  1767. }
  1768. }
  1769. if (perf_mode == LEGACY_PCM_MODE)
  1770. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1771. topology, channels);
  1772. }
  1773. }
  1774. if (num_copps) {
  1775. payload.num_copps = num_copps;
  1776. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1777. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1778. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1779. }
  1780. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1781. dspst_id, stream_type);
  1782. mutex_unlock(&routing_lock);
  1783. return ret;
  1784. }
  1785. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1786. int dspst_id, int stream_type,
  1787. struct msm_pcm_routing_evt event_info)
  1788. {
  1789. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1790. stream_type)) {
  1791. pr_err("%s: failed to reg phy stream\n", __func__);
  1792. return -EINVAL;
  1793. }
  1794. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1795. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1796. else
  1797. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1798. return 0;
  1799. }
  1800. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1801. {
  1802. int i, port_type, session_type, path_type, topology, port_id;
  1803. struct msm_pcm_routing_fdai_data *fdai;
  1804. if (!is_mm_lsm_fe_id(fedai_id)) {
  1805. /* bad ID assigned in machine driver */
  1806. pr_err("%s: bad MM ID\n", __func__);
  1807. return;
  1808. }
  1809. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1810. port_type = MSM_AFE_PORT_TYPE_RX;
  1811. session_type = SESSION_TYPE_RX;
  1812. path_type = ADM_PATH_PLAYBACK;
  1813. } else {
  1814. port_type = MSM_AFE_PORT_TYPE_TX;
  1815. session_type = SESSION_TYPE_TX;
  1816. path_type = ADM_PATH_LIVE_REC;
  1817. }
  1818. mutex_lock(&routing_lock);
  1819. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1820. if (!is_be_dai_extproc(i) &&
  1821. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1822. (msm_bedais[i].active) &&
  1823. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1824. int idx;
  1825. unsigned long copp =
  1826. session_copp_map[fedai_id][session_type][i];
  1827. fdai = &fe_dai_map[fedai_id][session_type];
  1828. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1829. if (test_bit(idx, &copp))
  1830. break;
  1831. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1832. pr_debug("%s: copp idx is invalid, exiting\n",
  1833. __func__);
  1834. continue;
  1835. }
  1836. port_id = get_port_id(msm_bedais[i].port_id);
  1837. topology = adm_get_topology_for_port_copp_idx(
  1838. port_id, idx);
  1839. msm_routing_unload_topology(topology);
  1840. adm_close(port_id, fdai->perf_mode, idx);
  1841. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1842. __func__, copp, fedai_id, session_type, i);
  1843. clear_bit(idx,
  1844. &session_copp_map[fedai_id][session_type][i]);
  1845. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1846. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1847. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1848. (fdai->passthr_mode == LEGACY_PCM))
  1849. msm_pcm_routing_deinit_pp(port_id, topology);
  1850. }
  1851. }
  1852. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1853. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1854. mutex_unlock(&routing_lock);
  1855. }
  1856. /* Check if FE/BE route is set */
  1857. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1858. {
  1859. bool rc = false;
  1860. if (!is_mm_lsm_fe_id(fe_id)) {
  1861. /* recheck FE ID in the mixer control defined in this file */
  1862. pr_err("%s: bad MM ID\n", __func__);
  1863. return rc;
  1864. }
  1865. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1866. rc = true;
  1867. return rc;
  1868. }
  1869. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1870. {
  1871. int session_type, path_type, topology;
  1872. u32 channels, sample_rate;
  1873. uint16_t bits_per_sample = 16, be_bit_width;
  1874. struct msm_pcm_routing_fdai_data *fdai;
  1875. uint32_t passthr_mode;
  1876. bool is_lsm;
  1877. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1878. if (!is_mm_lsm_fe_id(val)) {
  1879. /* recheck FE ID in the mixer control defined in this file */
  1880. pr_err("%s: bad MM ID\n", __func__);
  1881. return;
  1882. }
  1883. if (!route_check_fe_id_adm_support(val)) {
  1884. /* ignore adm open if not supported for fe_id */
  1885. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1886. if (set)
  1887. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1888. else
  1889. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1890. return;
  1891. }
  1892. session_type =
  1893. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1894. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1895. fdai = &fe_dai_map[val][session_type];
  1896. passthr_mode = fdai->passthr_mode;
  1897. if (session_type == SESSION_TYPE_RX) {
  1898. if (passthr_mode != LEGACY_PCM)
  1899. path_type = ADM_PATH_COMPRESSED_RX;
  1900. else
  1901. path_type = ADM_PATH_PLAYBACK;
  1902. } else {
  1903. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1904. path_type = ADM_PATH_COMPRESSED_TX;
  1905. else
  1906. path_type = ADM_PATH_LIVE_REC;
  1907. }
  1908. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1909. (val <= MSM_FRONTEND_DAI_LSM8);
  1910. mutex_lock(&routing_lock);
  1911. if (set) {
  1912. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1913. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1914. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1915. voc_start_playback(set, msm_bedais[reg].port_id);
  1916. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1917. if (msm_bedais[reg].active && fdai->strm_id !=
  1918. INVALID_SESSION) {
  1919. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1920. int port_id = get_port_id(msm_bedais[reg].port_id);
  1921. /*
  1922. * check if ADM needs to be configured with different
  1923. * channel mapping than backend
  1924. */
  1925. if (!msm_bedais[reg].adm_override_ch)
  1926. channels = msm_bedais[reg].channel;
  1927. else
  1928. channels = msm_bedais[reg].adm_override_ch;
  1929. if (session_type == SESSION_TYPE_TX &&
  1930. fdai->be_srate &&
  1931. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1932. pr_debug("%s: flush strm %d diff BE rates\n",
  1933. __func__, fdai->strm_id);
  1934. if (fdai->event_info.event_func)
  1935. fdai->event_info.event_func(
  1936. MSM_PCM_RT_EVT_BUF_RECFG,
  1937. fdai->event_info.priv_data);
  1938. fdai->be_srate = 0; /* might not need it */
  1939. }
  1940. bits_per_sample = msm_routing_get_bit_width(
  1941. msm_bedais[reg].format);
  1942. app_type =
  1943. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1944. if (app_type && is_lsm) {
  1945. app_type_idx =
  1946. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1947. sample_rate =
  1948. fe_dai_app_type_cfg[val][session_type][reg]
  1949. .sample_rate;
  1950. bits_per_sample =
  1951. lsm_app_type_cfg[app_type_idx].bit_width;
  1952. } else if (app_type) {
  1953. app_type_idx =
  1954. msm_pcm_routing_get_app_type_idx(app_type);
  1955. sample_rate =
  1956. fe_dai_app_type_cfg[val][session_type][reg]
  1957. .sample_rate;
  1958. bits_per_sample =
  1959. app_type_cfg[app_type_idx].bit_width;
  1960. } else
  1961. sample_rate = msm_bedais[reg].sample_rate;
  1962. topology = msm_routing_get_adm_topology(val,
  1963. session_type,
  1964. reg);
  1965. acdb_dev_id =
  1966. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1967. be_bit_width = msm_routing_get_bit_width(
  1968. msm_bedais[reg].format);
  1969. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1970. == 384000 ||msm_bedais[reg].sample_rate ==
  1971. 352800) && be_bit_width == 32)
  1972. bits_per_sample = msm_routing_get_bit_width(
  1973. SNDRV_PCM_FORMAT_S32_LE);
  1974. copp_idx = adm_open(port_id, path_type,
  1975. sample_rate, channels, topology,
  1976. fdai->perf_mode, bits_per_sample,
  1977. app_type, acdb_dev_id,
  1978. session_type);
  1979. if ((copp_idx < 0) ||
  1980. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1981. pr_err("%s: adm open failed\n", __func__);
  1982. mutex_unlock(&routing_lock);
  1983. return;
  1984. }
  1985. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1986. __func__, val, session_type, reg);
  1987. set_bit(copp_idx,
  1988. &session_copp_map[val][session_type][reg]);
  1989. if (msm_is_resample_needed(
  1990. sample_rate,
  1991. msm_bedais[reg].sample_rate))
  1992. adm_copp_mfc_cfg(port_id, copp_idx,
  1993. msm_bedais[reg].sample_rate);
  1994. if (session_type == SESSION_TYPE_RX &&
  1995. fdai->event_info.event_func)
  1996. fdai->event_info.event_func(
  1997. MSM_PCM_RT_EVT_DEVSWITCH,
  1998. fdai->event_info.priv_data);
  1999. msm_pcm_routing_build_matrix(val, session_type,
  2000. path_type,
  2001. fdai->perf_mode,
  2002. passthr_mode);
  2003. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2004. (passthr_mode == LEGACY_PCM))
  2005. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2006. topology, channels);
  2007. }
  2008. } else {
  2009. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2010. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2011. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2012. voc_start_playback(set, msm_bedais[reg].port_id);
  2013. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2014. if (msm_bedais[reg].active && fdai->strm_id !=
  2015. INVALID_SESSION) {
  2016. int idx;
  2017. int port_id;
  2018. unsigned long copp =
  2019. session_copp_map[val][session_type][reg];
  2020. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2021. if (test_bit(idx, &copp))
  2022. break;
  2023. if (idx >= MAX_COPPS_PER_PORT) {
  2024. pr_debug("%s: copp idx is invalid, exiting\n",
  2025. __func__);
  2026. mutex_unlock(&routing_lock);
  2027. return;
  2028. }
  2029. port_id = get_port_id(msm_bedais[reg].port_id);
  2030. topology = adm_get_topology_for_port_copp_idx(port_id,
  2031. idx);
  2032. msm_routing_unload_topology(topology);
  2033. adm_close(port_id, fdai->perf_mode, idx);
  2034. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2035. __func__, copp, val, session_type, reg,
  2036. topology);
  2037. clear_bit(idx,
  2038. &session_copp_map[val][session_type][reg]);
  2039. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2040. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2041. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2042. (passthr_mode == LEGACY_PCM))
  2043. msm_pcm_routing_deinit_pp(port_id, topology);
  2044. msm_pcm_routing_build_matrix(val, session_type,
  2045. path_type,
  2046. fdai->perf_mode,
  2047. passthr_mode);
  2048. }
  2049. }
  2050. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2051. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2052. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2053. mutex_unlock(&routing_lock);
  2054. }
  2055. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. struct soc_mixer_control *mc =
  2059. (struct soc_mixer_control *)kcontrol->private_value;
  2060. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2061. ucontrol->value.integer.value[0] = 1;
  2062. else
  2063. ucontrol->value.integer.value[0] = 0;
  2064. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2065. ucontrol->value.integer.value[0]);
  2066. return 0;
  2067. }
  2068. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2069. struct snd_ctl_elem_value *ucontrol)
  2070. {
  2071. struct snd_soc_dapm_widget *widget =
  2072. snd_soc_dapm_kcontrol_widget(kcontrol);
  2073. struct soc_mixer_control *mc =
  2074. (struct soc_mixer_control *)kcontrol->private_value;
  2075. struct snd_soc_dapm_update *update = NULL;
  2076. if (ucontrol->value.integer.value[0] &&
  2077. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2078. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2079. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2080. update);
  2081. } else if (!ucontrol->value.integer.value[0] &&
  2082. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2083. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2084. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2085. update);
  2086. }
  2087. return 1;
  2088. }
  2089. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2090. struct snd_ctl_elem_value *ucontrol)
  2091. {
  2092. struct soc_mixer_control *mc =
  2093. (struct soc_mixer_control *)kcontrol->private_value;
  2094. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2095. ucontrol->value.integer.value[0] = 1;
  2096. else
  2097. ucontrol->value.integer.value[0] = 0;
  2098. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2099. ucontrol->value.integer.value[0]);
  2100. return 0;
  2101. }
  2102. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2103. struct snd_ctl_elem_value *ucontrol)
  2104. {
  2105. struct snd_soc_dapm_widget *widget =
  2106. snd_soc_dapm_kcontrol_widget(kcontrol);
  2107. struct soc_mixer_control *mc =
  2108. (struct soc_mixer_control *)kcontrol->private_value;
  2109. struct snd_soc_dapm_update *update = NULL;
  2110. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2111. ucontrol->value.integer.value[0]);
  2112. if (ucontrol->value.integer.value[0]) {
  2113. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2114. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2115. snd_soc_dapm_mixer_update_power(widget->dapm,
  2116. kcontrol, 1, update);
  2117. } else if (!ucontrol->value.integer.value[0]) {
  2118. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2119. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2120. snd_soc_dapm_mixer_update_power(widget->dapm,
  2121. kcontrol, 0, update);
  2122. }
  2123. return 1;
  2124. }
  2125. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2126. {
  2127. u32 session_id = 0;
  2128. u16 path_type;
  2129. struct media_format_info voc_be_media_format;
  2130. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2131. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2132. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2133. __func__, val, session_id);
  2134. mutex_lock(&routing_lock);
  2135. if (set)
  2136. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2137. else
  2138. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2139. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2140. afe_get_port_type(msm_bedais[reg].port_id) ==
  2141. MSM_AFE_PORT_TYPE_RX) {
  2142. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2143. __func__, set, msm_bedais[reg].port_id);
  2144. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2145. }
  2146. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2147. MSM_AFE_PORT_TYPE_RX)
  2148. path_type = RX_PATH;
  2149. else
  2150. path_type = TX_PATH;
  2151. if (set) {
  2152. if (msm_bedais[reg].active) {
  2153. voc_set_route_flag(session_id, path_type, 1);
  2154. memset(&voc_be_media_format, 0,
  2155. sizeof(struct media_format_info));
  2156. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2157. voc_be_media_format.num_channels =
  2158. msm_bedais[reg].channel;
  2159. voc_be_media_format.sample_rate =
  2160. msm_bedais[reg].sample_rate;
  2161. voc_be_media_format.bits_per_sample =
  2162. msm_bedais[reg].format;
  2163. /* Defaulting this to 1 for voice call usecases */
  2164. voc_be_media_format.channel_mapping[0] = 1;
  2165. voc_set_device_config(session_id, path_type,
  2166. &voc_be_media_format);
  2167. if (voc_get_route_flag(session_id, TX_PATH) &&
  2168. voc_get_route_flag(session_id, RX_PATH))
  2169. voc_enable_device(session_id);
  2170. } else {
  2171. pr_debug("%s BE is not active\n", __func__);
  2172. }
  2173. } else {
  2174. voc_set_route_flag(session_id, path_type, 0);
  2175. voc_disable_device(session_id);
  2176. }
  2177. mutex_unlock(&routing_lock);
  2178. }
  2179. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2180. struct snd_ctl_elem_value *ucontrol)
  2181. {
  2182. struct soc_mixer_control *mc =
  2183. (struct soc_mixer_control *)kcontrol->private_value;
  2184. mutex_lock(&routing_lock);
  2185. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2186. ucontrol->value.integer.value[0] = 1;
  2187. else
  2188. ucontrol->value.integer.value[0] = 0;
  2189. mutex_unlock(&routing_lock);
  2190. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2191. ucontrol->value.integer.value[0]);
  2192. return 0;
  2193. }
  2194. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2195. struct snd_ctl_elem_value *ucontrol)
  2196. {
  2197. struct snd_soc_dapm_widget *widget =
  2198. snd_soc_dapm_kcontrol_widget(kcontrol);
  2199. struct soc_mixer_control *mc =
  2200. (struct soc_mixer_control *)kcontrol->private_value;
  2201. struct snd_soc_dapm_update *update = NULL;
  2202. if (ucontrol->value.integer.value[0]) {
  2203. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2204. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2205. update);
  2206. } else {
  2207. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2209. update);
  2210. }
  2211. return 1;
  2212. }
  2213. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2214. struct snd_ctl_elem_value *ucontrol)
  2215. {
  2216. struct soc_mixer_control *mc =
  2217. (struct soc_mixer_control *)kcontrol->private_value;
  2218. mutex_lock(&routing_lock);
  2219. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2220. ucontrol->value.integer.value[0] = 1;
  2221. else
  2222. ucontrol->value.integer.value[0] = 0;
  2223. mutex_unlock(&routing_lock);
  2224. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2225. ucontrol->value.integer.value[0]);
  2226. return 0;
  2227. }
  2228. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2229. struct snd_ctl_elem_value *ucontrol)
  2230. {
  2231. struct snd_soc_dapm_widget *widget =
  2232. snd_soc_dapm_kcontrol_widget(kcontrol);
  2233. struct soc_mixer_control *mc =
  2234. (struct soc_mixer_control *)kcontrol->private_value;
  2235. struct snd_soc_dapm_update *update = NULL;
  2236. if (ucontrol->value.integer.value[0]) {
  2237. mutex_lock(&routing_lock);
  2238. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2239. mutex_unlock(&routing_lock);
  2240. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2241. update);
  2242. } else {
  2243. mutex_lock(&routing_lock);
  2244. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2245. mutex_unlock(&routing_lock);
  2246. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2247. update);
  2248. }
  2249. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2250. ucontrol->value.integer.value[0]);
  2251. return 1;
  2252. }
  2253. /*
  2254. * Return the mapping between port ID and backend ID to enable the AFE callback
  2255. * to determine the acdb_dev_id from the port id
  2256. */
  2257. int msm_pcm_get_be_id_from_port_id(int port_id)
  2258. {
  2259. int i;
  2260. int be_id = -EINVAL;
  2261. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2262. if (msm_bedais[i].port_id == port_id) {
  2263. be_id = i;
  2264. break;
  2265. }
  2266. }
  2267. return be_id;
  2268. }
  2269. /*
  2270. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2271. * correct AFE calibration information by comparing the header information.
  2272. */
  2273. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2274. {
  2275. int acdb_id = -EINVAL;
  2276. int i = 0;
  2277. int session;
  2278. int port_type = afe_get_port_type(port_id);
  2279. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2280. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2281. __func__, port_id, be_id, port_type);
  2282. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2283. session = SESSION_TYPE_TX;
  2284. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2285. session = SESSION_TYPE_RX;
  2286. } else {
  2287. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2288. acdb_id = -EINVAL;
  2289. goto exit;
  2290. }
  2291. if (be_id < 0) {
  2292. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2293. goto exit;
  2294. }
  2295. mutex_lock(&routing_lock);
  2296. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2297. MSM_FRONTEND_DAI_MAX);
  2298. if (i < MSM_FRONTEND_DAI_MAX)
  2299. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2300. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2301. __func__, i, session, be_id, acdb_id);
  2302. mutex_unlock(&routing_lock);
  2303. exit:
  2304. return acdb_id;
  2305. }
  2306. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2307. struct snd_ctl_elem_value *ucontrol)
  2308. {
  2309. ucontrol->value.integer.value[0] = fm_switch_enable;
  2310. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2311. ucontrol->value.integer.value[0]);
  2312. return 0;
  2313. }
  2314. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2315. struct snd_ctl_elem_value *ucontrol)
  2316. {
  2317. struct snd_soc_dapm_widget *widget =
  2318. snd_soc_dapm_kcontrol_widget(kcontrol);
  2319. struct snd_soc_dapm_update *update = NULL;
  2320. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2321. ucontrol->value.integer.value[0]);
  2322. if (ucontrol->value.integer.value[0])
  2323. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2324. update);
  2325. else
  2326. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2327. update);
  2328. fm_switch_enable = ucontrol->value.integer.value[0];
  2329. return 1;
  2330. }
  2331. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2332. struct snd_ctl_elem_value *ucontrol)
  2333. {
  2334. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2335. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2336. ucontrol->value.integer.value[0]);
  2337. return 0;
  2338. }
  2339. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2340. struct snd_ctl_elem_value *ucontrol)
  2341. {
  2342. struct snd_soc_dapm_widget *widget =
  2343. snd_soc_dapm_kcontrol_widget(kcontrol);
  2344. struct snd_soc_dapm_update *update = NULL;
  2345. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2346. ucontrol->value.integer.value[0]);
  2347. if (ucontrol->value.integer.value[0])
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2349. 1, update);
  2350. else
  2351. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2352. 0, update);
  2353. hfp_switch_enable = ucontrol->value.integer.value[0];
  2354. return 1;
  2355. }
  2356. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2360. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2361. ucontrol->value.integer.value[0]);
  2362. return 0;
  2363. }
  2364. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2365. struct snd_ctl_elem_value *ucontrol)
  2366. {
  2367. struct snd_soc_dapm_widget *widget =
  2368. snd_soc_dapm_kcontrol_widget(kcontrol);
  2369. struct snd_soc_dapm_update *update = NULL;
  2370. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2371. ucontrol->value.integer.value[0]);
  2372. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2373. if (a2dp_switch_enable)
  2374. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2375. 1, update);
  2376. else
  2377. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2378. 0, update);
  2379. return 1;
  2380. }
  2381. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2382. struct snd_ctl_elem_value *ucontrol)
  2383. {
  2384. ucontrol->value.integer.value[0] = sco_switch_enable;
  2385. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2386. ucontrol->value.integer.value[0]);
  2387. return 0;
  2388. }
  2389. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. struct snd_soc_dapm_widget *widget =
  2393. snd_soc_dapm_kcontrol_widget(kcontrol);
  2394. struct snd_soc_dapm_update *update = NULL;
  2395. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2396. ucontrol->value.integer.value[0]);
  2397. sco_switch_enable = ucontrol->value.integer.value[0];
  2398. if (sco_switch_enable)
  2399. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2400. 1, update);
  2401. else
  2402. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2403. 0, update);
  2404. return 1;
  2405. }
  2406. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2407. struct snd_ctl_elem_value *ucontrol)
  2408. {
  2409. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2410. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2411. ucontrol->value.integer.value[0]);
  2412. return 0;
  2413. }
  2414. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2415. struct snd_ctl_elem_value *ucontrol)
  2416. {
  2417. struct snd_soc_dapm_widget *widget =
  2418. snd_soc_dapm_kcontrol_widget(kcontrol);
  2419. struct snd_soc_dapm_update *update = NULL;
  2420. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2421. ucontrol->value.integer.value[0]);
  2422. if (ucontrol->value.integer.value[0])
  2423. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2424. update);
  2425. else
  2426. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2427. update);
  2428. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2429. return 1;
  2430. }
  2431. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2435. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2436. ucontrol->value.integer.value[0]);
  2437. return 0;
  2438. }
  2439. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2440. struct snd_ctl_elem_value *ucontrol)
  2441. {
  2442. struct snd_soc_dapm_widget *widget =
  2443. snd_soc_dapm_kcontrol_widget(kcontrol);
  2444. struct snd_soc_dapm_update *update = NULL;
  2445. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2446. ucontrol->value.integer.value[0]);
  2447. if (ucontrol->value.integer.value[0])
  2448. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2449. update);
  2450. else
  2451. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2452. update);
  2453. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2454. return 1;
  2455. }
  2456. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2457. struct snd_ctl_elem_value *ucontrol)
  2458. {
  2459. ucontrol->value.integer.value[0] = usb_switch_enable;
  2460. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2461. ucontrol->value.integer.value[0]);
  2462. return 0;
  2463. }
  2464. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. struct snd_soc_dapm_widget *widget =
  2468. snd_soc_dapm_kcontrol_widget(kcontrol);
  2469. struct snd_soc_dapm_update *update = NULL;
  2470. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2471. ucontrol->value.integer.value[0]);
  2472. if (ucontrol->value.integer.value[0])
  2473. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2474. 1, update);
  2475. else
  2476. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2477. 0, update);
  2478. usb_switch_enable = ucontrol->value.integer.value[0];
  2479. return 1;
  2480. }
  2481. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2482. struct snd_ctl_elem_value *ucontrol)
  2483. {
  2484. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2485. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2486. ucontrol->value.integer.value[0]);
  2487. return 0;
  2488. }
  2489. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2490. struct snd_ctl_elem_value *ucontrol)
  2491. {
  2492. struct snd_soc_dapm_widget *widget =
  2493. snd_soc_dapm_kcontrol_widget(kcontrol);
  2494. struct snd_soc_dapm_update *update = NULL;
  2495. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2496. ucontrol->value.integer.value[0]);
  2497. if (ucontrol->value.integer.value[0])
  2498. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2499. update);
  2500. else
  2501. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2502. update);
  2503. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2504. return 1;
  2505. }
  2506. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2510. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2511. ucontrol->value.integer.value[0]);
  2512. return 0;
  2513. }
  2514. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2515. struct snd_ctl_elem_value *ucontrol)
  2516. {
  2517. struct snd_soc_dapm_widget *widget =
  2518. snd_soc_dapm_kcontrol_widget(kcontrol);
  2519. struct snd_soc_dapm_update *update = NULL;
  2520. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2521. ucontrol->value.integer.value[0]);
  2522. if (ucontrol->value.integer.value[0])
  2523. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2524. update);
  2525. else
  2526. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2527. update);
  2528. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2529. return 1;
  2530. }
  2531. static int msm_routing_get_tert_mi2s_switch_mixer(
  2532. struct snd_kcontrol *kcontrol,
  2533. struct snd_ctl_elem_value *ucontrol)
  2534. {
  2535. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2536. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2537. ucontrol->value.integer.value[0]);
  2538. return 0;
  2539. }
  2540. static int msm_routing_put_tert_mi2s_switch_mixer(
  2541. struct snd_kcontrol *kcontrol,
  2542. struct snd_ctl_elem_value *ucontrol)
  2543. {
  2544. struct snd_soc_dapm_widget *widget =
  2545. snd_soc_dapm_kcontrol_widget(kcontrol);
  2546. struct snd_soc_dapm_update *update = NULL;
  2547. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2548. ucontrol->value.integer.value[0]);
  2549. if (ucontrol->value.integer.value[0])
  2550. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2551. update);
  2552. else
  2553. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2554. update);
  2555. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2556. return 1;
  2557. }
  2558. static int msm_routing_get_quat_mi2s_switch_mixer(
  2559. struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2563. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2564. ucontrol->value.integer.value[0]);
  2565. return 0;
  2566. }
  2567. static int msm_routing_put_quat_mi2s_switch_mixer(
  2568. struct snd_kcontrol *kcontrol,
  2569. struct snd_ctl_elem_value *ucontrol)
  2570. {
  2571. struct snd_soc_dapm_widget *widget =
  2572. snd_soc_dapm_kcontrol_widget(kcontrol);
  2573. struct snd_soc_dapm_update *update = NULL;
  2574. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2575. ucontrol->value.integer.value[0]);
  2576. if (ucontrol->value.integer.value[0])
  2577. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2578. update);
  2579. else
  2580. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2581. update);
  2582. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2583. return 1;
  2584. }
  2585. static int msm_routing_get_quin_mi2s_switch_mixer(
  2586. struct snd_kcontrol *kcontrol,
  2587. struct snd_ctl_elem_value *ucontrol)
  2588. {
  2589. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2590. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2591. ucontrol->value.integer.value[0]);
  2592. return 0;
  2593. }
  2594. static int msm_routing_put_quin_mi2s_switch_mixer(
  2595. struct snd_kcontrol *kcontrol,
  2596. struct snd_ctl_elem_value *ucontrol)
  2597. {
  2598. struct snd_soc_dapm_widget *widget =
  2599. snd_soc_dapm_kcontrol_widget(kcontrol);
  2600. struct snd_soc_dapm_update *update = NULL;
  2601. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. if (ucontrol->value.integer.value[0])
  2604. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2605. update);
  2606. else
  2607. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2608. update);
  2609. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2610. return 1;
  2611. }
  2612. static int msm_routing_get_sen_mi2s_switch_mixer(
  2613. struct snd_kcontrol *kcontrol,
  2614. struct snd_ctl_elem_value *ucontrol)
  2615. {
  2616. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2617. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2618. ucontrol->value.integer.value[0]);
  2619. return 0;
  2620. }
  2621. static int msm_routing_put_sen_mi2s_switch_mixer(
  2622. struct snd_kcontrol *kcontrol,
  2623. struct snd_ctl_elem_value *ucontrol)
  2624. {
  2625. struct snd_soc_dapm_widget *widget =
  2626. snd_soc_dapm_kcontrol_widget(kcontrol);
  2627. struct snd_soc_dapm_update *update = NULL;
  2628. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2629. ucontrol->value.integer.value[0]);
  2630. if (ucontrol->value.integer.value[0])
  2631. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2632. update);
  2633. else
  2634. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2635. update);
  2636. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2637. return 1;
  2638. }
  2639. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2640. struct snd_ctl_elem_value *ucontrol)
  2641. {
  2642. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2643. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2644. ucontrol->value.integer.value[0]);
  2645. return 0;
  2646. }
  2647. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2648. struct snd_ctl_elem_value *ucontrol)
  2649. {
  2650. struct snd_soc_dapm_widget *widget =
  2651. snd_soc_dapm_kcontrol_widget(kcontrol);
  2652. struct snd_soc_dapm_update *update = NULL;
  2653. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2654. ucontrol->value.integer.value[0]);
  2655. if (ucontrol->value.integer.value[0])
  2656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2657. update);
  2658. else
  2659. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2660. update);
  2661. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2662. return 1;
  2663. }
  2664. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2665. struct snd_ctl_elem_value *ucontrol)
  2666. {
  2667. ucontrol->value.integer.value[0] = lsm_port_index;
  2668. return 0;
  2669. }
  2670. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2674. int mux = ucontrol->value.enumerated.item[0];
  2675. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2676. if (mux >= e->items) {
  2677. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2678. return -EINVAL;
  2679. }
  2680. pr_debug("%s: LSM enable %ld\n", __func__,
  2681. ucontrol->value.integer.value[0]);
  2682. switch (ucontrol->value.integer.value[0]) {
  2683. case 1:
  2684. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2685. break;
  2686. case 2:
  2687. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2688. break;
  2689. case 3:
  2690. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2691. break;
  2692. case 4:
  2693. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2694. break;
  2695. case 5:
  2696. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2697. break;
  2698. case 6:
  2699. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2700. break;
  2701. case 7:
  2702. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2703. break;
  2704. case 8:
  2705. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2706. break;
  2707. case 9:
  2708. lsm_port = ADM_LSM_PORT_ID;
  2709. break;
  2710. case 10:
  2711. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2712. break;
  2713. case 11:
  2714. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2715. break;
  2716. case 12:
  2717. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2718. break;
  2719. case 13:
  2720. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2721. break;
  2722. case 14:
  2723. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2724. break;
  2725. case 15:
  2726. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2727. break;
  2728. default:
  2729. pr_err("Default lsm port");
  2730. break;
  2731. }
  2732. set_lsm_port(lsm_port);
  2733. lsm_port_index = ucontrol->value.integer.value[0];
  2734. return 0;
  2735. }
  2736. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2737. struct snd_ctl_elem_value *ucontrol)
  2738. {
  2739. int i;
  2740. u16 port_id;
  2741. enum afe_mad_type mad_type;
  2742. pr_debug("%s: enter\n", __func__);
  2743. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2744. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2745. strlen(lsm_port_text[i])))
  2746. break;
  2747. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2748. pr_warn("%s: Invalid id name %s\n", __func__,
  2749. kcontrol->id.name);
  2750. return -EINVAL;
  2751. }
  2752. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2753. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2754. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2755. strlen(lsm_port_text[7])))
  2756. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2757. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2758. strlen(lsm_port_text[8])))
  2759. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2760. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2761. strlen(lsm_port_text[10])))
  2762. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2763. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2764. strlen(lsm_port_text[13])))
  2765. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2766. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2767. strlen(lsm_port_text[14])))
  2768. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2769. mad_type = afe_port_get_mad_type(port_id);
  2770. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2771. mad_type);
  2772. switch (mad_type) {
  2773. case MAD_HW_NONE:
  2774. ucontrol->value.integer.value[0] = MADNONE;
  2775. break;
  2776. case MAD_HW_AUDIO:
  2777. ucontrol->value.integer.value[0] = MADAUDIO;
  2778. break;
  2779. case MAD_HW_BEACON:
  2780. ucontrol->value.integer.value[0] = MADBEACON;
  2781. break;
  2782. case MAD_HW_ULTRASOUND:
  2783. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2784. break;
  2785. case MAD_SW_AUDIO:
  2786. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2787. break;
  2788. default:
  2789. pr_warn("%s: Unknown\n", __func__);
  2790. return -EINVAL;
  2791. }
  2792. return 0;
  2793. }
  2794. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2795. struct snd_ctl_elem_value *ucontrol)
  2796. {
  2797. int i;
  2798. u16 port_id;
  2799. enum afe_mad_type mad_type;
  2800. pr_debug("%s: enter\n", __func__);
  2801. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2802. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2803. strlen(lsm_port_text[i])))
  2804. break;
  2805. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2806. pr_warn("%s: Invalid id name %s\n", __func__,
  2807. kcontrol->id.name);
  2808. return -EINVAL;
  2809. }
  2810. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2811. switch (ucontrol->value.integer.value[0]) {
  2812. case MADNONE:
  2813. mad_type = MAD_HW_NONE;
  2814. break;
  2815. case MADAUDIO:
  2816. mad_type = MAD_HW_AUDIO;
  2817. break;
  2818. case MADBEACON:
  2819. mad_type = MAD_HW_BEACON;
  2820. break;
  2821. case MADULTRASOUND:
  2822. mad_type = MAD_HW_ULTRASOUND;
  2823. break;
  2824. case MADSWAUDIO:
  2825. mad_type = MAD_SW_AUDIO;
  2826. break;
  2827. default:
  2828. pr_warn("%s: Unknown\n", __func__);
  2829. return -EINVAL;
  2830. }
  2831. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2832. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2833. strlen(lsm_port_text[7])))
  2834. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2835. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2836. strlen(lsm_port_text[8])))
  2837. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2838. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2839. strlen(lsm_port_text[10])))
  2840. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2841. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2842. strlen(lsm_port_text[13])))
  2843. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2844. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2845. strlen(lsm_port_text[14])))
  2846. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2847. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2848. mad_type);
  2849. return afe_port_set_mad_type(port_id, mad_type);
  2850. }
  2851. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2852. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2853. adm_override_chs_text);
  2854. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2855. {
  2856. int backend_id;
  2857. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2858. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2859. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2860. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2861. } else {
  2862. pr_err("%s: unsupported backend id: %s",
  2863. __func__, kcontrol->id.name);
  2864. return -EINVAL;
  2865. }
  2866. return backend_id;
  2867. }
  2868. static int msm_routing_adm_channel_config_get(
  2869. struct snd_kcontrol *kcontrol,
  2870. struct snd_ctl_elem_value *ucontrol)
  2871. {
  2872. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2873. if (backend_id >= 0) {
  2874. mutex_lock(&routing_lock);
  2875. ucontrol->value.integer.value[0] =
  2876. msm_bedais[backend_id].adm_override_ch;
  2877. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2878. ucontrol->value.integer.value[0], backend_id);
  2879. mutex_unlock(&routing_lock);
  2880. }
  2881. return 0;
  2882. }
  2883. static int msm_routing_adm_channel_config_put(
  2884. struct snd_kcontrol *kcontrol,
  2885. struct snd_ctl_elem_value *ucontrol)
  2886. {
  2887. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2888. if (backend_id >= 0) {
  2889. mutex_lock(&routing_lock);
  2890. msm_bedais[backend_id].adm_override_ch =
  2891. ucontrol->value.integer.value[0];
  2892. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2893. __func__, backend_id,
  2894. msm_bedais[backend_id].adm_override_ch);
  2895. mutex_unlock(&routing_lock);
  2896. }
  2897. return 0;
  2898. }
  2899. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2900. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2901. msm_routing_adm_channel_config_get,
  2902. msm_routing_adm_channel_config_put),
  2903. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2904. msm_routing_adm_channel_config_get,
  2905. msm_routing_adm_channel_config_put),
  2906. };
  2907. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2908. struct snd_ctl_elem_value *ucontrol)
  2909. {
  2910. mutex_lock(&routing_lock);
  2911. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2912. mutex_unlock(&routing_lock);
  2913. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2914. ucontrol->value.integer.value[0]);
  2915. return 0;
  2916. };
  2917. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2918. struct snd_ctl_elem_value *ucontrol)
  2919. {
  2920. struct aanc_data aanc_info;
  2921. mutex_lock(&routing_lock);
  2922. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2923. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2924. ucontrol->value.integer.value[0]);
  2925. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2926. if (ucontrol->value.integer.value[0] == 0) {
  2927. aanc_info.aanc_active = false;
  2928. aanc_info.aanc_tx_port = 0;
  2929. aanc_info.aanc_rx_port = 0;
  2930. } else {
  2931. aanc_info.aanc_active = true;
  2932. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2933. aanc_info.aanc_tx_port =
  2934. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2935. }
  2936. afe_set_aanc_info(&aanc_info);
  2937. mutex_unlock(&routing_lock);
  2938. return 0;
  2939. };
  2940. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2941. struct snd_ctl_elem_value *ucontrol)
  2942. {
  2943. int idx = 0, shift = 0;
  2944. struct soc_mixer_control *mc =
  2945. (struct soc_mixer_control *)kcontrol->private_value;
  2946. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2947. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2948. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2949. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2950. return -EINVAL;
  2951. }
  2952. if (test_bit(shift,
  2953. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2954. ucontrol->value.integer.value[0] = 1;
  2955. else
  2956. ucontrol->value.integer.value[0] = 0;
  2957. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2958. ucontrol->value.integer.value[0]);
  2959. return 0;
  2960. }
  2961. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2962. struct snd_ctl_elem_value *ucontrol)
  2963. {
  2964. int idx = 0, shift = 0;
  2965. struct soc_mixer_control *mc =
  2966. (struct soc_mixer_control *)kcontrol->private_value;
  2967. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2968. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2969. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2970. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2971. return -EINVAL;
  2972. }
  2973. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2974. __func__, mc->shift, mc->rshift,
  2975. ucontrol->value.integer.value[0], idx, shift);
  2976. if (ucontrol->value.integer.value[0]) {
  2977. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2978. msm_bedais[mc->rshift].port_id);
  2979. set_bit(shift,
  2980. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2981. } else {
  2982. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2983. msm_bedais[mc->rshift].port_id);
  2984. clear_bit(shift,
  2985. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2986. }
  2987. return 1;
  2988. }
  2989. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2990. struct snd_ctl_elem_value *ucontrol)
  2991. {
  2992. u16 fe_id = 0;
  2993. fe_id = ((struct soc_mixer_control *)
  2994. kcontrol->private_value)->shift;
  2995. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2996. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2997. return -EINVAL;
  2998. }
  2999. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3000. return 0;
  3001. }
  3002. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3003. struct snd_ctl_elem_value *ucontrol)
  3004. {
  3005. u16 fe_id = 0;
  3006. fe_id = ((struct soc_mixer_control *)
  3007. kcontrol->private_value)->shift;
  3008. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3009. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3010. return -EINVAL;
  3011. }
  3012. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3013. return 1;
  3014. }
  3015. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3016. struct snd_ctl_elem_value *ucontrol)
  3017. {
  3018. u16 fe_id = 0;
  3019. fe_id = ((struct soc_multi_mixer_control *)
  3020. kcontrol->private_value)->shift;
  3021. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3022. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3023. return -EINVAL;
  3024. }
  3025. ucontrol->value.integer.value[0] =
  3026. channel_mixer[fe_id].output_channel;
  3027. return 0;
  3028. }
  3029. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3030. struct snd_ctl_elem_value *ucontrol)
  3031. {
  3032. u16 fe_id = 0;
  3033. fe_id = ((struct soc_multi_mixer_control *)
  3034. kcontrol->private_value)->shift;
  3035. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3036. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3037. return -EINVAL;
  3038. }
  3039. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3040. fe_id,
  3041. (unsigned int)(ucontrol->value.integer.value[0]));
  3042. channel_mixer[fe_id].output_channel =
  3043. (unsigned int)(ucontrol->value.integer.value[0]);
  3044. return 1;
  3045. }
  3046. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3047. /* If new backend is added, need update this array */
  3048. static const char *const be_name[] = {
  3049. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3050. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3051. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3052. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3053. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3054. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3055. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3056. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3057. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3058. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3059. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3060. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3061. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3062. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3063. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3064. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3065. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3066. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3067. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3068. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3069. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3070. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3071. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3072. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3073. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3074. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3075. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3076. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3077. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3078. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3079. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3080. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3081. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3082. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3083. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3084. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3085. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3086. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3087. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3088. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3089. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3090. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3091. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3092. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3093. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3094. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3095. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3096. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3097. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3098. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3099. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3100. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3101. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3102. "SEC_META_MI2S_RX"
  3103. };
  3104. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3105. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3106. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3107. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3108. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3109. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3110. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3111. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3112. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3113. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3114. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3115. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3116. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3117. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3118. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3119. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3120. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3121. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3122. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3123. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3124. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3126. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3128. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3130. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3132. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3134. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3136. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3138. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3140. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3142. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3146. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3148. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3158. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3159. unsigned int channels,
  3160. unsigned int items, const char *const names[])
  3161. {
  3162. if (uinfo->value.enumerated.item >= items)
  3163. uinfo->value.enumerated.item = items - 1;
  3164. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3165. sizeof(uinfo->value.enumerated.name),
  3166. "ALSA: too long item name '%s'\n",
  3167. names[uinfo->value.enumerated.item]);
  3168. strlcpy(uinfo->value.enumerated.name,
  3169. names[uinfo->value.enumerated.item],
  3170. sizeof(uinfo->value.enumerated.name));
  3171. return 0;
  3172. }
  3173. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3174. struct snd_ctl_elem_info *uinfo)
  3175. {
  3176. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3177. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3178. uinfo->count = 1;
  3179. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3180. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3181. return 0;
  3182. }
  3183. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3184. struct snd_ctl_elem_value *ucontrol)
  3185. {
  3186. u16 fe_id = 0;
  3187. fe_id = ((struct soc_enum *)
  3188. kcontrol->private_value)->shift_l;
  3189. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3190. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3191. return -EINVAL;
  3192. }
  3193. pr_debug("%s: FE %d %s\n", __func__,
  3194. fe_id,
  3195. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3196. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3197. return 0;
  3198. }
  3199. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3200. struct snd_ctl_elem_value *ucontrol)
  3201. {
  3202. u16 fe_id = 0;
  3203. fe_id = ((struct soc_enum *)
  3204. kcontrol->private_value)->shift_l;
  3205. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3206. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3207. return -EINVAL;
  3208. }
  3209. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3210. pr_debug("%s: %s FE %d\n", __func__,
  3211. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3212. fe_id);
  3213. return 0;
  3214. }
  3215. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3216. struct snd_ctl_elem_info *uinfo)
  3217. {
  3218. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3219. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3220. uinfo->count = 1;
  3221. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3222. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3223. return 0;
  3224. }
  3225. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3229. u16 fe_id = 0, in_ch = 0;
  3230. fe_id = e->shift_l;
  3231. in_ch = e->shift_r;
  3232. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3233. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3234. return -EINVAL;
  3235. }
  3236. if (in_ch >= ADM_MAX_CHANNELS) {
  3237. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3238. return -EINVAL;
  3239. }
  3240. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3241. return 1;
  3242. }
  3243. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3247. u16 fe_id = 0, in_ch = 0;
  3248. fe_id = e->shift_l;
  3249. in_ch = e->shift_r;
  3250. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3251. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3252. return -EINVAL;
  3253. }
  3254. if (in_ch >= ADM_MAX_CHANNELS) {
  3255. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3256. return -EINVAL;
  3257. }
  3258. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3259. return 1;
  3260. }
  3261. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3262. struct snd_ctl_elem_info *uinfo)
  3263. {
  3264. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3265. uinfo->count = ADM_MAX_CHANNELS;
  3266. uinfo->value.integer.min = 0;
  3267. uinfo->value.integer.max = WEIGHT_0_DB;
  3268. return 0;
  3269. }
  3270. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3271. struct snd_ctl_elem_value *ucontrol)
  3272. {
  3273. u16 fe_id = 0, out_ch = 0;
  3274. int i, weight;
  3275. fe_id = ((struct soc_multi_mixer_control *)
  3276. kcontrol->private_value)->shift;
  3277. out_ch = ((struct soc_multi_mixer_control *)
  3278. kcontrol->private_value)->rshift;
  3279. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3280. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3281. return -EINVAL;
  3282. }
  3283. if (out_ch >= ADM_MAX_CHANNELS) {
  3284. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3285. return -EINVAL;
  3286. }
  3287. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3288. __func__, fe_id,
  3289. ucontrol->value.integer.value[0],
  3290. ucontrol->value.integer.value[1],
  3291. ucontrol->value.integer.value[2],
  3292. ucontrol->value.integer.value[3],
  3293. ucontrol->value.integer.value[4],
  3294. ucontrol->value.integer.value[5],
  3295. ucontrol->value.integer.value[6],
  3296. ucontrol->value.integer.value[7]);
  3297. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3298. weight = ucontrol->value.integer.value[i];
  3299. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3300. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3301. __func__, fe_id, out_ch, i,
  3302. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3303. }
  3304. return 0;
  3305. }
  3306. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3307. struct snd_ctl_elem_value *ucontrol)
  3308. {
  3309. u16 fe_id = 0, out_ch = 0;
  3310. int i;
  3311. fe_id = ((struct soc_multi_mixer_control *)
  3312. kcontrol->private_value)->shift;
  3313. out_ch = ((struct soc_multi_mixer_control *)
  3314. kcontrol->private_value)->rshift;
  3315. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3316. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3317. return -EINVAL;
  3318. }
  3319. if (out_ch >= ADM_MAX_CHANNELS) {
  3320. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3321. return -EINVAL;
  3322. }
  3323. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3324. ucontrol->value.integer.value[i] =
  3325. channel_mixer[fe_id].channel_weight[out_ch][i];
  3326. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3327. __func__, fe_id,
  3328. ucontrol->value.integer.value[0],
  3329. ucontrol->value.integer.value[1],
  3330. ucontrol->value.integer.value[2],
  3331. ucontrol->value.integer.value[3],
  3332. ucontrol->value.integer.value[4],
  3333. ucontrol->value.integer.value[5],
  3334. ucontrol->value.integer.value[6],
  3335. ucontrol->value.integer.value[7]);
  3336. return 0;
  3337. }
  3338. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3339. struct snd_ctl_elem_info *uinfo)
  3340. {
  3341. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3342. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3343. /* Valid channel map value ranges from 1 to 64 */
  3344. uinfo->value.integer.min = 0;
  3345. uinfo->value.integer.max = 64;
  3346. return 0;
  3347. }
  3348. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3349. struct snd_ctl_elem_value *ucontrol)
  3350. {
  3351. u16 fe_id = 0;
  3352. int i, ch_map;
  3353. fe_id = ((struct soc_multi_mixer_control *)
  3354. kcontrol->private_value)->shift;
  3355. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3356. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3357. return -EINVAL;
  3358. }
  3359. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3360. ch_map = ucontrol->value.integer.value[i];
  3361. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3362. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3363. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3364. }
  3365. /* Make override_out_ch_map false if ch map is reset */
  3366. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3367. channel_mixer[fe_id].override_out_ch_map = false;
  3368. else
  3369. channel_mixer[fe_id].override_out_ch_map = true;
  3370. return 0;
  3371. }
  3372. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3373. struct snd_ctl_elem_value *ucontrol)
  3374. {
  3375. u16 fe_id = 0;
  3376. int i;
  3377. fe_id = ((struct soc_multi_mixer_control *)
  3378. kcontrol->private_value)->shift;
  3379. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3380. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3381. return -EINVAL;
  3382. }
  3383. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3384. ucontrol->value.integer.value[i] =
  3385. channel_mixer[fe_id].out_ch_map[i];
  3386. return 0;
  3387. }
  3388. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3389. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3390. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3391. msm_pcm_get_channel_rule_index,
  3392. msm_pcm_put_channel_rule_index),
  3393. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3394. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3395. msm_pcm_get_channel_rule_index,
  3396. msm_pcm_put_channel_rule_index),
  3397. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3398. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3399. msm_pcm_get_channel_rule_index,
  3400. msm_pcm_put_channel_rule_index),
  3401. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3402. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3403. msm_pcm_get_channel_rule_index,
  3404. msm_pcm_put_channel_rule_index),
  3405. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3406. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3407. msm_pcm_get_channel_rule_index,
  3408. msm_pcm_put_channel_rule_index),
  3409. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3410. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3411. msm_pcm_get_channel_rule_index,
  3412. msm_pcm_put_channel_rule_index),
  3413. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3415. msm_pcm_get_channel_rule_index,
  3416. msm_pcm_put_channel_rule_index),
  3417. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3419. msm_pcm_get_channel_rule_index,
  3420. msm_pcm_put_channel_rule_index),
  3421. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3423. msm_pcm_get_channel_rule_index,
  3424. msm_pcm_put_channel_rule_index),
  3425. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3427. msm_pcm_get_channel_rule_index,
  3428. msm_pcm_put_channel_rule_index),
  3429. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3431. msm_pcm_get_channel_rule_index,
  3432. msm_pcm_put_channel_rule_index),
  3433. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3435. msm_pcm_get_out_chs,
  3436. msm_pcm_put_out_chs),
  3437. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3439. msm_pcm_get_out_chs,
  3440. msm_pcm_put_out_chs),
  3441. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3443. msm_pcm_get_out_chs,
  3444. msm_pcm_put_out_chs),
  3445. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3447. msm_pcm_get_out_chs,
  3448. msm_pcm_put_out_chs),
  3449. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3451. msm_pcm_get_out_chs,
  3452. msm_pcm_put_out_chs),
  3453. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3455. msm_pcm_get_out_chs,
  3456. msm_pcm_put_out_chs),
  3457. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3459. msm_pcm_get_out_chs,
  3460. msm_pcm_put_out_chs),
  3461. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3463. msm_pcm_get_out_chs,
  3464. msm_pcm_put_out_chs),
  3465. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3467. msm_pcm_get_out_chs,
  3468. msm_pcm_put_out_chs),
  3469. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3471. msm_pcm_get_out_chs,
  3472. msm_pcm_put_out_chs),
  3473. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3475. msm_pcm_get_out_chs,
  3476. msm_pcm_put_out_chs),
  3477. {
  3478. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3479. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3480. .name = "MultiMedia1 Channel Mixer",
  3481. .info = msm_pcm_channel_mixer_info,
  3482. .get = msm_pcm_channel_mixer_get,
  3483. .put = msm_pcm_channel_mixer_put,
  3484. .private_value = (unsigned long)&(mm1_channel_mux)
  3485. },
  3486. {
  3487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3489. .name = "MultiMedia2 Channel Mixer",
  3490. .info = msm_pcm_channel_mixer_info,
  3491. .get = msm_pcm_channel_mixer_get,
  3492. .put = msm_pcm_channel_mixer_put,
  3493. .private_value = (unsigned long)&(mm2_channel_mux)
  3494. },
  3495. {
  3496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3498. .name = "MultiMedia3 Channel Mixer",
  3499. .info = msm_pcm_channel_mixer_info,
  3500. .get = msm_pcm_channel_mixer_get,
  3501. .put = msm_pcm_channel_mixer_put,
  3502. .private_value = (unsigned long)&(mm3_channel_mux)
  3503. },
  3504. {
  3505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3507. .name = "MultiMedia4 Channel Mixer",
  3508. .info = msm_pcm_channel_mixer_info,
  3509. .get = msm_pcm_channel_mixer_get,
  3510. .put = msm_pcm_channel_mixer_put,
  3511. .private_value = (unsigned long)&(mm4_channel_mux)
  3512. },
  3513. {
  3514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3515. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3516. .name = "MultiMedia18 Channel Mixer",
  3517. .info = msm_pcm_channel_mixer_info,
  3518. .get = msm_pcm_channel_mixer_get,
  3519. .put = msm_pcm_channel_mixer_put,
  3520. .private_value = (unsigned long)&(mm18_channel_mux)
  3521. },
  3522. {
  3523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3525. .name = "MultiMedia19 Channel Mixer",
  3526. .info = msm_pcm_channel_mixer_info,
  3527. .get = msm_pcm_channel_mixer_get,
  3528. .put = msm_pcm_channel_mixer_put,
  3529. .private_value = (unsigned long)&(mm19_channel_mux)
  3530. },
  3531. {
  3532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3533. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3534. .name = "MultiMedia28 Channel Mixer",
  3535. .info = msm_pcm_channel_mixer_info,
  3536. .get = msm_pcm_channel_mixer_get,
  3537. .put = msm_pcm_channel_mixer_put,
  3538. .private_value = (unsigned long)&(mm28_channel_mux)
  3539. },
  3540. {
  3541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3543. .name = "MultiMedia29 Channel Mixer",
  3544. .info = msm_pcm_channel_mixer_info,
  3545. .get = msm_pcm_channel_mixer_get,
  3546. .put = msm_pcm_channel_mixer_put,
  3547. .private_value = (unsigned long)&(mm29_channel_mux)
  3548. },
  3549. {
  3550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3552. .name = "MultiMedia30 Channel Mixer",
  3553. .info = msm_pcm_channel_mixer_info,
  3554. .get = msm_pcm_channel_mixer_get,
  3555. .put = msm_pcm_channel_mixer_put,
  3556. .private_value = (unsigned long)&(mm30_channel_mux)
  3557. },
  3558. {
  3559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3561. .name = "MultiMedia1 Output Channel1",
  3562. .info = msm_pcm_channel_weight_info,
  3563. .get = msm_pcm_channel_weight_get,
  3564. .put = msm_pcm_channel_weight_put,
  3565. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3566. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3567. },
  3568. {
  3569. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3571. .name = "MultiMedia1 Output Channel2",
  3572. .info = msm_pcm_channel_weight_info,
  3573. .get = msm_pcm_channel_weight_get,
  3574. .put = msm_pcm_channel_weight_put,
  3575. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3576. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel3",
  3582. .info = msm_pcm_channel_weight_info,
  3583. .get = msm_pcm_channel_weight_get,
  3584. .put = msm_pcm_channel_weight_put,
  3585. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3586. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel4",
  3592. .info = msm_pcm_channel_weight_info,
  3593. .get = msm_pcm_channel_weight_get,
  3594. .put = msm_pcm_channel_weight_put,
  3595. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3596. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel5",
  3602. .info = msm_pcm_channel_weight_info,
  3603. .get = msm_pcm_channel_weight_get,
  3604. .put = msm_pcm_channel_weight_put,
  3605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel6",
  3612. .info = msm_pcm_channel_weight_info,
  3613. .get = msm_pcm_channel_weight_get,
  3614. .put = msm_pcm_channel_weight_put,
  3615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel7",
  3622. .info = msm_pcm_channel_weight_info,
  3623. .get = msm_pcm_channel_weight_get,
  3624. .put = msm_pcm_channel_weight_put,
  3625. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3626. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel8",
  3632. .info = msm_pcm_channel_weight_info,
  3633. .get = msm_pcm_channel_weight_get,
  3634. .put = msm_pcm_channel_weight_put,
  3635. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3636. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel9",
  3642. .info = msm_pcm_channel_weight_info,
  3643. .get = msm_pcm_channel_weight_get,
  3644. .put = msm_pcm_channel_weight_put,
  3645. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3646. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel10",
  3652. .info = msm_pcm_channel_weight_info,
  3653. .get = msm_pcm_channel_weight_get,
  3654. .put = msm_pcm_channel_weight_put,
  3655. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3656. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel11",
  3662. .info = msm_pcm_channel_weight_info,
  3663. .get = msm_pcm_channel_weight_get,
  3664. .put = msm_pcm_channel_weight_put,
  3665. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3666. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia1 Output Channel12",
  3672. .info = msm_pcm_channel_weight_info,
  3673. .get = msm_pcm_channel_weight_get,
  3674. .put = msm_pcm_channel_weight_put,
  3675. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3676. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia1 Output Channel13",
  3682. .info = msm_pcm_channel_weight_info,
  3683. .get = msm_pcm_channel_weight_get,
  3684. .put = msm_pcm_channel_weight_put,
  3685. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3686. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia1 Output Channel14",
  3692. .info = msm_pcm_channel_weight_info,
  3693. .get = msm_pcm_channel_weight_get,
  3694. .put = msm_pcm_channel_weight_put,
  3695. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3696. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia2 Output Channel1",
  3702. .info = msm_pcm_channel_weight_info,
  3703. .get = msm_pcm_channel_weight_get,
  3704. .put = msm_pcm_channel_weight_put,
  3705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3706. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia2 Output Channel2",
  3712. .info = msm_pcm_channel_weight_info,
  3713. .get = msm_pcm_channel_weight_get,
  3714. .put = msm_pcm_channel_weight_put,
  3715. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3716. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia2 Output Channel3",
  3722. .info = msm_pcm_channel_weight_info,
  3723. .get = msm_pcm_channel_weight_get,
  3724. .put = msm_pcm_channel_weight_put,
  3725. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3726. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia3 Output Channel1",
  3732. .info = msm_pcm_channel_weight_info,
  3733. .get = msm_pcm_channel_weight_get,
  3734. .put = msm_pcm_channel_weight_put,
  3735. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3736. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia3 Output Channel2",
  3742. .info = msm_pcm_channel_weight_info,
  3743. .get = msm_pcm_channel_weight_get,
  3744. .put = msm_pcm_channel_weight_put,
  3745. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3746. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia18 Output Channel1",
  3752. .info = msm_pcm_channel_weight_info,
  3753. .get = msm_pcm_channel_weight_get,
  3754. .put = msm_pcm_channel_weight_put,
  3755. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3756. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia18 Output Channel2",
  3762. .info = msm_pcm_channel_weight_info,
  3763. .get = msm_pcm_channel_weight_get,
  3764. .put = msm_pcm_channel_weight_put,
  3765. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3766. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel3",
  3772. .info = msm_pcm_channel_weight_info,
  3773. .get = msm_pcm_channel_weight_get,
  3774. .put = msm_pcm_channel_weight_put,
  3775. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3776. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel4",
  3782. .info = msm_pcm_channel_weight_info,
  3783. .get = msm_pcm_channel_weight_get,
  3784. .put = msm_pcm_channel_weight_put,
  3785. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3786. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel5",
  3792. .info = msm_pcm_channel_weight_info,
  3793. .get = msm_pcm_channel_weight_get,
  3794. .put = msm_pcm_channel_weight_put,
  3795. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3796. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel6",
  3802. .info = msm_pcm_channel_weight_info,
  3803. .get = msm_pcm_channel_weight_get,
  3804. .put = msm_pcm_channel_weight_put,
  3805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel7",
  3812. .info = msm_pcm_channel_weight_info,
  3813. .get = msm_pcm_channel_weight_get,
  3814. .put = msm_pcm_channel_weight_put,
  3815. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3816. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel8",
  3822. .info = msm_pcm_channel_weight_info,
  3823. .get = msm_pcm_channel_weight_get,
  3824. .put = msm_pcm_channel_weight_put,
  3825. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3826. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel9",
  3832. .info = msm_pcm_channel_weight_info,
  3833. .get = msm_pcm_channel_weight_get,
  3834. .put = msm_pcm_channel_weight_put,
  3835. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3836. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel10",
  3842. .info = msm_pcm_channel_weight_info,
  3843. .get = msm_pcm_channel_weight_get,
  3844. .put = msm_pcm_channel_weight_put,
  3845. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3846. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel11",
  3852. .info = msm_pcm_channel_weight_info,
  3853. .get = msm_pcm_channel_weight_get,
  3854. .put = msm_pcm_channel_weight_put,
  3855. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3856. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia18 Output Channel12",
  3862. .info = msm_pcm_channel_weight_info,
  3863. .get = msm_pcm_channel_weight_get,
  3864. .put = msm_pcm_channel_weight_put,
  3865. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3866. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia18 Output Channel13",
  3872. .info = msm_pcm_channel_weight_info,
  3873. .get = msm_pcm_channel_weight_get,
  3874. .put = msm_pcm_channel_weight_put,
  3875. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3876. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia18 Output Channel14",
  3882. .info = msm_pcm_channel_weight_info,
  3883. .get = msm_pcm_channel_weight_get,
  3884. .put = msm_pcm_channel_weight_put,
  3885. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3886. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia19 Output Channel1",
  3892. .info = msm_pcm_channel_weight_info,
  3893. .get = msm_pcm_channel_weight_get,
  3894. .put = msm_pcm_channel_weight_put,
  3895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3896. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia19 Output Channel2",
  3902. .info = msm_pcm_channel_weight_info,
  3903. .get = msm_pcm_channel_weight_get,
  3904. .put = msm_pcm_channel_weight_put,
  3905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3906. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel3",
  3912. .info = msm_pcm_channel_weight_info,
  3913. .get = msm_pcm_channel_weight_get,
  3914. .put = msm_pcm_channel_weight_put,
  3915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3916. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel4",
  3922. .info = msm_pcm_channel_weight_info,
  3923. .get = msm_pcm_channel_weight_get,
  3924. .put = msm_pcm_channel_weight_put,
  3925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3926. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel5",
  3932. .info = msm_pcm_channel_weight_info,
  3933. .get = msm_pcm_channel_weight_get,
  3934. .put = msm_pcm_channel_weight_put,
  3935. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3936. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel6",
  3942. .info = msm_pcm_channel_weight_info,
  3943. .get = msm_pcm_channel_weight_get,
  3944. .put = msm_pcm_channel_weight_put,
  3945. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3946. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel7",
  3952. .info = msm_pcm_channel_weight_info,
  3953. .get = msm_pcm_channel_weight_get,
  3954. .put = msm_pcm_channel_weight_put,
  3955. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3956. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel8",
  3962. .info = msm_pcm_channel_weight_info,
  3963. .get = msm_pcm_channel_weight_get,
  3964. .put = msm_pcm_channel_weight_put,
  3965. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3966. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel9",
  3972. .info = msm_pcm_channel_weight_info,
  3973. .get = msm_pcm_channel_weight_get,
  3974. .put = msm_pcm_channel_weight_put,
  3975. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3976. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel10",
  3982. .info = msm_pcm_channel_weight_info,
  3983. .get = msm_pcm_channel_weight_get,
  3984. .put = msm_pcm_channel_weight_put,
  3985. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3986. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel11",
  3992. .info = msm_pcm_channel_weight_info,
  3993. .get = msm_pcm_channel_weight_get,
  3994. .put = msm_pcm_channel_weight_put,
  3995. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3996. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia19 Output Channel12",
  4002. .info = msm_pcm_channel_weight_info,
  4003. .get = msm_pcm_channel_weight_get,
  4004. .put = msm_pcm_channel_weight_put,
  4005. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4006. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia19 Output Channel13",
  4012. .info = msm_pcm_channel_weight_info,
  4013. .get = msm_pcm_channel_weight_get,
  4014. .put = msm_pcm_channel_weight_put,
  4015. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4016. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia19 Output Channel14",
  4022. .info = msm_pcm_channel_weight_info,
  4023. .get = msm_pcm_channel_weight_get,
  4024. .put = msm_pcm_channel_weight_put,
  4025. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4026. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia28 Output Channel1",
  4032. .info = msm_pcm_channel_weight_info,
  4033. .get = msm_pcm_channel_weight_get,
  4034. .put = msm_pcm_channel_weight_put,
  4035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia28 Output Channel2",
  4042. .info = msm_pcm_channel_weight_info,
  4043. .get = msm_pcm_channel_weight_get,
  4044. .put = msm_pcm_channel_weight_put,
  4045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel3",
  4052. .info = msm_pcm_channel_weight_info,
  4053. .get = msm_pcm_channel_weight_get,
  4054. .put = msm_pcm_channel_weight_put,
  4055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4056. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel4",
  4062. .info = msm_pcm_channel_weight_info,
  4063. .get = msm_pcm_channel_weight_get,
  4064. .put = msm_pcm_channel_weight_put,
  4065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4066. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel5",
  4072. .info = msm_pcm_channel_weight_info,
  4073. .get = msm_pcm_channel_weight_get,
  4074. .put = msm_pcm_channel_weight_put,
  4075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel6",
  4082. .info = msm_pcm_channel_weight_info,
  4083. .get = msm_pcm_channel_weight_get,
  4084. .put = msm_pcm_channel_weight_put,
  4085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel7",
  4092. .info = msm_pcm_channel_weight_info,
  4093. .get = msm_pcm_channel_weight_get,
  4094. .put = msm_pcm_channel_weight_put,
  4095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4096. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel8",
  4102. .info = msm_pcm_channel_weight_info,
  4103. .get = msm_pcm_channel_weight_get,
  4104. .put = msm_pcm_channel_weight_put,
  4105. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4106. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel9",
  4112. .info = msm_pcm_channel_weight_info,
  4113. .get = msm_pcm_channel_weight_get,
  4114. .put = msm_pcm_channel_weight_put,
  4115. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4116. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel10",
  4122. .info = msm_pcm_channel_weight_info,
  4123. .get = msm_pcm_channel_weight_get,
  4124. .put = msm_pcm_channel_weight_put,
  4125. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4126. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel11",
  4132. .info = msm_pcm_channel_weight_info,
  4133. .get = msm_pcm_channel_weight_get,
  4134. .put = msm_pcm_channel_weight_put,
  4135. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4136. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia28 Output Channel12",
  4142. .info = msm_pcm_channel_weight_info,
  4143. .get = msm_pcm_channel_weight_get,
  4144. .put = msm_pcm_channel_weight_put,
  4145. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4146. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia28 Output Channel13",
  4152. .info = msm_pcm_channel_weight_info,
  4153. .get = msm_pcm_channel_weight_get,
  4154. .put = msm_pcm_channel_weight_put,
  4155. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4156. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia28 Output Channel14",
  4162. .info = msm_pcm_channel_weight_info,
  4163. .get = msm_pcm_channel_weight_get,
  4164. .put = msm_pcm_channel_weight_put,
  4165. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4166. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia29 Output Channel1",
  4172. .info = msm_pcm_channel_weight_info,
  4173. .get = msm_pcm_channel_weight_get,
  4174. .put = msm_pcm_channel_weight_put,
  4175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4176. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia29 Output Channel2",
  4182. .info = msm_pcm_channel_weight_info,
  4183. .get = msm_pcm_channel_weight_get,
  4184. .put = msm_pcm_channel_weight_put,
  4185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4186. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel3",
  4192. .info = msm_pcm_channel_weight_info,
  4193. .get = msm_pcm_channel_weight_get,
  4194. .put = msm_pcm_channel_weight_put,
  4195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4196. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel4",
  4202. .info = msm_pcm_channel_weight_info,
  4203. .get = msm_pcm_channel_weight_get,
  4204. .put = msm_pcm_channel_weight_put,
  4205. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4206. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel5",
  4212. .info = msm_pcm_channel_weight_info,
  4213. .get = msm_pcm_channel_weight_get,
  4214. .put = msm_pcm_channel_weight_put,
  4215. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4216. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel6",
  4222. .info = msm_pcm_channel_weight_info,
  4223. .get = msm_pcm_channel_weight_get,
  4224. .put = msm_pcm_channel_weight_put,
  4225. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4226. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel7",
  4232. .info = msm_pcm_channel_weight_info,
  4233. .get = msm_pcm_channel_weight_get,
  4234. .put = msm_pcm_channel_weight_put,
  4235. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4236. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel8",
  4242. .info = msm_pcm_channel_weight_info,
  4243. .get = msm_pcm_channel_weight_get,
  4244. .put = msm_pcm_channel_weight_put,
  4245. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4246. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel9",
  4252. .info = msm_pcm_channel_weight_info,
  4253. .get = msm_pcm_channel_weight_get,
  4254. .put = msm_pcm_channel_weight_put,
  4255. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4256. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel10",
  4262. .info = msm_pcm_channel_weight_info,
  4263. .get = msm_pcm_channel_weight_get,
  4264. .put = msm_pcm_channel_weight_put,
  4265. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4266. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel11",
  4272. .info = msm_pcm_channel_weight_info,
  4273. .get = msm_pcm_channel_weight_get,
  4274. .put = msm_pcm_channel_weight_put,
  4275. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4276. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia29 Output Channel12",
  4282. .info = msm_pcm_channel_weight_info,
  4283. .get = msm_pcm_channel_weight_get,
  4284. .put = msm_pcm_channel_weight_put,
  4285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia29 Output Channel13",
  4292. .info = msm_pcm_channel_weight_info,
  4293. .get = msm_pcm_channel_weight_get,
  4294. .put = msm_pcm_channel_weight_put,
  4295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia29 Output Channel14",
  4302. .info = msm_pcm_channel_weight_info,
  4303. .get = msm_pcm_channel_weight_get,
  4304. .put = msm_pcm_channel_weight_put,
  4305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia30 Output Channel1",
  4312. .info = msm_pcm_channel_weight_info,
  4313. .get = msm_pcm_channel_weight_get,
  4314. .put = msm_pcm_channel_weight_put,
  4315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia30 Output Channel2",
  4322. .info = msm_pcm_channel_weight_info,
  4323. .get = msm_pcm_channel_weight_get,
  4324. .put = msm_pcm_channel_weight_put,
  4325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel3",
  4332. .info = msm_pcm_channel_weight_info,
  4333. .get = msm_pcm_channel_weight_get,
  4334. .put = msm_pcm_channel_weight_put,
  4335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel4",
  4342. .info = msm_pcm_channel_weight_info,
  4343. .get = msm_pcm_channel_weight_get,
  4344. .put = msm_pcm_channel_weight_put,
  4345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel5",
  4352. .info = msm_pcm_channel_weight_info,
  4353. .get = msm_pcm_channel_weight_get,
  4354. .put = msm_pcm_channel_weight_put,
  4355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel6",
  4362. .info = msm_pcm_channel_weight_info,
  4363. .get = msm_pcm_channel_weight_get,
  4364. .put = msm_pcm_channel_weight_put,
  4365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4366. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel7",
  4372. .info = msm_pcm_channel_weight_info,
  4373. .get = msm_pcm_channel_weight_get,
  4374. .put = msm_pcm_channel_weight_put,
  4375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4376. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel8",
  4382. .info = msm_pcm_channel_weight_info,
  4383. .get = msm_pcm_channel_weight_get,
  4384. .put = msm_pcm_channel_weight_put,
  4385. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4386. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel9",
  4392. .info = msm_pcm_channel_weight_info,
  4393. .get = msm_pcm_channel_weight_get,
  4394. .put = msm_pcm_channel_weight_put,
  4395. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4396. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel10",
  4402. .info = msm_pcm_channel_weight_info,
  4403. .get = msm_pcm_channel_weight_get,
  4404. .put = msm_pcm_channel_weight_put,
  4405. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4406. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel11",
  4412. .info = msm_pcm_channel_weight_info,
  4413. .get = msm_pcm_channel_weight_get,
  4414. .put = msm_pcm_channel_weight_put,
  4415. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4416. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia30 Output Channel12",
  4422. .info = msm_pcm_channel_weight_info,
  4423. .get = msm_pcm_channel_weight_get,
  4424. .put = msm_pcm_channel_weight_put,
  4425. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4426. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4427. },
  4428. {
  4429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4430. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4431. .name = "MultiMedia30 Output Channel13",
  4432. .info = msm_pcm_channel_weight_info,
  4433. .get = msm_pcm_channel_weight_get,
  4434. .put = msm_pcm_channel_weight_put,
  4435. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4436. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4437. },
  4438. {
  4439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4441. .name = "MultiMedia30 Output Channel14",
  4442. .info = msm_pcm_channel_weight_info,
  4443. .get = msm_pcm_channel_weight_get,
  4444. .put = msm_pcm_channel_weight_put,
  4445. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4446. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4447. },
  4448. {
  4449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4451. .name = "MultiMedia1 Channel1",
  4452. .info = msm_pcm_channel_input_be_info,
  4453. .get = msm_pcm_channel_input_be_get,
  4454. .put = msm_pcm_channel_input_be_put,
  4455. .private_value = (unsigned long)&(mm1_ch1_enum)
  4456. },
  4457. {
  4458. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4459. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4460. .name = "MultiMedia1 Channel2",
  4461. .info = msm_pcm_channel_input_be_info,
  4462. .get = msm_pcm_channel_input_be_get,
  4463. .put = msm_pcm_channel_input_be_put,
  4464. .private_value = (unsigned long)&(mm1_ch2_enum)
  4465. },
  4466. {
  4467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4468. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4469. .name = "MultiMedia1 Channel3",
  4470. .info = msm_pcm_channel_input_be_info,
  4471. .get = msm_pcm_channel_input_be_get,
  4472. .put = msm_pcm_channel_input_be_put,
  4473. .private_value = (unsigned long)&(mm1_ch3_enum)
  4474. },
  4475. {
  4476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4478. .name = "MultiMedia1 Channel4",
  4479. .info = msm_pcm_channel_input_be_info,
  4480. .get = msm_pcm_channel_input_be_get,
  4481. .put = msm_pcm_channel_input_be_put,
  4482. .private_value = (unsigned long)&(mm1_ch4_enum)
  4483. },
  4484. {
  4485. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4486. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4487. .name = "MultiMedia1 Channel5",
  4488. .info = msm_pcm_channel_input_be_info,
  4489. .get = msm_pcm_channel_input_be_get,
  4490. .put = msm_pcm_channel_input_be_put,
  4491. .private_value = (unsigned long)&(mm1_ch5_enum)
  4492. },
  4493. {
  4494. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4495. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4496. .name = "MultiMedia1 Channel6",
  4497. .info = msm_pcm_channel_input_be_info,
  4498. .get = msm_pcm_channel_input_be_get,
  4499. .put = msm_pcm_channel_input_be_put,
  4500. .private_value = (unsigned long)&(mm1_ch6_enum)
  4501. },
  4502. {
  4503. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4504. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4505. .name = "MultiMedia1 Channel7",
  4506. .info = msm_pcm_channel_input_be_info,
  4507. .get = msm_pcm_channel_input_be_get,
  4508. .put = msm_pcm_channel_input_be_put,
  4509. .private_value = (unsigned long)&(mm1_ch7_enum)
  4510. },
  4511. {
  4512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4514. .name = "MultiMedia1 Channel8",
  4515. .info = msm_pcm_channel_input_be_info,
  4516. .get = msm_pcm_channel_input_be_get,
  4517. .put = msm_pcm_channel_input_be_put,
  4518. .private_value = (unsigned long)&(mm1_ch8_enum)
  4519. },
  4520. {
  4521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4523. .name = "MultiMedia18 Channel1",
  4524. .info = msm_pcm_channel_input_be_info,
  4525. .get = msm_pcm_channel_input_be_get,
  4526. .put = msm_pcm_channel_input_be_put,
  4527. .private_value = (unsigned long)&(mm18_ch1_enum)
  4528. },
  4529. {
  4530. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4531. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4532. .name = "MultiMedia18 Channel2",
  4533. .info = msm_pcm_channel_input_be_info,
  4534. .get = msm_pcm_channel_input_be_get,
  4535. .put = msm_pcm_channel_input_be_put,
  4536. .private_value = (unsigned long)&(mm18_ch2_enum)
  4537. },
  4538. {
  4539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4541. .name = "MultiMedia19 Channel1",
  4542. .info = msm_pcm_channel_input_be_info,
  4543. .get = msm_pcm_channel_input_be_get,
  4544. .put = msm_pcm_channel_input_be_put,
  4545. .private_value = (unsigned long)&(mm19_ch1_enum)
  4546. },
  4547. {
  4548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4549. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4550. .name = "MultiMedia19 Channel2",
  4551. .info = msm_pcm_channel_input_be_info,
  4552. .get = msm_pcm_channel_input_be_get,
  4553. .put = msm_pcm_channel_input_be_put,
  4554. .private_value = (unsigned long)&(mm19_ch2_enum)
  4555. },
  4556. {
  4557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4559. .name = "MultiMedia28 Channel1",
  4560. .info = msm_pcm_channel_input_be_info,
  4561. .get = msm_pcm_channel_input_be_get,
  4562. .put = msm_pcm_channel_input_be_put,
  4563. .private_value = (unsigned long)&(mm28_ch1_enum)
  4564. },
  4565. {
  4566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4568. .name = "MultiMedia28 Channel2",
  4569. .info = msm_pcm_channel_input_be_info,
  4570. .get = msm_pcm_channel_input_be_get,
  4571. .put = msm_pcm_channel_input_be_put,
  4572. .private_value = (unsigned long)&(mm28_ch2_enum)
  4573. },
  4574. {
  4575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4577. .name = "MultiMedia29 Channel1",
  4578. .info = msm_pcm_channel_input_be_info,
  4579. .get = msm_pcm_channel_input_be_get,
  4580. .put = msm_pcm_channel_input_be_put,
  4581. .private_value = (unsigned long)&(mm29_ch1_enum)
  4582. },
  4583. {
  4584. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4586. .name = "MultiMedia29 Channel2",
  4587. .info = msm_pcm_channel_input_be_info,
  4588. .get = msm_pcm_channel_input_be_get,
  4589. .put = msm_pcm_channel_input_be_put,
  4590. .private_value = (unsigned long)&(mm29_ch2_enum)
  4591. },
  4592. {
  4593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4594. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4595. .name = "MultiMedia30 Channel1",
  4596. .info = msm_pcm_channel_input_be_info,
  4597. .get = msm_pcm_channel_input_be_get,
  4598. .put = msm_pcm_channel_input_be_put,
  4599. .private_value = (unsigned long)&(mm30_ch1_enum)
  4600. },
  4601. {
  4602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4604. .name = "MultiMedia30 Channel2",
  4605. .info = msm_pcm_channel_input_be_info,
  4606. .get = msm_pcm_channel_input_be_get,
  4607. .put = msm_pcm_channel_input_be_put,
  4608. .private_value = (unsigned long)&(mm30_ch2_enum)
  4609. },
  4610. {
  4611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4613. .name = "MultiMedia1 Output Channel Map",
  4614. .info = msm_pcm_channel_output_map_info,
  4615. .get = msm_pcm_channel_output_map_get,
  4616. .put = msm_pcm_channel_output_map_put,
  4617. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4618. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4619. },
  4620. {
  4621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4623. .name = "MultiMedia2 Output Channel Map",
  4624. .info = msm_pcm_channel_output_map_info,
  4625. .get = msm_pcm_channel_output_map_get,
  4626. .put = msm_pcm_channel_output_map_put,
  4627. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4628. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia3 Output Channel Map",
  4634. .info = msm_pcm_channel_output_map_info,
  4635. .get = msm_pcm_channel_output_map_get,
  4636. .put = msm_pcm_channel_output_map_put,
  4637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia4 Output Channel Map",
  4644. .info = msm_pcm_channel_output_map_info,
  4645. .get = msm_pcm_channel_output_map_get,
  4646. .put = msm_pcm_channel_output_map_put,
  4647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia5 Output Channel Map",
  4654. .info = msm_pcm_channel_output_map_info,
  4655. .get = msm_pcm_channel_output_map_get,
  4656. .put = msm_pcm_channel_output_map_put,
  4657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia6 Output Channel Map",
  4664. .info = msm_pcm_channel_output_map_info,
  4665. .get = msm_pcm_channel_output_map_get,
  4666. .put = msm_pcm_channel_output_map_put,
  4667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia18 Output Channel Map",
  4674. .info = msm_pcm_channel_output_map_info,
  4675. .get = msm_pcm_channel_output_map_get,
  4676. .put = msm_pcm_channel_output_map_put,
  4677. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4678. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia19 Output Channel Map",
  4684. .info = msm_pcm_channel_output_map_info,
  4685. .get = msm_pcm_channel_output_map_get,
  4686. .put = msm_pcm_channel_output_map_put,
  4687. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4688. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4689. },
  4690. {
  4691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4693. .name = "MultiMedia28 Output Channel Map",
  4694. .info = msm_pcm_channel_output_map_info,
  4695. .get = msm_pcm_channel_output_map_get,
  4696. .put = msm_pcm_channel_output_map_put,
  4697. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4698. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4699. },
  4700. {
  4701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4703. .name = "MultiMedia29 Output Channel Map",
  4704. .info = msm_pcm_channel_output_map_info,
  4705. .get = msm_pcm_channel_output_map_get,
  4706. .put = msm_pcm_channel_output_map_put,
  4707. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4708. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4709. },
  4710. {
  4711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4713. .name = "MultiMedia30 Output Channel Map",
  4714. .info = msm_pcm_channel_output_map_info,
  4715. .get = msm_pcm_channel_output_map_get,
  4716. .put = msm_pcm_channel_output_map_put,
  4717. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4718. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4719. },
  4720. };
  4721. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4722. struct snd_ctl_elem_value *ucontrol)
  4723. {
  4724. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4725. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4726. ucontrol->value.integer.value[0]);
  4727. return 0;
  4728. }
  4729. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4730. struct snd_ctl_elem_value *ucontrol)
  4731. {
  4732. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4733. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4734. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4735. return 0;
  4736. }
  4737. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4738. struct snd_ctl_elem_value *ucontrol)
  4739. {
  4740. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4741. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4742. ucontrol->value.integer.value[0]);
  4743. return 0;
  4744. }
  4745. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4746. struct snd_ctl_elem_value *ucontrol)
  4747. {
  4748. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4749. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4750. __func__, msm_ec_ref_ch_downmixed);
  4751. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4752. return 0;
  4753. }
  4754. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4755. struct snd_ctl_elem_value *ucontrol)
  4756. {
  4757. int i = 0, ret = 0;
  4758. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4759. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4760. kcontrol->private_value)->shift;
  4761. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4762. weights[i] = ucontrol->value.integer.value[i];
  4763. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4764. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4765. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4766. return ret;
  4767. }
  4768. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4769. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4770. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4771. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4772. struct snd_ctl_elem_value *ucontrol)
  4773. {
  4774. switch (msm_ec_ref_bit_format) {
  4775. case SNDRV_PCM_FORMAT_S24_LE:
  4776. ucontrol->value.integer.value[0] = 2;
  4777. break;
  4778. case SNDRV_PCM_FORMAT_S16_LE:
  4779. ucontrol->value.integer.value[0] = 1;
  4780. break;
  4781. default:
  4782. ucontrol->value.integer.value[0] = 0;
  4783. break;
  4784. }
  4785. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4786. __func__, ucontrol->value.integer.value[0]);
  4787. return 0;
  4788. }
  4789. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4790. struct snd_ctl_elem_value *ucontrol)
  4791. {
  4792. u16 bit_width = 0;
  4793. switch (ucontrol->value.integer.value[0]) {
  4794. case 2:
  4795. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4796. break;
  4797. case 1:
  4798. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4799. break;
  4800. default:
  4801. msm_ec_ref_bit_format = 0;
  4802. break;
  4803. }
  4804. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4805. bit_width = 16;
  4806. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4807. bit_width = 24;
  4808. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4809. __func__, msm_ec_ref_bit_format);
  4810. adm_ec_ref_rx_bit_width(bit_width);
  4811. return 0;
  4812. }
  4813. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4814. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4815. struct snd_ctl_elem_value *ucontrol)
  4816. {
  4817. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4818. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4819. __func__, ucontrol->value.integer.value[0]);
  4820. return 0;
  4821. }
  4822. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4823. struct snd_ctl_elem_value *ucontrol)
  4824. {
  4825. switch (ucontrol->value.integer.value[0]) {
  4826. case 0:
  4827. msm_ec_ref_sampling_rate = 0;
  4828. break;
  4829. case 1:
  4830. msm_ec_ref_sampling_rate = 8000;
  4831. break;
  4832. case 2:
  4833. msm_ec_ref_sampling_rate = 16000;
  4834. break;
  4835. case 3:
  4836. msm_ec_ref_sampling_rate = 32000;
  4837. break;
  4838. case 4:
  4839. msm_ec_ref_sampling_rate = 44100;
  4840. break;
  4841. case 5:
  4842. msm_ec_ref_sampling_rate = 48000;
  4843. break;
  4844. case 6:
  4845. msm_ec_ref_sampling_rate = 96000;
  4846. break;
  4847. case 7:
  4848. msm_ec_ref_sampling_rate = 192000;
  4849. break;
  4850. case 8:
  4851. msm_ec_ref_sampling_rate = 384000;
  4852. break;
  4853. default:
  4854. msm_ec_ref_sampling_rate = 48000;
  4855. break;
  4856. }
  4857. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4858. __func__, msm_ec_ref_sampling_rate);
  4859. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4860. return 0;
  4861. }
  4862. static int get_ec_ref_port_id(int value, int *index)
  4863. {
  4864. int port_id;
  4865. switch (value) {
  4866. case 0:
  4867. *index = 0;
  4868. port_id = AFE_PORT_INVALID;
  4869. break;
  4870. case 1:
  4871. *index = 1;
  4872. port_id = SLIMBUS_0_RX;
  4873. break;
  4874. case 2:
  4875. *index = 2;
  4876. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4877. break;
  4878. case 3:
  4879. *index = 3;
  4880. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4881. break;
  4882. case 4:
  4883. *index = 4;
  4884. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4885. break;
  4886. case 5:
  4887. *index = 5;
  4888. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4889. break;
  4890. case 6:
  4891. *index = 6;
  4892. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4893. break;
  4894. case 7:
  4895. *index = 7;
  4896. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4897. break;
  4898. case 9:
  4899. *index = 9;
  4900. port_id = SLIMBUS_5_RX;
  4901. break;
  4902. case 10:
  4903. *index = 10;
  4904. port_id = SLIMBUS_1_TX;
  4905. break;
  4906. case 11:
  4907. *index = 11;
  4908. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4909. break;
  4910. case 12:
  4911. *index = 12;
  4912. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4913. break;
  4914. case 13:
  4915. *index = 13;
  4916. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4917. break;
  4918. case 14:
  4919. *index = 14;
  4920. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4921. break;
  4922. case 15:
  4923. *index = 15;
  4924. port_id = SLIMBUS_6_RX;
  4925. break;
  4926. case 16:
  4927. *index = 16;
  4928. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4929. break;
  4930. case 17:
  4931. *index = 17;
  4932. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4933. break;
  4934. case 18:
  4935. *index = 18;
  4936. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4937. break;
  4938. case 19:
  4939. *index = 19;
  4940. port_id = AFE_PORT_ID_USB_RX;
  4941. break;
  4942. case 20:
  4943. *index = 20;
  4944. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4945. break;
  4946. case 21:
  4947. *index = 21;
  4948. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4949. break;
  4950. case 22:
  4951. *index = 22;
  4952. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4953. break;
  4954. case 23:
  4955. *index = 23;
  4956. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4957. break;
  4958. case 24:
  4959. *index = 24;
  4960. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4961. break;
  4962. case 25:
  4963. *index = 25;
  4964. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4965. break;
  4966. case 26:
  4967. *index = 26;
  4968. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4969. break;
  4970. case 27:
  4971. *index = 27;
  4972. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4973. break;
  4974. case 28:
  4975. *index = 28;
  4976. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4977. break;
  4978. case 29:
  4979. *index = 29;
  4980. port_id = SLIMBUS_7_RX;
  4981. break;
  4982. case 30:
  4983. *index = 30;
  4984. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4985. break;
  4986. case 31:
  4987. *index = 31;
  4988. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4989. break;
  4990. case 32:
  4991. *index = 32;
  4992. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4993. break;
  4994. case 33:
  4995. *index = 33;
  4996. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4997. break;
  4998. case 34:
  4999. *index = 34;
  5000. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5001. break;
  5002. case 35:
  5003. *index = 35;
  5004. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5005. break;
  5006. case 36:
  5007. *index = 36;
  5008. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5009. break;
  5010. case 37:
  5011. *index = 37;
  5012. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5013. break;
  5014. default:
  5015. *index = 0; /* NONE */
  5016. pr_err("%s: Invalid value %d\n", __func__, value);
  5017. port_id = AFE_PORT_INVALID;
  5018. break;
  5019. }
  5020. return port_id;
  5021. }
  5022. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5023. struct snd_ctl_elem_value *ucontrol)
  5024. {
  5025. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5026. mutex_lock(&routing_lock);
  5027. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5028. mutex_unlock(&routing_lock);
  5029. return 0;
  5030. }
  5031. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5032. struct snd_ctl_elem_value *ucontrol)
  5033. {
  5034. int value = ucontrol->value.integer.value[0];
  5035. mutex_lock(&routing_lock);
  5036. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5037. &afe_loopback_tx_port_index);
  5038. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5039. __func__, afe_loopback_tx_port_index);
  5040. mutex_unlock(&routing_lock);
  5041. return 0;
  5042. }
  5043. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5044. "32000", "44100", "48000", "96000", "192000", "384000"};
  5045. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5046. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5047. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5048. ec_ref_bit_format_text),
  5049. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5050. };
  5051. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5052. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5053. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5054. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5055. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5056. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5057. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5058. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5059. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5060. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5061. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5062. "DISPLAY_PORT1",
  5063. };
  5064. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5065. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5066. };
  5067. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5068. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5069. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5070. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5071. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5072. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5073. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5074. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5075. msm_route_ec_ref_params_enum[0],
  5076. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5077. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5078. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5079. msm_ec_ref_chmixer_weights_put),
  5080. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5081. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5082. msm_ec_ref_chmixer_weights_put),
  5083. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5084. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5085. msm_ec_ref_chmixer_weights_put),
  5086. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5087. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5088. msm_ec_ref_chmixer_weights_put),
  5089. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5090. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5091. msm_ec_ref_chmixer_weights_put),
  5092. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5093. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5094. msm_ec_ref_chmixer_weights_put),
  5095. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5096. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5097. };
  5098. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5099. struct snd_ctl_elem_value *ucontrol)
  5100. {
  5101. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5102. mutex_lock(&routing_lock);
  5103. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5104. mutex_unlock(&routing_lock);
  5105. return 0;
  5106. }
  5107. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5108. struct snd_ctl_elem_value *ucontrol)
  5109. {
  5110. int value = ucontrol->value.integer.value[0];
  5111. struct snd_soc_dapm_widget *widget =
  5112. snd_soc_dapm_kcontrol_widget(kcontrol);
  5113. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5114. struct snd_soc_dapm_update *update = NULL;
  5115. mutex_lock(&routing_lock);
  5116. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5117. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5118. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5119. __func__, msm_route_ec_ref_rx);
  5120. mutex_unlock(&routing_lock);
  5121. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5122. msm_route_ec_ref_rx, e, update);
  5123. return 0;
  5124. }
  5125. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5126. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5127. msm_route_ec_ref_rx_enum[0],
  5128. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5129. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5130. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5131. msm_route_ec_ref_rx_enum[0],
  5132. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5133. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5134. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5135. msm_route_ec_ref_rx_enum[0],
  5136. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5137. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5138. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5139. msm_route_ec_ref_rx_enum[0],
  5140. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5141. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5142. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5143. msm_route_ec_ref_rx_enum[0],
  5144. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5145. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5146. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5147. msm_route_ec_ref_rx_enum[0],
  5148. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5149. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5150. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5151. msm_route_ec_ref_rx_enum[0],
  5152. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5153. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5154. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5155. msm_route_ec_ref_rx_enum[0],
  5156. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5157. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5158. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5159. msm_route_ec_ref_rx_enum[0],
  5160. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5161. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5162. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5163. msm_route_ec_ref_rx_enum[0],
  5164. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5174. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5175. msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5177. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5178. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5179. msm_route_ec_ref_rx_enum[0],
  5180. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5181. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5182. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5183. msm_route_ec_ref_rx_enum[0],
  5184. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5185. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5186. struct snd_ctl_elem_value *ucontrol)
  5187. {
  5188. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5189. mutex_lock(&routing_lock);
  5190. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5191. mutex_unlock(&routing_lock);
  5192. return 0;
  5193. }
  5194. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5195. struct snd_ctl_elem_value *ucontrol)
  5196. {
  5197. struct snd_soc_dapm_widget *widget =
  5198. snd_soc_dapm_kcontrol_widget(kcontrol);
  5199. int mux = ucontrol->value.enumerated.item[0];
  5200. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5201. int ret = 1;
  5202. bool state = true;
  5203. uint16_t ext_ec_ref_port_id;
  5204. struct snd_soc_dapm_update *update = NULL;
  5205. if (mux >= e->items) {
  5206. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5207. return -EINVAL;
  5208. }
  5209. mutex_lock(&routing_lock);
  5210. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5211. switch (msm_route_ext_ec_ref) {
  5212. case EXT_EC_REF_PRI_MI2S_TX:
  5213. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5214. break;
  5215. case EXT_EC_REF_SEC_MI2S_TX:
  5216. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5217. break;
  5218. case EXT_EC_REF_TERT_MI2S_TX:
  5219. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5220. break;
  5221. case EXT_EC_REF_QUAT_MI2S_TX:
  5222. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5223. break;
  5224. case EXT_EC_REF_QUIN_MI2S_TX:
  5225. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5226. break;
  5227. case EXT_EC_REF_SLIM_1_TX:
  5228. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5229. break;
  5230. case EXT_EC_REF_PRI_TDM_TX:
  5231. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5232. break;
  5233. case EXT_EC_REF_SEC_TDM_TX:
  5234. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5235. break;
  5236. case EXT_EC_REF_NONE:
  5237. default:
  5238. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5239. state = false;
  5240. break;
  5241. }
  5242. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5243. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5244. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5245. mutex_unlock(&routing_lock);
  5246. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5247. update);
  5248. } else {
  5249. ret = -EINVAL;
  5250. mutex_unlock(&routing_lock);
  5251. }
  5252. return ret;
  5253. }
  5254. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5255. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5256. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5257. "SLIM_1_TX", "PRI_TDM_TX",
  5258. "SEC_TDM_TX"};
  5259. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5260. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5261. };
  5262. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5263. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5264. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5265. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_PRI_I2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_PRI_I2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_PRI_I2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_PRI_I2S_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_PRI_I2S_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_PRI_I2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. };
  5359. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5360. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SEC_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SEC_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_SEC_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_SEC_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_SEC_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_SEC_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. };
  5453. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5454. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. };
  5547. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5548. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. };
  5641. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. };
  5711. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5712. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. };
  5805. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5806. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. };
  5899. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5900. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_MI2S_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_MI2S_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_MI2S_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_MI2S_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_MI2S_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_MI2S_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. };
  5993. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5994. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. };
  6087. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. };
  6181. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6182. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. };
  6271. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6272. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. };
  6357. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6358. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. };
  6363. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6364. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. };
  6457. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6458. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. };
  6551. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6552. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. };
  6617. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6618. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. };
  6683. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6684. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. };
  6773. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. };
  6863. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6864. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_HDMI_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_HDMI_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_HDMI_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_HDMI_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_HDMI_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_HDMI_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_HDMI_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_HDMI_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_HDMI_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_HDMI_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_HDMI_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_HDMI_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_HDMI_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_HDMI_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. };
  6957. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6958. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. };
  7027. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7028. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. };
  7097. /* incall music delivery mixer */
  7098. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. };
  7116. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7117. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. };
  7134. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7135. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. };
  7152. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. };
  7222. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7223. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. };
  7292. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7293. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. };
  7362. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. };
  7432. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. };
  7502. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. };
  7572. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. };
  7642. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. };
  7712. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7713. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. };
  7782. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7783. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. };
  7852. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7853. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. };
  7922. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. };
  7992. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. };
  8062. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_USB_RX,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_USB_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_USB_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_USB_RX,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_USB_RX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_USB_RX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_USB_RX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_USB_RX,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_USB_RX,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_USB_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_USB_RX,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_USB_RX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_USB_RX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_USB_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_USB_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. };
  8132. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8133. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. };
  8226. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. };
  8296. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_INT_FM_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_INT_FM_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_FM_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_INT_FM_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_INT_FM_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_INT_FM_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_INT_FM_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_INT_FM_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_INT_FM_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_FM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_FM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_FM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INT_FM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_FM_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_FM_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_FM_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. };
  8390. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8391. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_AFE_PCM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_AFE_PCM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_AFE_PCM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_AFE_PCM_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_AFE_PCM_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_AFE_PCM_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_AFE_PCM_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_AFE_PCM_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_AFE_PCM_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_AFE_PCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_AFE_PCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_AFE_PCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_AFE_PCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_AFE_PCM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_AFE_PCM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_AFE_PCM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. };
  8484. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8485. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_AUXPCM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_AUXPCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_AUXPCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_AUXPCM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_AUXPCM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_AUXPCM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_AUXPCM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_AUXPCM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_AUXPCM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_AUXPCM_RX,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_AUXPCM_RX,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AUXPCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AUXPCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AUXPCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. };
  8582. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. };
  8680. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8681. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. };
  8750. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8751. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. };
  8820. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8821. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. };
  8890. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8891. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. };
  8960. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8961. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. };
  9034. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. };
  9108. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9109. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. };
  9182. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9183. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. };
  9256. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9257. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. };
  9322. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9323. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. };
  9396. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9397. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. };
  9470. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9471. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. };
  9544. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9545. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. };
  9618. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. };
  9684. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9685. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. };
  9758. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9759. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. };
  9824. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. };
  9898. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9899. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. };
  9972. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9973. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. };
  10046. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. };
  10120. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. };
  10198. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10199. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. };
  10264. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. };
  10342. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10343. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. };
  10420. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10421. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. };
  10498. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. };
  10576. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10577. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. };
  10642. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. };
  10720. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10721. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. };
  10798. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10799. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. };
  10876. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10877. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. };
  10950. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10951. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. };
  11016. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11017. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. };
  11090. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11091. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. };
  11164. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11165. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. };
  11238. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11239. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_PRI_I2S_TX,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_MI2S_TX,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_AUXPCM_TX,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_INT_FM_TX,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_AFE_PCM_TX,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11429. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11430. msm_routing_put_audio_mixer),
  11431. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_USB_TX,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. };
  11512. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11513. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_INT_FM_TX,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_MI2S_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_USB_TX,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. };
  11738. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11739. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_INT_FM_TX,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_MI2S_TX,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_AFE_PCM_TX,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_AUXPCM_TX,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. };
  11960. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11961. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA4, 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_MULTIMEDIA4, 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_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_INT_FM_TX,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_AFE_PCM_TX,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_USB_TX,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. };
  12174. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12175. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_INT_FM_TX,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_MI2S_TX,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_AFE_PCM_TX,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_AUXPCM_TX,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_USB_TX,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. };
  12420. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12421. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_INT_FM_TX,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_AUXPCM_TX,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_USB_TX,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12632. msm_routing_put_audio_mixer),
  12633. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. };
  12642. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12643. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_INT_FM_TX,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_AFE_PCM_TX,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_USB_TX,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. };
  12868. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_INT_FM_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_AFE_PCM_TX,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_USB_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_MI2S_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_AUXPCM_TX,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13040. msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13045. msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13050. msm_routing_get_audio_mixer,
  13051. msm_routing_put_audio_mixer),
  13052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13054. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13055. msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13060. msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13065. msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. };
  13084. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13085. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_INT_FM_TX,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_AFE_PCM_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. };
  13246. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13247. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_INT_FM_TX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_AFE_PCM_TX,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_USB_TX,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_MI2S_TX,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_AUXPCM_TX,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13382. msm_routing_get_audio_mixer,
  13383. msm_routing_put_audio_mixer),
  13384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13386. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13387. msm_routing_get_audio_mixer,
  13388. msm_routing_put_audio_mixer),
  13389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13391. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13392. msm_routing_get_audio_mixer,
  13393. msm_routing_put_audio_mixer),
  13394. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13397. msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13402. msm_routing_get_audio_mixer,
  13403. msm_routing_put_audio_mixer),
  13404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13406. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13407. msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. };
  13426. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13427. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_INT_FM_TX,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_AFE_PCM_TX,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13498. msm_routing_get_audio_mixer,
  13499. msm_routing_put_audio_mixer),
  13500. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13502. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13503. msm_routing_get_audio_mixer,
  13504. msm_routing_put_audio_mixer),
  13505. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13507. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13508. msm_routing_get_audio_mixer,
  13509. msm_routing_put_audio_mixer),
  13510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13512. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13513. msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13518. msm_routing_get_audio_mixer,
  13519. msm_routing_put_audio_mixer),
  13520. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13521. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13522. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13523. msm_routing_get_audio_mixer,
  13524. msm_routing_put_audio_mixer),
  13525. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13527. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13528. msm_routing_put_audio_mixer),
  13529. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13531. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13532. msm_routing_put_audio_mixer),
  13533. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13535. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13536. msm_routing_put_audio_mixer),
  13537. };
  13538. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13539. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_INT_FM_TX,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_AFE_PCM_TX,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13602. msm_routing_put_audio_mixer),
  13603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13614. msm_routing_get_audio_mixer,
  13615. msm_routing_put_audio_mixer),
  13616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13618. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13619. msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13624. msm_routing_get_audio_mixer,
  13625. msm_routing_put_audio_mixer),
  13626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13628. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13629. msm_routing_get_audio_mixer,
  13630. msm_routing_put_audio_mixer),
  13631. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13633. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13634. msm_routing_get_audio_mixer,
  13635. msm_routing_put_audio_mixer),
  13636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13638. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13639. msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. };
  13654. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13655. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_INT_FM_TX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_AFE_PCM_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13718. msm_routing_put_audio_mixer),
  13719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13730. msm_routing_get_audio_mixer,
  13731. msm_routing_put_audio_mixer),
  13732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13734. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13735. msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13740. msm_routing_get_audio_mixer,
  13741. msm_routing_put_audio_mixer),
  13742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13744. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13745. msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13750. msm_routing_get_audio_mixer,
  13751. msm_routing_put_audio_mixer),
  13752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13754. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13755. msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. };
  13770. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13771. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13809. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13942. msm_routing_put_audio_mixer),
  13943. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13945. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. };
  13952. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13953. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_AUXPCM_TX,
  13955. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13956. msm_routing_put_audio_mixer),
  13957. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13959. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13964. msm_routing_put_audio_mixer),
  13965. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13966. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13967. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13968. msm_routing_put_audio_mixer),
  13969. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13972. msm_routing_put_audio_mixer),
  13973. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13975. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13976. msm_routing_put_audio_mixer),
  13977. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13979. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13980. msm_routing_put_audio_mixer),
  13981. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13983. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13984. msm_routing_put_audio_mixer),
  13985. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14064. msm_routing_put_audio_mixer),
  14065. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14067. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14068. msm_routing_put_audio_mixer),
  14069. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14071. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14072. msm_routing_put_audio_mixer),
  14073. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14075. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14080. msm_routing_put_audio_mixer),
  14081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14083. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14084. msm_routing_put_audio_mixer),
  14085. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14087. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14088. msm_routing_put_audio_mixer),
  14089. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14091. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14092. msm_routing_put_audio_mixer),
  14093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14095. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14096. msm_routing_put_audio_mixer),
  14097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14099. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14100. msm_routing_put_audio_mixer),
  14101. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. };
  14118. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14119. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14197. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14198. msm_routing_put_audio_mixer),
  14199. };
  14200. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. };
  14258. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14259. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14261. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14262. msm_routing_put_audio_mixer),
  14263. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14265. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14266. msm_routing_put_audio_mixer),
  14267. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14269. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14270. msm_routing_put_audio_mixer),
  14271. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14273. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14274. msm_routing_put_audio_mixer),
  14275. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_INT_FM_TX,
  14277. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14278. msm_routing_put_audio_mixer),
  14279. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14281. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14282. msm_routing_put_audio_mixer),
  14283. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_AFE_PCM_TX,
  14285. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14286. msm_routing_put_audio_mixer),
  14287. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14289. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14290. msm_routing_put_audio_mixer),
  14291. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14293. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14294. msm_routing_put_audio_mixer),
  14295. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14301. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14314. msm_routing_put_audio_mixer),
  14315. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14317. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14318. msm_routing_put_audio_mixer),
  14319. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14321. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14322. msm_routing_put_audio_mixer),
  14323. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14325. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14330. msm_routing_put_audio_mixer),
  14331. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14334. msm_routing_get_audio_mixer,
  14335. msm_routing_put_audio_mixer),
  14336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14338. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14339. msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14344. msm_routing_get_audio_mixer,
  14345. msm_routing_put_audio_mixer),
  14346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14348. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14349. msm_routing_get_audio_mixer,
  14350. msm_routing_put_audio_mixer),
  14351. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14353. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14354. msm_routing_get_audio_mixer,
  14355. msm_routing_put_audio_mixer),
  14356. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14357. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14358. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14359. msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. };
  14374. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14375. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14377. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14378. msm_routing_put_audio_mixer),
  14379. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14389. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14390. msm_routing_put_audio_mixer),
  14391. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_INT_FM_TX,
  14393. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14394. msm_routing_put_audio_mixer),
  14395. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14397. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14398. msm_routing_put_audio_mixer),
  14399. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_AFE_PCM_TX,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14413. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14414. msm_routing_put_audio_mixer),
  14415. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14417. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14418. msm_routing_put_audio_mixer),
  14419. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14421. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14422. msm_routing_put_audio_mixer),
  14423. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14425. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14430. msm_routing_put_audio_mixer),
  14431. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14433. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14438. msm_routing_put_audio_mixer),
  14439. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14441. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14442. msm_routing_put_audio_mixer),
  14443. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14444. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14445. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14446. msm_routing_put_audio_mixer),
  14447. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14449. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14450. msm_routing_get_audio_mixer,
  14451. msm_routing_put_audio_mixer),
  14452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14454. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14455. msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14460. msm_routing_get_audio_mixer,
  14461. msm_routing_put_audio_mixer),
  14462. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14464. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14465. msm_routing_get_audio_mixer,
  14466. msm_routing_put_audio_mixer),
  14467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14469. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14470. msm_routing_get_audio_mixer,
  14471. msm_routing_put_audio_mixer),
  14472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14474. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14475. msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. };
  14490. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14491. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14497. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14498. msm_routing_put_audio_mixer),
  14499. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14501. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14502. msm_routing_put_audio_mixer),
  14503. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14505. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14506. msm_routing_put_audio_mixer),
  14507. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_INT_FM_TX,
  14509. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14510. msm_routing_put_audio_mixer),
  14511. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14513. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14514. msm_routing_put_audio_mixer),
  14515. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_AFE_PCM_TX,
  14517. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14518. msm_routing_put_audio_mixer),
  14519. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14521. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14557. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14562. msm_routing_get_audio_mixer,
  14563. msm_routing_put_audio_mixer),
  14564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14566. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14567. msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14572. msm_routing_get_audio_mixer,
  14573. msm_routing_put_audio_mixer),
  14574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14576. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14577. msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14582. msm_routing_get_audio_mixer,
  14583. msm_routing_put_audio_mixer),
  14584. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14586. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14587. msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14591. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14592. msm_routing_put_audio_mixer),
  14593. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14595. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14596. msm_routing_put_audio_mixer),
  14597. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14599. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14600. msm_routing_put_audio_mixer),
  14601. };
  14602. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14603. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_PRI_I2S_RX,
  14605. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14606. msm_routing_put_voice_mixer),
  14607. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_PRI_I2S_RX,
  14609. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14610. msm_routing_put_voice_mixer),
  14611. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_PRI_I2S_RX,
  14613. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14614. msm_routing_put_voice_mixer),
  14615. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_PRI_I2S_RX,
  14617. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14618. msm_routing_put_voice_mixer),
  14619. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_PRI_I2S_RX,
  14621. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14622. msm_routing_put_voice_mixer),
  14623. };
  14624. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14625. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_SEC_I2S_RX,
  14627. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14628. msm_routing_put_voice_mixer),
  14629. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_SEC_I2S_RX,
  14631. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14632. msm_routing_put_voice_mixer),
  14633. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_SEC_I2S_RX,
  14635. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14636. msm_routing_put_voice_mixer),
  14637. };
  14638. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14639. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14641. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14642. msm_routing_put_voice_mixer),
  14643. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14645. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14646. msm_routing_put_voice_mixer),
  14647. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14649. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14650. msm_routing_put_voice_mixer),
  14651. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14653. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14654. msm_routing_put_voice_mixer),
  14655. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14657. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14658. msm_routing_put_voice_mixer),
  14659. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14661. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14662. msm_routing_put_voice_mixer),
  14663. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14665. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14666. msm_routing_put_voice_mixer),
  14667. };
  14668. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14669. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14671. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14672. msm_routing_put_voice_mixer),
  14673. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14675. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14676. msm_routing_put_voice_mixer),
  14677. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14679. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14680. msm_routing_put_voice_mixer),
  14681. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14683. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14684. msm_routing_put_voice_mixer),
  14685. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14687. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14688. msm_routing_put_voice_mixer),
  14689. };
  14690. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14691. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14693. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14694. msm_routing_put_voice_mixer),
  14695. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14697. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14698. msm_routing_put_voice_mixer),
  14699. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14701. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14702. msm_routing_put_voice_mixer),
  14703. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14705. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14706. msm_routing_put_voice_mixer),
  14707. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14709. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14710. msm_routing_put_voice_mixer),
  14711. };
  14712. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14713. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_USB_RX,
  14715. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14716. msm_routing_put_voice_mixer),
  14717. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_USB_RX,
  14719. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14720. msm_routing_put_voice_mixer),
  14721. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_USB_RX,
  14723. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14724. msm_routing_put_voice_mixer),
  14725. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_USB_RX,
  14727. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14728. msm_routing_put_voice_mixer),
  14729. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_USB_RX,
  14731. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14732. msm_routing_put_voice_mixer),
  14733. };
  14734. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14735. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14737. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14738. msm_routing_put_voice_mixer),
  14739. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14741. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14742. msm_routing_put_voice_mixer),
  14743. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14745. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14746. msm_routing_put_voice_mixer),
  14747. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14749. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14750. msm_routing_put_voice_mixer),
  14751. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14753. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14754. msm_routing_put_voice_mixer),
  14755. };
  14756. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14757. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14759. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14760. msm_routing_put_voice_mixer),
  14761. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14763. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14764. msm_routing_put_voice_mixer),
  14765. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14767. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14768. msm_routing_put_voice_mixer),
  14769. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14770. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14771. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14772. msm_routing_put_voice_mixer),
  14773. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14775. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14776. msm_routing_put_voice_mixer),
  14777. };
  14778. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14779. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14781. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14782. msm_routing_put_voice_mixer),
  14783. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14785. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14786. msm_routing_put_voice_mixer),
  14787. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14789. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14790. msm_routing_put_voice_mixer),
  14791. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14793. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14794. msm_routing_put_voice_mixer),
  14795. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14797. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14798. msm_routing_put_voice_mixer),
  14799. };
  14800. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14801. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_MI2S_RX,
  14803. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14804. msm_routing_put_voice_mixer),
  14805. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_MI2S_RX,
  14807. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14808. msm_routing_put_voice_mixer),
  14809. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_MI2S_RX,
  14811. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14812. msm_routing_put_voice_mixer),
  14813. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_MI2S_RX,
  14815. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14816. msm_routing_put_voice_mixer),
  14817. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_MI2S_RX,
  14819. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14820. msm_routing_put_voice_mixer),
  14821. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_MI2S_RX,
  14823. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14824. msm_routing_put_voice_mixer),
  14825. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_MI2S_RX,
  14827. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14828. msm_routing_put_voice_mixer),
  14829. };
  14830. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14831. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14833. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14834. msm_routing_put_voice_mixer),
  14835. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14837. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14838. msm_routing_put_voice_mixer),
  14839. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14841. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14842. msm_routing_put_voice_mixer),
  14843. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14845. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14846. msm_routing_put_voice_mixer),
  14847. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14849. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14850. msm_routing_put_voice_mixer),
  14851. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14853. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14854. msm_routing_put_voice_mixer),
  14855. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14857. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14858. msm_routing_put_voice_mixer),
  14859. };
  14860. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14861. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14863. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14864. msm_routing_put_voice_mixer),
  14865. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14867. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14868. msm_routing_put_voice_mixer),
  14869. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14871. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14872. msm_routing_put_voice_mixer),
  14873. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14875. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14876. msm_routing_put_voice_mixer),
  14877. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14879. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14880. msm_routing_put_voice_mixer),
  14881. };
  14882. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14883. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14885. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14886. msm_routing_put_voice_mixer),
  14887. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14889. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14890. msm_routing_put_voice_mixer),
  14891. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14892. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14894. msm_routing_put_voice_mixer),
  14895. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14897. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14898. msm_routing_put_voice_mixer),
  14899. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14901. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14902. msm_routing_put_voice_mixer),
  14903. };
  14904. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14905. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14907. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14908. msm_routing_put_voice_mixer),
  14909. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14911. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14912. msm_routing_put_voice_mixer),
  14913. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14915. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14916. msm_routing_put_voice_mixer),
  14917. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14919. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14920. msm_routing_put_voice_mixer),
  14921. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14923. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14924. msm_routing_put_voice_mixer),
  14925. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14927. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14928. msm_routing_put_voice_mixer),
  14929. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14931. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14932. msm_routing_put_voice_mixer),
  14933. };
  14934. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14935. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14937. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14938. msm_routing_put_voice_mixer),
  14939. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14941. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14942. msm_routing_put_voice_mixer),
  14943. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14945. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14946. msm_routing_put_voice_mixer),
  14947. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14949. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14950. msm_routing_put_voice_mixer),
  14951. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14953. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14954. msm_routing_put_voice_mixer),
  14955. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14957. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14958. msm_routing_put_voice_mixer),
  14959. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14961. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14962. msm_routing_put_voice_mixer),
  14963. };
  14964. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14965. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14967. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14968. msm_routing_put_voice_mixer),
  14969. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14971. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14972. msm_routing_put_voice_stub_mixer),
  14973. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14975. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14976. msm_routing_put_voice_stub_mixer),
  14977. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14979. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14980. msm_routing_put_voice_mixer),
  14981. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14983. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14984. msm_routing_put_voice_mixer),
  14985. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14987. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14988. msm_routing_put_voice_mixer),
  14989. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14991. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14992. msm_routing_put_voice_mixer),
  14993. };
  14994. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  14995. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14997. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14998. msm_routing_put_voice_mixer),
  14999. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15001. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15002. msm_routing_put_voice_mixer),
  15003. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15005. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15006. msm_routing_put_voice_mixer),
  15007. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15009. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15010. msm_routing_put_voice_mixer),
  15011. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15013. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15014. msm_routing_put_voice_mixer),
  15015. };
  15016. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15017. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_AFE_PCM_RX,
  15019. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15020. msm_routing_put_voice_mixer),
  15021. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_AFE_PCM_RX,
  15023. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15024. msm_routing_put_voice_mixer),
  15025. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_AFE_PCM_RX,
  15027. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15028. msm_routing_put_voice_mixer),
  15029. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_AFE_PCM_RX,
  15031. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15032. msm_routing_put_voice_mixer),
  15033. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_AFE_PCM_RX,
  15035. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15036. msm_routing_put_voice_mixer),
  15037. };
  15038. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15039. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_AUXPCM_RX,
  15041. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15042. msm_routing_put_voice_mixer),
  15043. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_AUXPCM_RX,
  15045. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15046. msm_routing_put_voice_mixer),
  15047. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_AUXPCM_RX,
  15049. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15050. msm_routing_put_voice_mixer),
  15051. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_AUXPCM_RX,
  15053. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15054. msm_routing_put_voice_mixer),
  15055. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_AUXPCM_RX,
  15057. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15058. msm_routing_put_voice_mixer),
  15059. };
  15060. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15061. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15063. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15064. msm_routing_put_voice_mixer),
  15065. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15067. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15068. msm_routing_put_voice_mixer),
  15069. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15071. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15072. msm_routing_put_voice_mixer),
  15073. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15075. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15076. msm_routing_put_voice_mixer),
  15077. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15079. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15080. msm_routing_put_voice_mixer),
  15081. };
  15082. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15083. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15086. msm_routing_put_voice_mixer),
  15087. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15089. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15090. msm_routing_put_voice_mixer),
  15091. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15093. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15094. msm_routing_put_voice_mixer),
  15095. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15097. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15098. msm_routing_put_voice_mixer),
  15099. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15101. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15102. msm_routing_put_voice_mixer),
  15103. };
  15104. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15105. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15107. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15108. msm_routing_put_voice_mixer),
  15109. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15111. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15112. msm_routing_put_voice_mixer),
  15113. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15115. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15116. msm_routing_put_voice_mixer),
  15117. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15119. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15120. msm_routing_put_voice_mixer),
  15121. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15123. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15124. msm_routing_put_voice_mixer),
  15125. };
  15126. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15127. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15129. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15130. msm_routing_put_voice_mixer),
  15131. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15133. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15134. msm_routing_put_voice_mixer),
  15135. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15137. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15138. msm_routing_put_voice_mixer),
  15139. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15141. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15142. msm_routing_put_voice_mixer),
  15143. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15145. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15146. msm_routing_put_voice_mixer),
  15147. };
  15148. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15149. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15150. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15151. msm_routing_put_voice_mixer),
  15152. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15153. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15154. msm_routing_put_voice_mixer),
  15155. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15156. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15157. msm_routing_put_voice_mixer),
  15158. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15160. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15161. msm_routing_put_voice_mixer),
  15162. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15164. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15165. msm_routing_put_voice_mixer),
  15166. };
  15167. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15168. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_HDMI_RX,
  15170. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15171. msm_routing_put_voice_mixer),
  15172. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_HDMI_RX,
  15174. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15175. msm_routing_put_voice_mixer),
  15176. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_HDMI_RX,
  15178. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15179. msm_routing_put_voice_mixer),
  15180. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_HDMI_RX,
  15182. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15183. msm_routing_put_voice_mixer),
  15184. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_HDMI_RX,
  15186. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15187. msm_routing_put_voice_mixer),
  15188. };
  15189. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15190. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15192. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15193. msm_routing_put_voice_mixer),
  15194. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15196. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15197. msm_routing_put_voice_mixer),
  15198. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15200. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15201. msm_routing_put_voice_mixer),
  15202. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15203. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15204. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15205. msm_routing_put_voice_mixer),
  15206. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15208. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15209. msm_routing_put_voice_mixer),
  15210. };
  15211. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15212. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15214. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15215. msm_routing_put_voice_mixer),
  15216. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15218. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15219. msm_routing_put_voice_mixer),
  15220. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15222. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15223. msm_routing_put_voice_mixer),
  15224. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15226. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15227. msm_routing_put_voice_mixer),
  15228. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15229. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15230. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15231. msm_routing_put_voice_mixer),
  15232. };
  15233. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15234. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15236. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15237. msm_routing_put_voice_mixer),
  15238. };
  15239. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15240. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15242. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15243. msm_routing_put_voice_mixer),
  15244. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15246. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15247. msm_routing_put_voice_mixer),
  15248. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15251. msm_routing_put_voice_mixer),
  15252. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15254. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15255. msm_routing_put_voice_mixer),
  15256. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15258. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15259. msm_routing_put_voice_mixer),
  15260. };
  15261. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15262. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15264. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15265. msm_routing_put_voice_mixer),
  15266. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15268. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15269. msm_routing_put_voice_mixer),
  15270. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15272. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15273. msm_routing_put_voice_mixer),
  15274. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15276. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15277. msm_routing_put_voice_mixer),
  15278. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15280. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15281. msm_routing_put_voice_mixer),
  15282. };
  15283. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15284. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15287. msm_routing_put_voice_mixer),
  15288. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15290. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15291. msm_routing_put_voice_mixer),
  15292. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15295. msm_routing_put_voice_mixer),
  15296. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15298. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15299. msm_routing_put_voice_mixer),
  15300. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15302. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15303. msm_routing_put_voice_mixer),
  15304. };
  15305. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15306. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15308. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15309. msm_routing_put_voice_mixer),
  15310. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15312. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15313. msm_routing_put_voice_mixer),
  15314. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15316. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15317. msm_routing_put_voice_mixer),
  15318. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15320. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15321. msm_routing_put_voice_mixer),
  15322. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15324. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15325. msm_routing_put_voice_mixer),
  15326. };
  15327. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15328. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15330. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15331. msm_routing_put_voice_mixer),
  15332. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15334. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15335. msm_routing_put_voice_mixer),
  15336. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15338. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15339. msm_routing_put_voice_mixer),
  15340. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15342. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15343. msm_routing_put_voice_mixer),
  15344. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15346. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15347. msm_routing_put_voice_mixer),
  15348. };
  15349. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15350. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15352. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15353. msm_routing_put_voice_mixer),
  15354. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15356. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15357. msm_routing_put_voice_mixer),
  15358. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15360. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15361. msm_routing_put_voice_mixer),
  15362. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15364. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15365. msm_routing_put_voice_mixer),
  15366. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15368. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15369. msm_routing_put_voice_mixer),
  15370. };
  15371. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15372. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15374. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15375. msm_routing_put_voice_mixer),
  15376. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15378. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15379. msm_routing_put_voice_mixer),
  15380. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15382. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15383. msm_routing_put_voice_mixer),
  15384. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15386. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15387. msm_routing_put_voice_mixer),
  15388. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15390. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15391. msm_routing_put_voice_mixer),
  15392. };
  15393. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15394. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15396. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15397. msm_routing_put_voice_mixer),
  15398. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15400. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15401. msm_routing_put_voice_mixer),
  15402. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15404. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15405. msm_routing_put_voice_mixer),
  15406. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15408. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15409. msm_routing_put_voice_mixer),
  15410. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15412. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15413. msm_routing_put_voice_mixer),
  15414. };
  15415. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15416. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15418. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15419. msm_routing_put_voice_mixer),
  15420. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15422. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15423. msm_routing_put_voice_mixer),
  15424. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15426. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15427. msm_routing_put_voice_mixer),
  15428. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15430. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15431. msm_routing_put_voice_mixer),
  15432. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15434. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15435. msm_routing_put_voice_mixer),
  15436. };
  15437. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15438. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15439. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15440. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15441. msm_routing_put_voice_mixer),
  15442. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15443. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15444. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15445. msm_routing_put_voice_mixer),
  15446. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15447. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15448. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15449. msm_routing_put_voice_mixer),
  15450. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15451. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15452. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15453. msm_routing_put_voice_mixer),
  15454. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15455. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15456. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15457. msm_routing_put_voice_mixer),
  15458. };
  15459. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15460. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15462. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15463. msm_routing_put_voice_mixer),
  15464. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15466. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15467. msm_routing_put_voice_stub_mixer),
  15468. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15470. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15471. msm_routing_put_voice_stub_mixer),
  15472. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15474. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15475. msm_routing_put_voice_mixer),
  15476. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15478. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15479. msm_routing_put_voice_mixer),
  15480. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15482. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15483. msm_routing_put_voice_mixer),
  15484. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15486. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15487. msm_routing_put_voice_mixer),
  15488. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15490. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15491. msm_routing_put_voice_mixer),
  15492. };
  15493. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15494. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15496. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15497. msm_routing_put_voice_mixer),
  15498. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15500. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15501. msm_routing_put_voice_stub_mixer),
  15502. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15504. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15505. msm_routing_put_voice_stub_mixer),
  15506. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15508. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15509. msm_routing_put_voice_mixer),
  15510. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15512. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15513. msm_routing_put_voice_mixer),
  15514. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15516. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15517. msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15520. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15521. msm_routing_put_voice_mixer),
  15522. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15524. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15525. msm_routing_put_voice_mixer),
  15526. };
  15527. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15528. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15530. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15531. msm_routing_put_voice_mixer),
  15532. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15534. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15535. msm_routing_put_voice_stub_mixer),
  15536. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15538. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15539. msm_routing_put_voice_stub_mixer),
  15540. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15542. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15543. msm_routing_put_voice_mixer),
  15544. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15546. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15547. msm_routing_put_voice_mixer),
  15548. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15550. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15551. msm_routing_put_voice_mixer),
  15552. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15554. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15555. msm_routing_put_voice_mixer),
  15556. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15558. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15559. msm_routing_put_voice_mixer),
  15560. };
  15561. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15562. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15564. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15565. msm_routing_put_voice_mixer),
  15566. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15568. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15569. msm_routing_put_voice_stub_mixer),
  15570. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15572. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15573. msm_routing_put_voice_stub_mixer),
  15574. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15575. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15576. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15577. msm_routing_put_voice_mixer),
  15578. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15580. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15581. msm_routing_put_voice_mixer),
  15582. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15584. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15585. msm_routing_put_voice_mixer),
  15586. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15588. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15589. msm_routing_put_voice_mixer),
  15590. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15592. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15593. msm_routing_put_voice_mixer),
  15594. };
  15595. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15596. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_EXTPROC_RX,
  15598. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15599. msm_routing_put_voice_mixer),
  15600. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_EXTPROC_RX,
  15602. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15603. msm_routing_put_voice_mixer),
  15604. };
  15605. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15606. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15608. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15609. msm_routing_put_voice_mixer),
  15610. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15612. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. };
  15615. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15616. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15618. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15619. msm_routing_put_voice_mixer),
  15620. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15622. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15623. msm_routing_put_voice_mixer),
  15624. };
  15625. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15626. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_PRI_I2S_TX,
  15628. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15629. msm_routing_put_voice_mixer),
  15630. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_MI2S_TX,
  15632. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15633. msm_routing_put_voice_mixer),
  15634. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15636. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15637. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15639. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15640. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15642. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15643. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15645. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15646. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15648. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15649. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15651. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15652. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15654. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15655. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15657. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15658. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15660. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15661. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15663. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15664. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15666. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15667. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15669. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15670. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15672. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15673. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15674. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15675. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15676. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15678. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15679. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_USB_TX,
  15681. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15682. msm_routing_put_voice_mixer),
  15683. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15685. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15686. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15688. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15691. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15692. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15694. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15697. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15698. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15700. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15703. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15704. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15705. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15706. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15707. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15709. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15710. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15712. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15713. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15715. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15716. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15718. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15719. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15721. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15722. };
  15723. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15724. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_PRI_I2S_TX,
  15726. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15727. msm_routing_put_voice_mixer),
  15728. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_MI2S_TX,
  15730. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15731. msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15734. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15735. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15737. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15738. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15740. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15741. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15743. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15744. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15746. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15747. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15749. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15750. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15752. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15753. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15754. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15755. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15756. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15758. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15759. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15761. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15762. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15764. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15765. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15767. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15768. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15770. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15771. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15773. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15774. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15776. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15777. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15779. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15780. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15782. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15783. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15785. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15786. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15788. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15791. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15792. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15794. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15795. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15796. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15797. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15798. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15800. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15801. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15803. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15804. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15805. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15806. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15807. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15809. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15810. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15812. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15813. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15814. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15815. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15816. };
  15817. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15818. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_PRI_I2S_TX,
  15820. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15821. msm_routing_put_voice_mixer),
  15822. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_MI2S_TX,
  15824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15825. msm_routing_put_voice_mixer),
  15826. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15827. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15828. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15829. msm_routing_put_voice_mixer),
  15830. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15833. msm_routing_put_voice_mixer),
  15834. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_AFE_PCM_TX,
  15836. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_AUXPCM_TX,
  15840. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15841. msm_routing_put_voice_mixer),
  15842. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15848. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15852. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15856. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15860. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15864. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15868. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15872. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15873. msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15880. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15881. msm_routing_put_voice_mixer),
  15882. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15884. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15885. msm_routing_put_voice_mixer),
  15886. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_USB_TX,
  15888. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15889. msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15892. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15895. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15898. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15901. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15904. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15907. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15910. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15913. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15914. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15916. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15917. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15919. msm_routing_put_voice_mixer),
  15920. };
  15921. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15922. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_EXTPROC_TX,
  15924. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15925. msm_routing_put_voice_stub_mixer),
  15926. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15928. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15929. msm_routing_put_voice_stub_mixer),
  15930. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15932. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15933. msm_routing_put_voice_stub_mixer),
  15934. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15935. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15936. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15937. msm_routing_put_voice_stub_mixer),
  15938. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_MI2S_TX,
  15940. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15941. msm_routing_put_voice_stub_mixer),
  15942. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15944. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15945. msm_routing_put_voice_stub_mixer),
  15946. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15947. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15948. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15949. msm_routing_put_voice_stub_mixer),
  15950. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15952. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15953. msm_routing_put_voice_stub_mixer),
  15954. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15956. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15957. msm_routing_put_voice_stub_mixer),
  15958. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_AUXPCM_TX,
  15960. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15961. msm_routing_put_voice_stub_mixer),
  15962. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15964. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15965. msm_routing_put_voice_stub_mixer),
  15966. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15968. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15969. msm_routing_put_voice_stub_mixer),
  15970. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15972. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15973. msm_routing_put_voice_stub_mixer),
  15974. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15976. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15977. msm_routing_put_voice_stub_mixer),
  15978. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15980. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15981. msm_routing_put_voice_stub_mixer),
  15982. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15984. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15985. msm_routing_put_voice_stub_mixer),
  15986. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15988. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15989. msm_routing_put_voice_stub_mixer),
  15990. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_AFE_PCM_TX,
  15992. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15993. msm_routing_put_voice_stub_mixer),
  15994. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15996. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15997. msm_routing_put_voice_stub_mixer),
  15998. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16000. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16001. msm_routing_put_voice_stub_mixer),
  16002. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16004. 1, 0, msm_routing_get_voice_stub_mixer,
  16005. msm_routing_put_voice_stub_mixer),
  16006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16008. 1, 0, msm_routing_get_voice_stub_mixer,
  16009. msm_routing_put_voice_stub_mixer),
  16010. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16012. 1, 0, msm_routing_get_voice_stub_mixer,
  16013. msm_routing_put_voice_stub_mixer),
  16014. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16016. 1, 0, msm_routing_get_voice_stub_mixer,
  16017. msm_routing_put_voice_stub_mixer),
  16018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16020. 1, 0, msm_routing_get_voice_stub_mixer,
  16021. msm_routing_put_voice_stub_mixer),
  16022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16024. 1, 0, msm_routing_get_voice_stub_mixer,
  16025. msm_routing_put_voice_stub_mixer),
  16026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16028. 1, 0, msm_routing_get_voice_stub_mixer,
  16029. msm_routing_put_voice_stub_mixer),
  16030. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16032. 1, 0, msm_routing_get_voice_stub_mixer,
  16033. msm_routing_put_voice_stub_mixer),
  16034. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16035. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16036. 1, 0, msm_routing_get_voice_stub_mixer,
  16037. msm_routing_put_voice_stub_mixer),
  16038. };
  16039. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16040. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_EXTPROC_TX,
  16042. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16043. msm_routing_put_voice_stub_mixer),
  16044. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16046. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16047. msm_routing_put_voice_stub_mixer),
  16048. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16050. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16051. msm_routing_put_voice_stub_mixer),
  16052. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_AUXPCM_TX,
  16054. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16055. msm_routing_put_voice_stub_mixer),
  16056. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16058. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16059. msm_routing_put_voice_stub_mixer),
  16060. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16062. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16063. msm_routing_put_voice_stub_mixer),
  16064. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16066. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16067. msm_routing_put_voice_stub_mixer),
  16068. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16070. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16071. msm_routing_put_voice_stub_mixer),
  16072. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16074. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16075. msm_routing_put_voice_stub_mixer),
  16076. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16078. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16079. msm_routing_put_voice_stub_mixer),
  16080. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16082. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16083. msm_routing_put_voice_stub_mixer),
  16084. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_AFE_PCM_TX,
  16086. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16087. msm_routing_put_voice_stub_mixer),
  16088. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16090. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16091. msm_routing_put_voice_stub_mixer),
  16092. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16094. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16095. msm_routing_put_voice_stub_mixer),
  16096. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16098. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16099. msm_routing_put_voice_stub_mixer),
  16100. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16102. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16103. msm_routing_put_voice_stub_mixer),
  16104. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16106. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16107. msm_routing_put_voice_stub_mixer),
  16108. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16110. 1, 0, msm_routing_get_voice_stub_mixer,
  16111. msm_routing_put_voice_stub_mixer),
  16112. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16114. 1, 0, msm_routing_get_voice_stub_mixer,
  16115. msm_routing_put_voice_stub_mixer),
  16116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16118. 1, 0, msm_routing_get_voice_stub_mixer,
  16119. msm_routing_put_voice_stub_mixer),
  16120. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16122. 1, 0, msm_routing_get_voice_stub_mixer,
  16123. msm_routing_put_voice_stub_mixer),
  16124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16126. 1, 0, msm_routing_get_voice_stub_mixer,
  16127. msm_routing_put_voice_stub_mixer),
  16128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16130. 1, 0, msm_routing_get_voice_stub_mixer,
  16131. msm_routing_put_voice_stub_mixer),
  16132. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16134. 1, 0, msm_routing_get_voice_stub_mixer,
  16135. msm_routing_put_voice_stub_mixer),
  16136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16138. 1, 0, msm_routing_get_voice_stub_mixer,
  16139. msm_routing_put_voice_stub_mixer),
  16140. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16142. 1, 0, msm_routing_get_voice_stub_mixer,
  16143. msm_routing_put_voice_stub_mixer),
  16144. };
  16145. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16146. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_EXTPROC_TX,
  16148. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16149. msm_routing_put_voice_stub_mixer),
  16150. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16152. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16153. msm_routing_put_voice_stub_mixer),
  16154. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16156. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16157. msm_routing_put_voice_stub_mixer),
  16158. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_AUXPCM_TX,
  16160. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16161. msm_routing_put_voice_stub_mixer),
  16162. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16164. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16165. msm_routing_put_voice_stub_mixer),
  16166. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16168. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16169. msm_routing_put_voice_stub_mixer),
  16170. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16172. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16173. msm_routing_put_voice_stub_mixer),
  16174. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16176. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16177. msm_routing_put_voice_stub_mixer),
  16178. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16179. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16180. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16181. msm_routing_put_voice_stub_mixer),
  16182. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16184. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16185. msm_routing_put_voice_stub_mixer),
  16186. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16188. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16189. msm_routing_put_voice_stub_mixer),
  16190. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_AFE_PCM_TX,
  16192. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16193. msm_routing_put_voice_stub_mixer),
  16194. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16196. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16197. msm_routing_put_voice_stub_mixer),
  16198. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16200. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16201. msm_routing_put_voice_stub_mixer),
  16202. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16204. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16205. msm_routing_put_voice_stub_mixer),
  16206. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16208. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16209. msm_routing_put_voice_stub_mixer),
  16210. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16212. 1, 0, msm_routing_get_voice_stub_mixer,
  16213. msm_routing_put_voice_stub_mixer),
  16214. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16216. 1, 0, msm_routing_get_voice_stub_mixer,
  16217. msm_routing_put_voice_stub_mixer),
  16218. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16220. 1, 0, msm_routing_get_voice_stub_mixer,
  16221. msm_routing_put_voice_stub_mixer),
  16222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16224. 1, 0, msm_routing_get_voice_stub_mixer,
  16225. msm_routing_put_voice_stub_mixer),
  16226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16228. 1, 0, msm_routing_get_voice_stub_mixer,
  16229. msm_routing_put_voice_stub_mixer),
  16230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16232. 1, 0, msm_routing_get_voice_stub_mixer,
  16233. msm_routing_put_voice_stub_mixer),
  16234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16236. 1, 0, msm_routing_get_voice_stub_mixer,
  16237. msm_routing_put_voice_stub_mixer),
  16238. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16240. 1, 0, msm_routing_get_voice_stub_mixer,
  16241. msm_routing_put_voice_stub_mixer),
  16242. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16244. 1, 0, msm_routing_get_voice_stub_mixer,
  16245. msm_routing_put_voice_stub_mixer),
  16246. };
  16247. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16248. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_PRI_I2S_TX,
  16250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16258. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16259. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_AFE_PCM_TX,
  16262. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_AUXPCM_TX,
  16266. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16274. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16278. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16282. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16283. msm_routing_put_voice_mixer),
  16284. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16287. msm_routing_put_voice_mixer),
  16288. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_MI2S_TX,
  16290. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16291. msm_routing_put_voice_mixer),
  16292. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16299. msm_routing_put_voice_mixer),
  16300. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16302. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16306. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16307. msm_routing_put_voice_mixer),
  16308. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16309. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16310. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16311. msm_routing_put_voice_mixer),
  16312. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_USB_TX,
  16314. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16315. msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16318. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16319. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16320. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16321. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16322. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16324. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16325. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16327. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16330. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16331. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16333. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16336. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16337. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16338. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16339. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16342. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16343. };
  16344. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16345. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16347. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16348. msm_routing_put_port_mixer),
  16349. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16351. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16352. msm_routing_put_port_mixer),
  16353. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16355. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16356. msm_routing_put_port_mixer),
  16357. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16358. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16359. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16363. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16364. msm_routing_put_port_mixer),
  16365. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16367. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16368. msm_routing_put_port_mixer),
  16369. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16371. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16372. msm_routing_put_port_mixer),
  16373. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16375. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16376. msm_routing_put_port_mixer),
  16377. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16378. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16379. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16383. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16384. msm_routing_put_port_mixer),
  16385. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16387. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16388. msm_routing_put_port_mixer),
  16389. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16391. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16392. msm_routing_put_port_mixer),
  16393. };
  16394. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16395. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16397. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16398. msm_routing_put_port_mixer),
  16399. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16401. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16402. msm_routing_put_port_mixer),
  16403. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16405. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16406. msm_routing_put_port_mixer),
  16407. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16409. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16410. msm_routing_put_port_mixer),
  16411. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16413. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16414. msm_routing_put_port_mixer),
  16415. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16417. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16418. msm_routing_put_port_mixer),
  16419. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16421. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16422. msm_routing_put_port_mixer),
  16423. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16425. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16426. msm_routing_put_port_mixer),
  16427. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16429. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16430. msm_routing_put_port_mixer),
  16431. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16433. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16434. msm_routing_put_port_mixer),
  16435. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16437. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16438. msm_routing_put_port_mixer),
  16439. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16440. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16441. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16442. msm_routing_put_port_mixer),
  16443. };
  16444. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16445. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16446. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16448. msm_routing_put_port_mixer),
  16449. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16450. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16452. msm_routing_put_port_mixer),
  16453. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16455. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16456. msm_routing_put_port_mixer),
  16457. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16459. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16460. msm_routing_put_port_mixer),
  16461. };
  16462. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16466. msm_routing_put_port_mixer),
  16467. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16469. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16470. msm_routing_put_port_mixer),
  16471. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16473. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16474. msm_routing_put_port_mixer),
  16475. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16477. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16478. msm_routing_put_port_mixer),
  16479. };
  16480. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16481. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16483. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16487. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16488. msm_routing_put_port_mixer),
  16489. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16491. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16492. msm_routing_put_port_mixer),
  16493. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16495. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16496. msm_routing_put_port_mixer),
  16497. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16499. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16500. msm_routing_put_port_mixer),
  16501. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16503. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16504. msm_routing_put_port_mixer),
  16505. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16507. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16508. msm_routing_put_port_mixer),
  16509. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16511. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16512. msm_routing_put_port_mixer),
  16513. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16515. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16516. msm_routing_put_port_mixer),
  16517. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16519. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16520. msm_routing_put_port_mixer),
  16521. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16523. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16527. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16528. msm_routing_put_port_mixer),
  16529. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16531. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16532. msm_routing_put_port_mixer),
  16533. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16535. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16536. msm_routing_put_port_mixer),
  16537. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16539. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16540. msm_routing_put_port_mixer),
  16541. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16543. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16547. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16548. msm_routing_put_port_mixer),
  16549. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16551. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16552. msm_routing_put_port_mixer),
  16553. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16555. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16556. msm_routing_put_port_mixer),
  16557. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16559. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16560. msm_routing_put_port_mixer),
  16561. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16563. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16564. msm_routing_put_port_mixer),
  16565. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16567. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16568. msm_routing_put_port_mixer),
  16569. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16571. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16572. msm_routing_put_port_mixer),
  16573. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16574. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16575. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16576. msm_routing_put_port_mixer),
  16577. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16579. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16580. msm_routing_put_port_mixer),
  16581. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16582. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16583. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16584. msm_routing_put_port_mixer),
  16585. };
  16586. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16587. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_AUXPCM_RX,
  16589. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16590. msm_routing_put_port_mixer),
  16591. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16592. MSM_BACKEND_DAI_AUXPCM_RX,
  16593. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16594. msm_routing_put_port_mixer),
  16595. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_AUXPCM_RX,
  16597. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16598. msm_routing_put_port_mixer),
  16599. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_AUXPCM_RX,
  16601. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16602. msm_routing_put_port_mixer),
  16603. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16604. MSM_BACKEND_DAI_AUXPCM_RX,
  16605. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16606. msm_routing_put_port_mixer),
  16607. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_AUXPCM_RX,
  16609. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16610. msm_routing_put_port_mixer),
  16611. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_AUXPCM_RX,
  16613. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16614. msm_routing_put_port_mixer),
  16615. };
  16616. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16617. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16619. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16620. msm_routing_put_port_mixer),
  16621. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16622. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16623. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16624. msm_routing_put_port_mixer),
  16625. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16627. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16628. msm_routing_put_port_mixer),
  16629. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16631. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16632. msm_routing_put_port_mixer),
  16633. };
  16634. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16635. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16637. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16638. msm_routing_put_port_mixer),
  16639. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16641. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16642. msm_routing_put_port_mixer),
  16643. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16644. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16645. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16646. msm_routing_put_port_mixer),
  16647. };
  16648. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16649. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16651. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16652. msm_routing_put_port_mixer),
  16653. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16655. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16656. msm_routing_put_port_mixer),
  16657. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16659. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16660. msm_routing_put_port_mixer),
  16661. };
  16662. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16663. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16664. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16665. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16666. msm_routing_put_port_mixer),
  16667. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16669. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16670. msm_routing_put_port_mixer),
  16671. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16673. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16674. msm_routing_put_port_mixer),
  16675. };
  16676. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16677. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16678. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16679. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16680. msm_routing_put_port_mixer),
  16681. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16683. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16684. msm_routing_put_port_mixer),
  16685. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16687. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. };
  16690. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16691. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16693. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16694. msm_routing_put_port_mixer),
  16695. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16696. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16697. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16701. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16702. msm_routing_put_port_mixer),
  16703. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16704. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16705. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16706. msm_routing_put_port_mixer),
  16707. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16708. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16709. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16710. msm_routing_put_port_mixer),
  16711. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16713. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16714. msm_routing_put_port_mixer),
  16715. };
  16716. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16717. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16719. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16720. msm_routing_put_port_mixer),
  16721. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16723. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16724. msm_routing_put_port_mixer),
  16725. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16726. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16727. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16731. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16732. msm_routing_put_port_mixer),
  16733. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16734. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16735. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16736. msm_routing_put_port_mixer),
  16737. };
  16738. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16739. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16741. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16742. msm_routing_put_port_mixer),
  16743. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16745. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16746. msm_routing_put_port_mixer),
  16747. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16749. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16753. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16754. msm_routing_put_port_mixer),
  16755. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16757. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16758. msm_routing_put_port_mixer),
  16759. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16761. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16762. msm_routing_put_port_mixer),
  16763. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16765. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16766. msm_routing_put_port_mixer),
  16767. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16769. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16770. msm_routing_put_port_mixer),
  16771. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16773. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16774. msm_routing_put_port_mixer),
  16775. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16777. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16781. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16782. msm_routing_put_port_mixer),
  16783. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16785. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16786. msm_routing_put_port_mixer),
  16787. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16789. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. };
  16792. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16793. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16795. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16796. msm_routing_put_port_mixer),
  16797. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16799. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16800. msm_routing_put_port_mixer),
  16801. };
  16802. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16803. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_AFE_PCM_RX,
  16805. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16806. msm_routing_put_port_mixer),
  16807. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_AFE_PCM_RX,
  16809. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. };
  16812. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16813. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_HDMI_RX,
  16815. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16816. msm_routing_put_port_mixer),
  16817. };
  16818. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16819. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16821. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16822. msm_routing_put_port_mixer),
  16823. };
  16824. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16825. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16827. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. };
  16830. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16831. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_SEC_I2S_RX,
  16833. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16834. msm_routing_put_port_mixer),
  16835. };
  16836. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16837. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_MI2S_RX,
  16839. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16840. msm_routing_put_port_mixer),
  16841. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_MI2S_RX,
  16843. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16844. msm_routing_put_port_mixer),
  16845. };
  16846. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16847. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16849. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16853. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16854. msm_routing_put_port_mixer),
  16855. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16857. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16858. msm_routing_put_port_mixer),
  16859. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16861. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16862. msm_routing_put_port_mixer),
  16863. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16865. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16866. msm_routing_put_port_mixer),
  16867. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16869. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16873. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16874. msm_routing_put_port_mixer),
  16875. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16877. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16880. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16881. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16882. msm_routing_put_port_mixer),
  16883. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16885. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16886. msm_routing_put_port_mixer),
  16887. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16888. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16889. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16890. msm_routing_put_port_mixer),
  16891. };
  16892. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16893. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_USB_RX,
  16895. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16896. msm_routing_put_port_mixer),
  16897. };
  16898. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16899. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16901. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16905. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16906. msm_routing_put_port_mixer),
  16907. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16909. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16913. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16917. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16918. msm_routing_put_port_mixer),
  16919. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16920. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16921. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16925. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16926. msm_routing_put_port_mixer),
  16927. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16928. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16929. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16930. msm_routing_put_port_mixer),
  16931. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16932. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16933. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16934. msm_routing_put_port_mixer),
  16935. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16936. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16937. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16938. msm_routing_put_port_mixer),
  16939. };
  16940. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16941. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16943. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16944. msm_routing_put_port_mixer),
  16945. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16947. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16948. msm_routing_put_port_mixer),
  16949. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16951. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16955. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16956. msm_routing_put_port_mixer),
  16957. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16959. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16963. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16964. msm_routing_put_port_mixer),
  16965. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16967. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16968. msm_routing_put_port_mixer),
  16969. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16971. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. };
  16974. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16975. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16976. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16977. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16978. msm_routing_put_port_mixer),
  16979. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16981. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16985. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16986. msm_routing_put_port_mixer),
  16987. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16988. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16989. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16990. msm_routing_put_port_mixer),
  16991. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16993. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16996. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16997. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16998. msm_routing_put_port_mixer),
  16999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17000. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17001. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17002. msm_routing_put_port_mixer),
  17003. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17005. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17006. msm_routing_put_port_mixer),
  17007. };
  17008. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17009. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17011. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17012. msm_routing_get_port_mixer,
  17013. msm_routing_put_port_mixer),
  17014. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17015. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17016. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17017. msm_routing_get_port_mixer,
  17018. msm_routing_put_port_mixer),
  17019. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17020. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17021. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17022. msm_routing_get_port_mixer,
  17023. msm_routing_put_port_mixer),
  17024. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17025. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17026. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17027. msm_routing_get_port_mixer,
  17028. msm_routing_put_port_mixer),
  17029. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17031. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17032. msm_routing_get_port_mixer,
  17033. msm_routing_put_port_mixer),
  17034. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17035. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17036. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17037. msm_routing_get_port_mixer,
  17038. msm_routing_put_port_mixer),
  17039. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17041. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17042. msm_routing_get_port_mixer,
  17043. msm_routing_put_port_mixer),
  17044. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17046. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17047. msm_routing_get_port_mixer,
  17048. msm_routing_put_port_mixer),
  17049. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17050. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17051. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17052. msm_routing_get_port_mixer,
  17053. msm_routing_put_port_mixer),
  17054. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17055. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17056. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17057. msm_routing_get_port_mixer,
  17058. msm_routing_put_port_mixer),
  17059. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17061. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17062. msm_routing_get_port_mixer,
  17063. msm_routing_put_port_mixer),
  17064. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17065. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17066. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17067. msm_routing_get_port_mixer,
  17068. msm_routing_put_port_mixer),
  17069. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17070. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17071. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17072. msm_routing_get_port_mixer,
  17073. msm_routing_put_port_mixer),
  17074. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17075. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17076. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17077. msm_routing_get_port_mixer,
  17078. msm_routing_put_port_mixer),
  17079. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17081. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17082. msm_routing_get_port_mixer,
  17083. msm_routing_put_port_mixer),
  17084. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17085. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17086. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17087. msm_routing_get_port_mixer,
  17088. msm_routing_put_port_mixer),
  17089. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17090. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17091. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17092. msm_routing_get_port_mixer,
  17093. msm_routing_put_port_mixer),
  17094. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17095. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17096. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17097. msm_routing_get_port_mixer,
  17098. msm_routing_put_port_mixer),
  17099. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17100. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17101. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17102. msm_routing_get_port_mixer,
  17103. msm_routing_put_port_mixer),
  17104. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17105. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17106. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17107. msm_routing_get_port_mixer,
  17108. msm_routing_put_port_mixer),
  17109. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17110. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17111. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17112. msm_routing_get_port_mixer,
  17113. msm_routing_put_port_mixer),
  17114. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17115. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17116. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17117. msm_routing_get_port_mixer,
  17118. msm_routing_put_port_mixer),
  17119. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17121. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17122. msm_routing_get_port_mixer,
  17123. msm_routing_put_port_mixer),
  17124. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17125. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17126. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17127. msm_routing_get_port_mixer,
  17128. msm_routing_put_port_mixer),
  17129. };
  17130. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17131. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17132. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17133. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17134. msm_routing_get_port_mixer,
  17135. msm_routing_put_port_mixer),
  17136. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17137. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17139. msm_routing_get_port_mixer,
  17140. msm_routing_put_port_mixer),
  17141. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17142. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17143. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17144. msm_routing_get_port_mixer,
  17145. msm_routing_put_port_mixer),
  17146. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17147. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17148. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17149. msm_routing_get_port_mixer,
  17150. msm_routing_put_port_mixer),
  17151. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17152. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17153. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17154. msm_routing_get_port_mixer,
  17155. msm_routing_put_port_mixer),
  17156. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17157. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17158. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17159. msm_routing_get_port_mixer,
  17160. msm_routing_put_port_mixer),
  17161. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17162. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17163. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17164. msm_routing_get_port_mixer,
  17165. msm_routing_put_port_mixer),
  17166. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17167. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17168. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17169. msm_routing_get_port_mixer,
  17170. msm_routing_put_port_mixer),
  17171. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17172. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17173. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17174. msm_routing_get_port_mixer,
  17175. msm_routing_put_port_mixer),
  17176. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17177. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17178. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17179. msm_routing_get_port_mixer,
  17180. msm_routing_put_port_mixer),
  17181. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17182. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17183. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17184. msm_routing_get_port_mixer,
  17185. msm_routing_put_port_mixer),
  17186. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17187. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17188. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17189. msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17193. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17194. msm_routing_get_port_mixer,
  17195. msm_routing_put_port_mixer),
  17196. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17197. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17198. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17199. msm_routing_get_port_mixer,
  17200. msm_routing_put_port_mixer),
  17201. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17202. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17203. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17204. msm_routing_get_port_mixer,
  17205. msm_routing_put_port_mixer),
  17206. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17207. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17208. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17209. msm_routing_get_port_mixer,
  17210. msm_routing_put_port_mixer),
  17211. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17213. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17214. msm_routing_get_port_mixer,
  17215. msm_routing_put_port_mixer),
  17216. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17217. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17218. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17219. msm_routing_get_port_mixer,
  17220. msm_routing_put_port_mixer),
  17221. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17222. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17223. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17224. msm_routing_get_port_mixer,
  17225. msm_routing_put_port_mixer),
  17226. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17227. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17228. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17229. msm_routing_get_port_mixer,
  17230. msm_routing_put_port_mixer),
  17231. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17232. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17233. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17234. msm_routing_get_port_mixer,
  17235. msm_routing_put_port_mixer),
  17236. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17237. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17238. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17239. msm_routing_get_port_mixer,
  17240. msm_routing_put_port_mixer),
  17241. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17242. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17243. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17244. msm_routing_get_port_mixer,
  17245. msm_routing_put_port_mixer),
  17246. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17247. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17248. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17249. msm_routing_get_port_mixer,
  17250. msm_routing_put_port_mixer),
  17251. };
  17252. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17253. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17254. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17255. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17256. msm_routing_get_port_mixer,
  17257. msm_routing_put_port_mixer),
  17258. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17259. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17260. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17261. msm_routing_get_port_mixer,
  17262. msm_routing_put_port_mixer),
  17263. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17265. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17266. msm_routing_get_port_mixer,
  17267. msm_routing_put_port_mixer),
  17268. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17269. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17270. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17271. msm_routing_get_port_mixer,
  17272. msm_routing_put_port_mixer),
  17273. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17274. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17275. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17276. msm_routing_get_port_mixer,
  17277. msm_routing_put_port_mixer),
  17278. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17279. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17280. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17281. msm_routing_get_port_mixer,
  17282. msm_routing_put_port_mixer),
  17283. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17284. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17285. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17286. msm_routing_get_port_mixer,
  17287. msm_routing_put_port_mixer),
  17288. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17289. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17290. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17291. msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17295. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17296. msm_routing_get_port_mixer,
  17297. msm_routing_put_port_mixer),
  17298. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17299. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17300. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17301. msm_routing_get_port_mixer,
  17302. msm_routing_put_port_mixer),
  17303. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17305. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17306. msm_routing_get_port_mixer,
  17307. msm_routing_put_port_mixer),
  17308. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17309. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17310. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17311. msm_routing_get_port_mixer,
  17312. msm_routing_put_port_mixer),
  17313. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17315. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17316. msm_routing_get_port_mixer,
  17317. msm_routing_put_port_mixer),
  17318. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17320. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17321. msm_routing_get_port_mixer,
  17322. msm_routing_put_port_mixer),
  17323. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17324. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17325. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17326. msm_routing_get_port_mixer,
  17327. msm_routing_put_port_mixer),
  17328. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17329. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17330. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17331. msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17335. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17336. msm_routing_get_port_mixer,
  17337. msm_routing_put_port_mixer),
  17338. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17339. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17340. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17341. msm_routing_get_port_mixer,
  17342. msm_routing_put_port_mixer),
  17343. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17344. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17345. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17346. msm_routing_get_port_mixer,
  17347. msm_routing_put_port_mixer),
  17348. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17349. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17350. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17351. msm_routing_get_port_mixer,
  17352. msm_routing_put_port_mixer),
  17353. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17355. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17356. msm_routing_get_port_mixer,
  17357. msm_routing_put_port_mixer),
  17358. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17359. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17360. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17361. msm_routing_get_port_mixer,
  17362. msm_routing_put_port_mixer),
  17363. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17364. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17365. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17366. msm_routing_get_port_mixer,
  17367. msm_routing_put_port_mixer),
  17368. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17369. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17370. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17371. msm_routing_get_port_mixer,
  17372. msm_routing_put_port_mixer),
  17373. };
  17374. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17375. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17376. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17377. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17378. msm_routing_get_port_mixer,
  17379. msm_routing_put_port_mixer),
  17380. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17381. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17382. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17383. msm_routing_get_port_mixer,
  17384. msm_routing_put_port_mixer),
  17385. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17387. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17388. msm_routing_get_port_mixer,
  17389. msm_routing_put_port_mixer),
  17390. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17391. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17392. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17393. msm_routing_get_port_mixer,
  17394. msm_routing_put_port_mixer),
  17395. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17396. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17397. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17398. msm_routing_get_port_mixer,
  17399. msm_routing_put_port_mixer),
  17400. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17401. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17402. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17403. msm_routing_get_port_mixer,
  17404. msm_routing_put_port_mixer),
  17405. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17407. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17408. msm_routing_get_port_mixer,
  17409. msm_routing_put_port_mixer),
  17410. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17411. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17412. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17413. msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17417. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17418. msm_routing_get_port_mixer,
  17419. msm_routing_put_port_mixer),
  17420. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17422. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17423. msm_routing_get_port_mixer,
  17424. msm_routing_put_port_mixer),
  17425. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17426. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17427. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17428. msm_routing_get_port_mixer,
  17429. msm_routing_put_port_mixer),
  17430. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17431. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17432. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17433. msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17437. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17438. msm_routing_get_port_mixer,
  17439. msm_routing_put_port_mixer),
  17440. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17442. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17443. msm_routing_get_port_mixer,
  17444. msm_routing_put_port_mixer),
  17445. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17446. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17447. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17448. msm_routing_get_port_mixer,
  17449. msm_routing_put_port_mixer),
  17450. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17451. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17452. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17453. msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17456. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17457. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17458. msm_routing_get_port_mixer,
  17459. msm_routing_put_port_mixer),
  17460. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17461. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17462. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17463. msm_routing_get_port_mixer,
  17464. msm_routing_put_port_mixer),
  17465. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17466. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17467. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17468. msm_routing_get_port_mixer,
  17469. msm_routing_put_port_mixer),
  17470. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17471. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17472. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17473. msm_routing_get_port_mixer,
  17474. msm_routing_put_port_mixer),
  17475. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17477. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17478. msm_routing_get_port_mixer,
  17479. msm_routing_put_port_mixer),
  17480. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17481. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17482. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17483. msm_routing_get_port_mixer,
  17484. msm_routing_put_port_mixer),
  17485. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17486. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17487. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17488. msm_routing_get_port_mixer,
  17489. msm_routing_put_port_mixer),
  17490. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17492. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17493. msm_routing_get_port_mixer,
  17494. msm_routing_put_port_mixer),
  17495. };
  17496. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17497. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17499. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17500. msm_routing_get_port_mixer,
  17501. msm_routing_put_port_mixer),
  17502. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17504. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17505. msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17509. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17510. msm_routing_get_port_mixer,
  17511. msm_routing_put_port_mixer),
  17512. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17513. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17514. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17515. msm_routing_get_port_mixer,
  17516. msm_routing_put_port_mixer),
  17517. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17519. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17520. msm_routing_get_port_mixer,
  17521. msm_routing_put_port_mixer),
  17522. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17524. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17525. msm_routing_get_port_mixer,
  17526. msm_routing_put_port_mixer),
  17527. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17528. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17529. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17530. msm_routing_get_port_mixer,
  17531. msm_routing_put_port_mixer),
  17532. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17533. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17534. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17535. msm_routing_get_port_mixer,
  17536. msm_routing_put_port_mixer),
  17537. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17539. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17540. msm_routing_get_port_mixer,
  17541. msm_routing_put_port_mixer),
  17542. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17544. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17545. msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17549. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17550. msm_routing_get_port_mixer,
  17551. msm_routing_put_port_mixer),
  17552. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17553. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17554. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17555. msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17559. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17560. msm_routing_get_port_mixer,
  17561. msm_routing_put_port_mixer),
  17562. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17563. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17564. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17565. msm_routing_get_port_mixer,
  17566. msm_routing_put_port_mixer),
  17567. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17568. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17569. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17570. msm_routing_get_port_mixer,
  17571. msm_routing_put_port_mixer),
  17572. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17573. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17574. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17575. msm_routing_get_port_mixer,
  17576. msm_routing_put_port_mixer),
  17577. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17578. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17579. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17580. msm_routing_get_port_mixer,
  17581. msm_routing_put_port_mixer),
  17582. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17583. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17584. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17585. msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17589. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17590. msm_routing_get_port_mixer,
  17591. msm_routing_put_port_mixer),
  17592. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17593. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17594. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17595. msm_routing_get_port_mixer,
  17596. msm_routing_put_port_mixer),
  17597. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17598. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17599. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17600. msm_routing_get_port_mixer,
  17601. msm_routing_put_port_mixer),
  17602. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17604. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17605. msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17609. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17610. msm_routing_get_port_mixer,
  17611. msm_routing_put_port_mixer),
  17612. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17614. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17615. msm_routing_get_port_mixer,
  17616. msm_routing_put_port_mixer),
  17617. };
  17618. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17619. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17620. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17621. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17622. msm_routing_get_port_mixer,
  17623. msm_routing_put_port_mixer),
  17624. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17625. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17626. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17627. msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17631. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17632. msm_routing_get_port_mixer,
  17633. msm_routing_put_port_mixer),
  17634. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17635. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17636. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17637. msm_routing_get_port_mixer,
  17638. msm_routing_put_port_mixer),
  17639. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17640. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17641. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17642. msm_routing_get_port_mixer,
  17643. msm_routing_put_port_mixer),
  17644. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17646. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17647. msm_routing_get_port_mixer,
  17648. msm_routing_put_port_mixer),
  17649. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17651. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17652. msm_routing_get_port_mixer,
  17653. msm_routing_put_port_mixer),
  17654. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17656. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17657. msm_routing_get_port_mixer,
  17658. msm_routing_put_port_mixer),
  17659. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17660. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17661. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17662. msm_routing_get_port_mixer,
  17663. msm_routing_put_port_mixer),
  17664. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17665. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17666. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17667. msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17670. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17671. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17672. msm_routing_get_port_mixer,
  17673. msm_routing_put_port_mixer),
  17674. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17675. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17676. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17677. msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17681. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17682. msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17686. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17687. msm_routing_get_port_mixer,
  17688. msm_routing_put_port_mixer),
  17689. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17691. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17692. msm_routing_get_port_mixer,
  17693. msm_routing_put_port_mixer),
  17694. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17696. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17697. msm_routing_get_port_mixer,
  17698. msm_routing_put_port_mixer),
  17699. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17700. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17701. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17702. msm_routing_get_port_mixer,
  17703. msm_routing_put_port_mixer),
  17704. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17705. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17706. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17707. msm_routing_get_port_mixer,
  17708. msm_routing_put_port_mixer),
  17709. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17710. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17711. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17712. msm_routing_get_port_mixer,
  17713. msm_routing_put_port_mixer),
  17714. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17715. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17716. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17717. msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17721. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17722. msm_routing_get_port_mixer,
  17723. msm_routing_put_port_mixer),
  17724. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17725. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17726. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17727. msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17731. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17732. msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17735. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17736. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17737. msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. };
  17740. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17742. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17744. msm_routing_get_port_mixer,
  17745. msm_routing_put_port_mixer),
  17746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17747. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17749. msm_routing_get_port_mixer,
  17750. msm_routing_put_port_mixer),
  17751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17754. msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17759. msm_routing_get_port_mixer,
  17760. msm_routing_put_port_mixer),
  17761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17762. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17764. msm_routing_get_port_mixer,
  17765. msm_routing_put_port_mixer),
  17766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17767. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17769. msm_routing_get_port_mixer,
  17770. msm_routing_put_port_mixer),
  17771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17774. msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17777. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17779. msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17783. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17784. msm_routing_get_port_mixer,
  17785. msm_routing_put_port_mixer),
  17786. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17787. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17788. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17789. msm_routing_get_port_mixer,
  17790. msm_routing_put_port_mixer),
  17791. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17792. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17793. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17794. msm_routing_get_port_mixer,
  17795. msm_routing_put_port_mixer),
  17796. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17798. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17799. msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17804. msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17807. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17809. msm_routing_get_port_mixer,
  17810. msm_routing_put_port_mixer),
  17811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17812. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17814. msm_routing_get_port_mixer,
  17815. msm_routing_put_port_mixer),
  17816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17817. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17819. msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17822. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17824. msm_routing_get_port_mixer,
  17825. msm_routing_put_port_mixer),
  17826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17827. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17829. msm_routing_get_port_mixer,
  17830. msm_routing_put_port_mixer),
  17831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17834. msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17839. msm_routing_get_port_mixer,
  17840. msm_routing_put_port_mixer),
  17841. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17842. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17843. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17844. msm_routing_get_port_mixer,
  17845. msm_routing_put_port_mixer),
  17846. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17847. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17848. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17849. msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17853. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17854. msm_routing_get_port_mixer,
  17855. msm_routing_put_port_mixer),
  17856. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17858. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17859. msm_routing_get_port_mixer,
  17860. msm_routing_put_port_mixer),
  17861. };
  17862. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17864. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17865. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17866. msm_routing_get_port_mixer,
  17867. msm_routing_put_port_mixer),
  17868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17869. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17871. msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17874. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17875. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17876. msm_routing_get_port_mixer,
  17877. msm_routing_put_port_mixer),
  17878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17879. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17881. msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17884. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17886. msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17890. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17891. msm_routing_get_port_mixer,
  17892. msm_routing_put_port_mixer),
  17893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17896. msm_routing_get_port_mixer,
  17897. msm_routing_put_port_mixer),
  17898. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17899. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17901. msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17905. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17906. msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17910. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17911. msm_routing_get_port_mixer,
  17912. msm_routing_put_port_mixer),
  17913. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17914. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17915. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17916. msm_routing_get_port_mixer,
  17917. msm_routing_put_port_mixer),
  17918. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17920. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17921. msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17924. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17925. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17926. msm_routing_get_port_mixer,
  17927. msm_routing_put_port_mixer),
  17928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17929. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17930. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17931. msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17935. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17936. msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17940. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17941. msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17944. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17945. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17946. msm_routing_get_port_mixer,
  17947. msm_routing_put_port_mixer),
  17948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17949. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17950. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17951. msm_routing_get_port_mixer,
  17952. msm_routing_put_port_mixer),
  17953. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17954. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17955. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17956. msm_routing_get_port_mixer,
  17957. msm_routing_put_port_mixer),
  17958. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17959. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17960. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17961. msm_routing_get_port_mixer,
  17962. msm_routing_put_port_mixer),
  17963. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17964. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17965. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17966. msm_routing_get_port_mixer,
  17967. msm_routing_put_port_mixer),
  17968. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17969. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17970. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17971. msm_routing_get_port_mixer,
  17972. msm_routing_put_port_mixer),
  17973. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17975. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17976. msm_routing_get_port_mixer,
  17977. msm_routing_put_port_mixer),
  17978. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17979. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17980. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17981. msm_routing_get_port_mixer,
  17982. msm_routing_put_port_mixer),
  17983. };
  17984. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17985. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  17986. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  17987. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  17988. msm_routing_get_port_mixer,
  17989. msm_routing_put_port_mixer),
  17990. };
  17991. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  17992. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17993. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17994. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17995. msm_routing_get_port_mixer,
  17996. msm_routing_put_port_mixer),
  17997. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17998. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17999. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18000. msm_routing_get_port_mixer,
  18001. msm_routing_put_port_mixer),
  18002. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18003. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18004. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18005. msm_routing_get_port_mixer,
  18006. msm_routing_put_port_mixer),
  18007. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18008. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18009. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18010. msm_routing_get_port_mixer,
  18011. msm_routing_put_port_mixer),
  18012. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18013. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18014. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18015. msm_routing_get_port_mixer,
  18016. msm_routing_put_port_mixer),
  18017. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18018. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18019. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18020. msm_routing_get_port_mixer,
  18021. msm_routing_put_port_mixer),
  18022. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18023. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18024. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18025. msm_routing_get_port_mixer,
  18026. msm_routing_put_port_mixer),
  18027. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18028. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18029. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18030. msm_routing_get_port_mixer,
  18031. msm_routing_put_port_mixer),
  18032. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18033. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18034. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18035. msm_routing_get_port_mixer,
  18036. msm_routing_put_port_mixer),
  18037. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18038. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18039. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18040. msm_routing_get_port_mixer,
  18041. msm_routing_put_port_mixer),
  18042. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18043. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18044. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18045. msm_routing_get_port_mixer,
  18046. msm_routing_put_port_mixer),
  18047. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18048. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18049. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18050. msm_routing_get_port_mixer,
  18051. msm_routing_put_port_mixer),
  18052. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18053. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18054. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18055. msm_routing_get_port_mixer,
  18056. msm_routing_put_port_mixer),
  18057. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18058. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18059. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18060. msm_routing_get_port_mixer,
  18061. msm_routing_put_port_mixer),
  18062. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18063. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18064. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18065. msm_routing_get_port_mixer,
  18066. msm_routing_put_port_mixer),
  18067. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18068. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18069. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18070. msm_routing_get_port_mixer,
  18071. msm_routing_put_port_mixer),
  18072. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18073. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18074. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18075. msm_routing_get_port_mixer,
  18076. msm_routing_put_port_mixer),
  18077. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18078. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18079. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18080. msm_routing_get_port_mixer,
  18081. msm_routing_put_port_mixer),
  18082. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18083. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18084. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18085. msm_routing_get_port_mixer,
  18086. msm_routing_put_port_mixer),
  18087. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18088. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18089. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18090. msm_routing_get_port_mixer,
  18091. msm_routing_put_port_mixer),
  18092. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18094. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18095. msm_routing_get_port_mixer,
  18096. msm_routing_put_port_mixer),
  18097. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18098. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18099. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18100. msm_routing_get_port_mixer,
  18101. msm_routing_put_port_mixer),
  18102. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18103. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18104. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18105. msm_routing_get_port_mixer,
  18106. msm_routing_put_port_mixer),
  18107. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18108. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18109. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18110. msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. };
  18113. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18114. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18115. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18116. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18117. msm_routing_get_port_mixer,
  18118. msm_routing_put_port_mixer),
  18119. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18120. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18121. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18122. msm_routing_get_port_mixer,
  18123. msm_routing_put_port_mixer),
  18124. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18125. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18126. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18127. msm_routing_get_port_mixer,
  18128. msm_routing_put_port_mixer),
  18129. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18130. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18131. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18132. msm_routing_get_port_mixer,
  18133. msm_routing_put_port_mixer),
  18134. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18135. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18136. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18137. msm_routing_get_port_mixer,
  18138. msm_routing_put_port_mixer),
  18139. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18140. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18141. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18142. msm_routing_get_port_mixer,
  18143. msm_routing_put_port_mixer),
  18144. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18145. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18146. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18147. msm_routing_get_port_mixer,
  18148. msm_routing_put_port_mixer),
  18149. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18150. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18151. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18152. msm_routing_get_port_mixer,
  18153. msm_routing_put_port_mixer),
  18154. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18155. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18156. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18157. msm_routing_get_port_mixer,
  18158. msm_routing_put_port_mixer),
  18159. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18160. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18161. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18162. msm_routing_get_port_mixer,
  18163. msm_routing_put_port_mixer),
  18164. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18165. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18166. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18167. msm_routing_get_port_mixer,
  18168. msm_routing_put_port_mixer),
  18169. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18170. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18171. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18172. msm_routing_get_port_mixer,
  18173. msm_routing_put_port_mixer),
  18174. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18175. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18176. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18177. msm_routing_get_port_mixer,
  18178. msm_routing_put_port_mixer),
  18179. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18180. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18181. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18182. msm_routing_get_port_mixer,
  18183. msm_routing_put_port_mixer),
  18184. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18185. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18186. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18187. msm_routing_get_port_mixer,
  18188. msm_routing_put_port_mixer),
  18189. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18190. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18191. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18192. msm_routing_get_port_mixer,
  18193. msm_routing_put_port_mixer),
  18194. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18195. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18196. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18197. msm_routing_get_port_mixer,
  18198. msm_routing_put_port_mixer),
  18199. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18200. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18201. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18202. msm_routing_get_port_mixer,
  18203. msm_routing_put_port_mixer),
  18204. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18205. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18206. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18207. msm_routing_get_port_mixer,
  18208. msm_routing_put_port_mixer),
  18209. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18210. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18211. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18212. msm_routing_get_port_mixer,
  18213. msm_routing_put_port_mixer),
  18214. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18215. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18216. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18217. msm_routing_get_port_mixer,
  18218. msm_routing_put_port_mixer),
  18219. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18220. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18221. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18222. msm_routing_get_port_mixer,
  18223. msm_routing_put_port_mixer),
  18224. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18225. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18226. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18227. msm_routing_get_port_mixer,
  18228. msm_routing_put_port_mixer),
  18229. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18230. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18231. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18232. msm_routing_get_port_mixer,
  18233. msm_routing_put_port_mixer),
  18234. };
  18235. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18236. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18237. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18238. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18239. msm_routing_get_port_mixer,
  18240. msm_routing_put_port_mixer),
  18241. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18242. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18243. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18244. msm_routing_get_port_mixer,
  18245. msm_routing_put_port_mixer),
  18246. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18247. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18248. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18249. msm_routing_get_port_mixer,
  18250. msm_routing_put_port_mixer),
  18251. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18252. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18253. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18254. msm_routing_get_port_mixer,
  18255. msm_routing_put_port_mixer),
  18256. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18257. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18258. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18259. msm_routing_get_port_mixer,
  18260. msm_routing_put_port_mixer),
  18261. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18262. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18263. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18264. msm_routing_get_port_mixer,
  18265. msm_routing_put_port_mixer),
  18266. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18267. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18268. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18269. msm_routing_get_port_mixer,
  18270. msm_routing_put_port_mixer),
  18271. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18272. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18273. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18274. msm_routing_get_port_mixer,
  18275. msm_routing_put_port_mixer),
  18276. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18277. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18278. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18279. msm_routing_get_port_mixer,
  18280. msm_routing_put_port_mixer),
  18281. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18282. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18283. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18284. msm_routing_get_port_mixer,
  18285. msm_routing_put_port_mixer),
  18286. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18287. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18288. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18289. msm_routing_get_port_mixer,
  18290. msm_routing_put_port_mixer),
  18291. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18292. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18293. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18294. msm_routing_get_port_mixer,
  18295. msm_routing_put_port_mixer),
  18296. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18297. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18298. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18299. msm_routing_get_port_mixer,
  18300. msm_routing_put_port_mixer),
  18301. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18302. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18303. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18304. msm_routing_get_port_mixer,
  18305. msm_routing_put_port_mixer),
  18306. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18307. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18308. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18309. msm_routing_get_port_mixer,
  18310. msm_routing_put_port_mixer),
  18311. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18312. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18313. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18314. msm_routing_get_port_mixer,
  18315. msm_routing_put_port_mixer),
  18316. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18317. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18318. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18319. msm_routing_get_port_mixer,
  18320. msm_routing_put_port_mixer),
  18321. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18322. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18323. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18324. msm_routing_get_port_mixer,
  18325. msm_routing_put_port_mixer),
  18326. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18327. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18328. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18329. msm_routing_get_port_mixer,
  18330. msm_routing_put_port_mixer),
  18331. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18332. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18333. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18334. msm_routing_get_port_mixer,
  18335. msm_routing_put_port_mixer),
  18336. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18337. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18338. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18339. msm_routing_get_port_mixer,
  18340. msm_routing_put_port_mixer),
  18341. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18342. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18343. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18344. msm_routing_get_port_mixer,
  18345. msm_routing_put_port_mixer),
  18346. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18347. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18348. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18349. msm_routing_get_port_mixer,
  18350. msm_routing_put_port_mixer),
  18351. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18352. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18353. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18354. msm_routing_get_port_mixer,
  18355. msm_routing_put_port_mixer),
  18356. };
  18357. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18358. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18359. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18360. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18361. msm_routing_get_port_mixer,
  18362. msm_routing_put_port_mixer),
  18363. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18364. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18365. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18366. msm_routing_get_port_mixer,
  18367. msm_routing_put_port_mixer),
  18368. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18369. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18370. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18371. msm_routing_get_port_mixer,
  18372. msm_routing_put_port_mixer),
  18373. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18374. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18375. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18376. msm_routing_get_port_mixer,
  18377. msm_routing_put_port_mixer),
  18378. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18379. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18380. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18381. msm_routing_get_port_mixer,
  18382. msm_routing_put_port_mixer),
  18383. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18384. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18385. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18386. msm_routing_get_port_mixer,
  18387. msm_routing_put_port_mixer),
  18388. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18389. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18390. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18391. msm_routing_get_port_mixer,
  18392. msm_routing_put_port_mixer),
  18393. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18395. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18396. msm_routing_get_port_mixer,
  18397. msm_routing_put_port_mixer),
  18398. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18399. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18400. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18401. msm_routing_get_port_mixer,
  18402. msm_routing_put_port_mixer),
  18403. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18404. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18405. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18406. msm_routing_get_port_mixer,
  18407. msm_routing_put_port_mixer),
  18408. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18409. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18410. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18411. msm_routing_get_port_mixer,
  18412. msm_routing_put_port_mixer),
  18413. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18414. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18415. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18416. msm_routing_get_port_mixer,
  18417. msm_routing_put_port_mixer),
  18418. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18419. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18420. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18421. msm_routing_get_port_mixer,
  18422. msm_routing_put_port_mixer),
  18423. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18424. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18425. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18426. msm_routing_get_port_mixer,
  18427. msm_routing_put_port_mixer),
  18428. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18429. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18430. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18431. msm_routing_get_port_mixer,
  18432. msm_routing_put_port_mixer),
  18433. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18434. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18435. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18436. msm_routing_get_port_mixer,
  18437. msm_routing_put_port_mixer),
  18438. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18439. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18440. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18441. msm_routing_get_port_mixer,
  18442. msm_routing_put_port_mixer),
  18443. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18444. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18445. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18446. msm_routing_get_port_mixer,
  18447. msm_routing_put_port_mixer),
  18448. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18449. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18450. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18451. msm_routing_get_port_mixer,
  18452. msm_routing_put_port_mixer),
  18453. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18454. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18455. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18456. msm_routing_get_port_mixer,
  18457. msm_routing_put_port_mixer),
  18458. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18459. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18460. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18461. msm_routing_get_port_mixer,
  18462. msm_routing_put_port_mixer),
  18463. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18464. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18465. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18466. msm_routing_get_port_mixer,
  18467. msm_routing_put_port_mixer),
  18468. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18469. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18470. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18471. msm_routing_get_port_mixer,
  18472. msm_routing_put_port_mixer),
  18473. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18474. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18475. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18476. msm_routing_get_port_mixer,
  18477. msm_routing_put_port_mixer),
  18478. };
  18479. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18480. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18481. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18482. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18483. msm_routing_get_port_mixer,
  18484. msm_routing_put_port_mixer),
  18485. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18487. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18488. msm_routing_get_port_mixer,
  18489. msm_routing_put_port_mixer),
  18490. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18491. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18492. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18493. msm_routing_get_port_mixer,
  18494. msm_routing_put_port_mixer),
  18495. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18496. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18497. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18498. msm_routing_get_port_mixer,
  18499. msm_routing_put_port_mixer),
  18500. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18501. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18502. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18503. msm_routing_get_port_mixer,
  18504. msm_routing_put_port_mixer),
  18505. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18506. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18507. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18508. msm_routing_get_port_mixer,
  18509. msm_routing_put_port_mixer),
  18510. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18512. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18513. msm_routing_get_port_mixer,
  18514. msm_routing_put_port_mixer),
  18515. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18516. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18517. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18518. msm_routing_get_port_mixer,
  18519. msm_routing_put_port_mixer),
  18520. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18521. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18522. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18523. msm_routing_get_port_mixer,
  18524. msm_routing_put_port_mixer),
  18525. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18526. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18527. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18528. msm_routing_get_port_mixer,
  18529. msm_routing_put_port_mixer),
  18530. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18531. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18532. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18533. msm_routing_get_port_mixer,
  18534. msm_routing_put_port_mixer),
  18535. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18536. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18537. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18538. msm_routing_get_port_mixer,
  18539. msm_routing_put_port_mixer),
  18540. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18541. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18542. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18543. msm_routing_get_port_mixer,
  18544. msm_routing_put_port_mixer),
  18545. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18546. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18547. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18548. msm_routing_get_port_mixer,
  18549. msm_routing_put_port_mixer),
  18550. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18551. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18552. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18553. msm_routing_get_port_mixer,
  18554. msm_routing_put_port_mixer),
  18555. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18557. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18558. msm_routing_get_port_mixer,
  18559. msm_routing_put_port_mixer),
  18560. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18561. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18562. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18563. msm_routing_get_port_mixer,
  18564. msm_routing_put_port_mixer),
  18565. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18566. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18567. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18568. msm_routing_get_port_mixer,
  18569. msm_routing_put_port_mixer),
  18570. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18571. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18572. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18573. msm_routing_get_port_mixer,
  18574. msm_routing_put_port_mixer),
  18575. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18576. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18577. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18578. msm_routing_get_port_mixer,
  18579. msm_routing_put_port_mixer),
  18580. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18581. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18582. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18583. msm_routing_get_port_mixer,
  18584. msm_routing_put_port_mixer),
  18585. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18586. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18587. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18588. msm_routing_get_port_mixer,
  18589. msm_routing_put_port_mixer),
  18590. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18591. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18592. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18593. msm_routing_get_port_mixer,
  18594. msm_routing_put_port_mixer),
  18595. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18596. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18597. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18598. msm_routing_get_port_mixer,
  18599. msm_routing_put_port_mixer),
  18600. };
  18601. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18602. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18604. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18605. msm_routing_get_port_mixer,
  18606. msm_routing_put_port_mixer),
  18607. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18608. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18609. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18610. msm_routing_get_port_mixer,
  18611. msm_routing_put_port_mixer),
  18612. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18613. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18614. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18615. msm_routing_get_port_mixer,
  18616. msm_routing_put_port_mixer),
  18617. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18619. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18620. msm_routing_get_port_mixer,
  18621. msm_routing_put_port_mixer),
  18622. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18623. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18624. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18625. msm_routing_get_port_mixer,
  18626. msm_routing_put_port_mixer),
  18627. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18628. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18629. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18630. msm_routing_get_port_mixer,
  18631. msm_routing_put_port_mixer),
  18632. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18634. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18635. msm_routing_get_port_mixer,
  18636. msm_routing_put_port_mixer),
  18637. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18639. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18640. msm_routing_get_port_mixer,
  18641. msm_routing_put_port_mixer),
  18642. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18643. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18644. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18645. msm_routing_get_port_mixer,
  18646. msm_routing_put_port_mixer),
  18647. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18648. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18649. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18650. msm_routing_get_port_mixer,
  18651. msm_routing_put_port_mixer),
  18652. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18654. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18655. msm_routing_get_port_mixer,
  18656. msm_routing_put_port_mixer),
  18657. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18658. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18659. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18660. msm_routing_get_port_mixer,
  18661. msm_routing_put_port_mixer),
  18662. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18663. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18664. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18665. msm_routing_get_port_mixer,
  18666. msm_routing_put_port_mixer),
  18667. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18668. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18669. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18670. msm_routing_get_port_mixer,
  18671. msm_routing_put_port_mixer),
  18672. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18673. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18674. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18675. msm_routing_get_port_mixer,
  18676. msm_routing_put_port_mixer),
  18677. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18678. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18679. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18680. msm_routing_get_port_mixer,
  18681. msm_routing_put_port_mixer),
  18682. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18683. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18684. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18685. msm_routing_get_port_mixer,
  18686. msm_routing_put_port_mixer),
  18687. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18688. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18689. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18690. msm_routing_get_port_mixer,
  18691. msm_routing_put_port_mixer),
  18692. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18693. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18694. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18695. msm_routing_get_port_mixer,
  18696. msm_routing_put_port_mixer),
  18697. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18698. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18699. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18700. msm_routing_get_port_mixer,
  18701. msm_routing_put_port_mixer),
  18702. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18703. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18704. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18705. msm_routing_get_port_mixer,
  18706. msm_routing_put_port_mixer),
  18707. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18708. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18709. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18710. msm_routing_get_port_mixer,
  18711. msm_routing_put_port_mixer),
  18712. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18713. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18714. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18715. msm_routing_get_port_mixer,
  18716. msm_routing_put_port_mixer),
  18717. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18719. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18720. msm_routing_get_port_mixer,
  18721. msm_routing_put_port_mixer),
  18722. };
  18723. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18724. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18726. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18727. msm_routing_get_port_mixer,
  18728. msm_routing_put_port_mixer),
  18729. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18731. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18732. msm_routing_get_port_mixer,
  18733. msm_routing_put_port_mixer),
  18734. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18735. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18736. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18737. msm_routing_get_port_mixer,
  18738. msm_routing_put_port_mixer),
  18739. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18740. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18741. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18742. msm_routing_get_port_mixer,
  18743. msm_routing_put_port_mixer),
  18744. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18746. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18747. msm_routing_get_port_mixer,
  18748. msm_routing_put_port_mixer),
  18749. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18751. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18752. msm_routing_get_port_mixer,
  18753. msm_routing_put_port_mixer),
  18754. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18755. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18756. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18757. msm_routing_get_port_mixer,
  18758. msm_routing_put_port_mixer),
  18759. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18760. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18761. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18762. msm_routing_get_port_mixer,
  18763. msm_routing_put_port_mixer),
  18764. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18766. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18767. msm_routing_get_port_mixer,
  18768. msm_routing_put_port_mixer),
  18769. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18770. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18771. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18772. msm_routing_get_port_mixer,
  18773. msm_routing_put_port_mixer),
  18774. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18775. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18776. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18777. msm_routing_get_port_mixer,
  18778. msm_routing_put_port_mixer),
  18779. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18780. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18781. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18782. msm_routing_get_port_mixer,
  18783. msm_routing_put_port_mixer),
  18784. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18785. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18786. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18787. msm_routing_get_port_mixer,
  18788. msm_routing_put_port_mixer),
  18789. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18790. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18791. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18792. msm_routing_get_port_mixer,
  18793. msm_routing_put_port_mixer),
  18794. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18796. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18797. msm_routing_get_port_mixer,
  18798. msm_routing_put_port_mixer),
  18799. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18800. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18801. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18802. msm_routing_get_port_mixer,
  18803. msm_routing_put_port_mixer),
  18804. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18805. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18806. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18807. msm_routing_get_port_mixer,
  18808. msm_routing_put_port_mixer),
  18809. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18810. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18811. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18812. msm_routing_get_port_mixer,
  18813. msm_routing_put_port_mixer),
  18814. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18815. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18816. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18817. msm_routing_get_port_mixer,
  18818. msm_routing_put_port_mixer),
  18819. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18820. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18821. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18822. msm_routing_get_port_mixer,
  18823. msm_routing_put_port_mixer),
  18824. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18825. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18826. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18827. msm_routing_get_port_mixer,
  18828. msm_routing_put_port_mixer),
  18829. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18830. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18831. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18832. msm_routing_get_port_mixer,
  18833. msm_routing_put_port_mixer),
  18834. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18835. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18836. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18837. msm_routing_get_port_mixer,
  18838. msm_routing_put_port_mixer),
  18839. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18840. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18841. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18842. msm_routing_get_port_mixer,
  18843. msm_routing_put_port_mixer),
  18844. };
  18845. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18846. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18847. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18848. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18849. msm_routing_get_port_mixer,
  18850. msm_routing_put_port_mixer),
  18851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18852. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18854. msm_routing_get_port_mixer,
  18855. msm_routing_put_port_mixer),
  18856. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18857. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18858. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18859. msm_routing_get_port_mixer,
  18860. msm_routing_put_port_mixer),
  18861. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18862. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18863. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18864. msm_routing_get_port_mixer,
  18865. msm_routing_put_port_mixer),
  18866. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18867. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18868. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18869. msm_routing_get_port_mixer,
  18870. msm_routing_put_port_mixer),
  18871. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18872. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18873. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18874. msm_routing_get_port_mixer,
  18875. msm_routing_put_port_mixer),
  18876. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18878. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18879. msm_routing_get_port_mixer,
  18880. msm_routing_put_port_mixer),
  18881. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18882. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18883. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18884. msm_routing_get_port_mixer,
  18885. msm_routing_put_port_mixer),
  18886. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18887. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18888. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18889. msm_routing_get_port_mixer,
  18890. msm_routing_put_port_mixer),
  18891. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18892. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18893. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18894. msm_routing_get_port_mixer,
  18895. msm_routing_put_port_mixer),
  18896. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18897. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18898. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18899. msm_routing_get_port_mixer,
  18900. msm_routing_put_port_mixer),
  18901. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18902. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18903. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18904. msm_routing_get_port_mixer,
  18905. msm_routing_put_port_mixer),
  18906. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18907. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18908. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18909. msm_routing_get_port_mixer,
  18910. msm_routing_put_port_mixer),
  18911. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18912. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18913. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18914. msm_routing_get_port_mixer,
  18915. msm_routing_put_port_mixer),
  18916. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18917. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18918. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18919. msm_routing_get_port_mixer,
  18920. msm_routing_put_port_mixer),
  18921. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18922. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18923. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18924. msm_routing_get_port_mixer,
  18925. msm_routing_put_port_mixer),
  18926. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18927. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18928. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18929. msm_routing_get_port_mixer,
  18930. msm_routing_put_port_mixer),
  18931. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18932. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18933. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18934. msm_routing_get_port_mixer,
  18935. msm_routing_put_port_mixer),
  18936. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18937. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18938. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18939. msm_routing_get_port_mixer,
  18940. msm_routing_put_port_mixer),
  18941. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18942. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18943. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18944. msm_routing_get_port_mixer,
  18945. msm_routing_put_port_mixer),
  18946. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18947. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18948. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18949. msm_routing_get_port_mixer,
  18950. msm_routing_put_port_mixer),
  18951. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18952. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18953. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18954. msm_routing_get_port_mixer,
  18955. msm_routing_put_port_mixer),
  18956. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18957. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18958. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18959. msm_routing_get_port_mixer,
  18960. msm_routing_put_port_mixer),
  18961. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18962. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18963. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18964. msm_routing_get_port_mixer,
  18965. msm_routing_put_port_mixer),
  18966. };
  18967. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18968. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18969. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18970. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18971. msm_routing_get_port_mixer,
  18972. msm_routing_put_port_mixer),
  18973. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  18974. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18975. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  18976. msm_routing_get_port_mixer,
  18977. msm_routing_put_port_mixer),
  18978. };
  18979. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18980. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18981. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18982. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18983. msm_routing_get_port_mixer,
  18984. msm_routing_put_port_mixer),
  18985. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18986. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18987. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18988. msm_routing_get_port_mixer,
  18989. msm_routing_put_port_mixer),
  18990. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18991. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18992. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18993. msm_routing_get_port_mixer,
  18994. msm_routing_put_port_mixer),
  18995. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18996. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18997. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18998. msm_routing_get_port_mixer,
  18999. msm_routing_put_port_mixer),
  19000. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19001. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19002. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19003. msm_routing_get_port_mixer,
  19004. msm_routing_put_port_mixer),
  19005. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19006. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19007. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19008. msm_routing_get_port_mixer,
  19009. msm_routing_put_port_mixer),
  19010. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19011. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19012. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19013. msm_routing_get_port_mixer,
  19014. msm_routing_put_port_mixer),
  19015. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19016. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19017. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19018. msm_routing_get_port_mixer,
  19019. msm_routing_put_port_mixer),
  19020. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19021. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19022. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19023. msm_routing_get_port_mixer,
  19024. msm_routing_put_port_mixer),
  19025. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19026. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19027. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19028. msm_routing_get_port_mixer,
  19029. msm_routing_put_port_mixer),
  19030. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19031. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19032. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19033. msm_routing_get_port_mixer,
  19034. msm_routing_put_port_mixer),
  19035. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19036. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19037. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19038. msm_routing_get_port_mixer,
  19039. msm_routing_put_port_mixer),
  19040. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19041. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19042. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19043. msm_routing_get_port_mixer,
  19044. msm_routing_put_port_mixer),
  19045. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19046. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19047. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19048. msm_routing_get_port_mixer,
  19049. msm_routing_put_port_mixer),
  19050. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19051. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19052. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19053. msm_routing_get_port_mixer,
  19054. msm_routing_put_port_mixer),
  19055. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19056. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19057. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19058. msm_routing_get_port_mixer,
  19059. msm_routing_put_port_mixer),
  19060. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19061. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19062. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19063. msm_routing_get_port_mixer,
  19064. msm_routing_put_port_mixer),
  19065. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19066. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19067. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19068. msm_routing_get_port_mixer,
  19069. msm_routing_put_port_mixer),
  19070. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19071. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19072. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19073. msm_routing_get_port_mixer,
  19074. msm_routing_put_port_mixer),
  19075. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19076. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19077. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19078. msm_routing_get_port_mixer,
  19079. msm_routing_put_port_mixer),
  19080. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19081. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19082. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19083. msm_routing_get_port_mixer,
  19084. msm_routing_put_port_mixer),
  19085. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19086. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19087. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19088. msm_routing_get_port_mixer,
  19089. msm_routing_put_port_mixer),
  19090. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19091. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19092. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19093. msm_routing_get_port_mixer,
  19094. msm_routing_put_port_mixer),
  19095. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19096. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19097. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19098. msm_routing_get_port_mixer,
  19099. msm_routing_put_port_mixer),
  19100. };
  19101. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19102. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19103. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19104. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19105. msm_routing_get_port_mixer,
  19106. msm_routing_put_port_mixer),
  19107. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19108. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19109. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19110. msm_routing_get_port_mixer,
  19111. msm_routing_put_port_mixer),
  19112. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19113. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19114. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19115. msm_routing_get_port_mixer,
  19116. msm_routing_put_port_mixer),
  19117. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19118. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19119. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19120. msm_routing_get_port_mixer,
  19121. msm_routing_put_port_mixer),
  19122. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19123. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19124. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19125. msm_routing_get_port_mixer,
  19126. msm_routing_put_port_mixer),
  19127. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19128. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19129. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19130. msm_routing_get_port_mixer,
  19131. msm_routing_put_port_mixer),
  19132. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19133. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19134. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19135. msm_routing_get_port_mixer,
  19136. msm_routing_put_port_mixer),
  19137. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19138. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19139. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19140. msm_routing_get_port_mixer,
  19141. msm_routing_put_port_mixer),
  19142. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19143. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19144. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19145. msm_routing_get_port_mixer,
  19146. msm_routing_put_port_mixer),
  19147. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19148. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19149. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19150. msm_routing_get_port_mixer,
  19151. msm_routing_put_port_mixer),
  19152. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19153. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19154. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19155. msm_routing_get_port_mixer,
  19156. msm_routing_put_port_mixer),
  19157. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19158. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19159. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19160. msm_routing_get_port_mixer,
  19161. msm_routing_put_port_mixer),
  19162. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19163. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19164. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19165. msm_routing_get_port_mixer,
  19166. msm_routing_put_port_mixer),
  19167. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19168. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19169. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19170. msm_routing_get_port_mixer,
  19171. msm_routing_put_port_mixer),
  19172. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19173. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19174. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19175. msm_routing_get_port_mixer,
  19176. msm_routing_put_port_mixer),
  19177. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19178. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19179. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19180. msm_routing_get_port_mixer,
  19181. msm_routing_put_port_mixer),
  19182. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19183. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19184. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19185. msm_routing_get_port_mixer,
  19186. msm_routing_put_port_mixer),
  19187. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19189. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19190. msm_routing_get_port_mixer,
  19191. msm_routing_put_port_mixer),
  19192. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19193. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19194. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19195. msm_routing_get_port_mixer,
  19196. msm_routing_put_port_mixer),
  19197. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19198. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19199. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19200. msm_routing_get_port_mixer,
  19201. msm_routing_put_port_mixer),
  19202. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19203. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19204. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19205. msm_routing_get_port_mixer,
  19206. msm_routing_put_port_mixer),
  19207. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19208. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19209. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19210. msm_routing_get_port_mixer,
  19211. msm_routing_put_port_mixer),
  19212. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19213. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19214. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19215. msm_routing_get_port_mixer,
  19216. msm_routing_put_port_mixer),
  19217. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19218. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19219. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19220. msm_routing_get_port_mixer,
  19221. msm_routing_put_port_mixer),
  19222. };
  19223. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19224. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19225. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19226. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19227. msm_routing_get_port_mixer,
  19228. msm_routing_put_port_mixer),
  19229. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19230. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19231. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19232. msm_routing_get_port_mixer,
  19233. msm_routing_put_port_mixer),
  19234. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19235. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19236. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19237. msm_routing_get_port_mixer,
  19238. msm_routing_put_port_mixer),
  19239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19240. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19241. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19242. msm_routing_get_port_mixer,
  19243. msm_routing_put_port_mixer),
  19244. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19245. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19246. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19247. msm_routing_get_port_mixer,
  19248. msm_routing_put_port_mixer),
  19249. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19250. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19251. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19252. msm_routing_get_port_mixer,
  19253. msm_routing_put_port_mixer),
  19254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19255. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19257. msm_routing_get_port_mixer,
  19258. msm_routing_put_port_mixer),
  19259. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19260. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19261. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19262. msm_routing_get_port_mixer,
  19263. msm_routing_put_port_mixer),
  19264. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19265. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19266. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19267. msm_routing_get_port_mixer,
  19268. msm_routing_put_port_mixer),
  19269. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19270. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19271. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19272. msm_routing_get_port_mixer,
  19273. msm_routing_put_port_mixer),
  19274. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19275. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19276. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19277. msm_routing_get_port_mixer,
  19278. msm_routing_put_port_mixer),
  19279. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19280. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19281. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19282. msm_routing_get_port_mixer,
  19283. msm_routing_put_port_mixer),
  19284. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19285. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19286. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19287. msm_routing_get_port_mixer,
  19288. msm_routing_put_port_mixer),
  19289. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19290. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19291. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19292. msm_routing_get_port_mixer,
  19293. msm_routing_put_port_mixer),
  19294. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19295. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19296. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19297. msm_routing_get_port_mixer,
  19298. msm_routing_put_port_mixer),
  19299. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19300. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19301. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19302. msm_routing_get_port_mixer,
  19303. msm_routing_put_port_mixer),
  19304. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19305. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19306. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19307. msm_routing_get_port_mixer,
  19308. msm_routing_put_port_mixer),
  19309. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19310. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19311. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19312. msm_routing_get_port_mixer,
  19313. msm_routing_put_port_mixer),
  19314. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19315. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19316. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19317. msm_routing_get_port_mixer,
  19318. msm_routing_put_port_mixer),
  19319. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19320. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19321. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19322. msm_routing_get_port_mixer,
  19323. msm_routing_put_port_mixer),
  19324. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19325. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19326. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19327. msm_routing_get_port_mixer,
  19328. msm_routing_put_port_mixer),
  19329. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19330. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19331. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19332. msm_routing_get_port_mixer,
  19333. msm_routing_put_port_mixer),
  19334. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19335. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19336. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19337. msm_routing_get_port_mixer,
  19338. msm_routing_put_port_mixer),
  19339. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19340. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19341. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19342. msm_routing_get_port_mixer,
  19343. msm_routing_put_port_mixer),
  19344. };
  19345. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19346. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19347. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19348. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19349. msm_routing_get_port_mixer,
  19350. msm_routing_put_port_mixer),
  19351. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19352. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19353. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19354. msm_routing_get_port_mixer,
  19355. msm_routing_put_port_mixer),
  19356. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19357. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19358. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19359. msm_routing_get_port_mixer,
  19360. msm_routing_put_port_mixer),
  19361. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19362. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19363. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19364. msm_routing_get_port_mixer,
  19365. msm_routing_put_port_mixer),
  19366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19367. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19368. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19369. msm_routing_get_port_mixer,
  19370. msm_routing_put_port_mixer),
  19371. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19372. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19373. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19374. msm_routing_get_port_mixer,
  19375. msm_routing_put_port_mixer),
  19376. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19377. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19378. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19379. msm_routing_get_port_mixer,
  19380. msm_routing_put_port_mixer),
  19381. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19382. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19383. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19384. msm_routing_get_port_mixer,
  19385. msm_routing_put_port_mixer),
  19386. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19387. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19388. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19389. msm_routing_get_port_mixer,
  19390. msm_routing_put_port_mixer),
  19391. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19392. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19393. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19394. msm_routing_get_port_mixer,
  19395. msm_routing_put_port_mixer),
  19396. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19397. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19398. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19399. msm_routing_get_port_mixer,
  19400. msm_routing_put_port_mixer),
  19401. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19402. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19403. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19404. msm_routing_get_port_mixer,
  19405. msm_routing_put_port_mixer),
  19406. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19407. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19408. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19409. msm_routing_get_port_mixer,
  19410. msm_routing_put_port_mixer),
  19411. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19412. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19413. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19414. msm_routing_get_port_mixer,
  19415. msm_routing_put_port_mixer),
  19416. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19417. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19418. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19419. msm_routing_get_port_mixer,
  19420. msm_routing_put_port_mixer),
  19421. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19422. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19423. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19424. msm_routing_get_port_mixer,
  19425. msm_routing_put_port_mixer),
  19426. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19427. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19428. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19429. msm_routing_get_port_mixer,
  19430. msm_routing_put_port_mixer),
  19431. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19432. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19433. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19434. msm_routing_get_port_mixer,
  19435. msm_routing_put_port_mixer),
  19436. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19437. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19438. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19439. msm_routing_get_port_mixer,
  19440. msm_routing_put_port_mixer),
  19441. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19442. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19443. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19444. msm_routing_get_port_mixer,
  19445. msm_routing_put_port_mixer),
  19446. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19447. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19448. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19449. msm_routing_get_port_mixer,
  19450. msm_routing_put_port_mixer),
  19451. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19452. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19453. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19454. msm_routing_get_port_mixer,
  19455. msm_routing_put_port_mixer),
  19456. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19457. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19458. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19459. msm_routing_get_port_mixer,
  19460. msm_routing_put_port_mixer),
  19461. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19462. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19463. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19464. msm_routing_get_port_mixer,
  19465. msm_routing_put_port_mixer),
  19466. };
  19467. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19468. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19469. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19470. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19471. msm_routing_get_port_mixer,
  19472. msm_routing_put_port_mixer),
  19473. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19474. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19475. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19476. msm_routing_get_port_mixer,
  19477. msm_routing_put_port_mixer),
  19478. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19479. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19480. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19481. msm_routing_get_port_mixer,
  19482. msm_routing_put_port_mixer),
  19483. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19484. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19485. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19486. msm_routing_get_port_mixer,
  19487. msm_routing_put_port_mixer),
  19488. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19489. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19490. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19491. msm_routing_get_port_mixer,
  19492. msm_routing_put_port_mixer),
  19493. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19494. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19495. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19496. msm_routing_get_port_mixer,
  19497. msm_routing_put_port_mixer),
  19498. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19499. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19500. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19501. msm_routing_get_port_mixer,
  19502. msm_routing_put_port_mixer),
  19503. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19504. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19505. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19506. msm_routing_get_port_mixer,
  19507. msm_routing_put_port_mixer),
  19508. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19509. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19510. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19511. msm_routing_get_port_mixer,
  19512. msm_routing_put_port_mixer),
  19513. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19514. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19515. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19516. msm_routing_get_port_mixer,
  19517. msm_routing_put_port_mixer),
  19518. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19519. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19520. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19521. msm_routing_get_port_mixer,
  19522. msm_routing_put_port_mixer),
  19523. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19524. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19525. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19526. msm_routing_get_port_mixer,
  19527. msm_routing_put_port_mixer),
  19528. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19529. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19530. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19531. msm_routing_get_port_mixer,
  19532. msm_routing_put_port_mixer),
  19533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19534. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19535. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19536. msm_routing_get_port_mixer,
  19537. msm_routing_put_port_mixer),
  19538. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19539. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19540. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19541. msm_routing_get_port_mixer,
  19542. msm_routing_put_port_mixer),
  19543. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19544. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19545. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19546. msm_routing_get_port_mixer,
  19547. msm_routing_put_port_mixer),
  19548. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19549. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19550. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19551. msm_routing_get_port_mixer,
  19552. msm_routing_put_port_mixer),
  19553. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19554. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19555. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19556. msm_routing_get_port_mixer,
  19557. msm_routing_put_port_mixer),
  19558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19559. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19560. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19561. msm_routing_get_port_mixer,
  19562. msm_routing_put_port_mixer),
  19563. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19564. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19565. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19566. msm_routing_get_port_mixer,
  19567. msm_routing_put_port_mixer),
  19568. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19569. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19570. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19571. msm_routing_get_port_mixer,
  19572. msm_routing_put_port_mixer),
  19573. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19574. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19575. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19576. msm_routing_get_port_mixer,
  19577. msm_routing_put_port_mixer),
  19578. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19579. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19580. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19581. msm_routing_get_port_mixer,
  19582. msm_routing_put_port_mixer),
  19583. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19584. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19585. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19586. msm_routing_get_port_mixer,
  19587. msm_routing_put_port_mixer),
  19588. };
  19589. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19590. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19591. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19592. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19593. msm_routing_get_port_mixer,
  19594. msm_routing_put_port_mixer),
  19595. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19597. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19598. msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19601. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19602. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19603. msm_routing_get_port_mixer,
  19604. msm_routing_put_port_mixer),
  19605. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19606. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19607. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19608. msm_routing_get_port_mixer,
  19609. msm_routing_put_port_mixer),
  19610. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19612. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19613. msm_routing_get_port_mixer,
  19614. msm_routing_put_port_mixer),
  19615. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19616. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19617. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19618. msm_routing_get_port_mixer,
  19619. msm_routing_put_port_mixer),
  19620. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19621. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19622. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19623. msm_routing_get_port_mixer,
  19624. msm_routing_put_port_mixer),
  19625. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19626. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19627. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19628. msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19632. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19633. msm_routing_get_port_mixer,
  19634. msm_routing_put_port_mixer),
  19635. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19636. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19637. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19638. msm_routing_get_port_mixer,
  19639. msm_routing_put_port_mixer),
  19640. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19641. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19642. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19643. msm_routing_get_port_mixer,
  19644. msm_routing_put_port_mixer),
  19645. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19646. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19647. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19648. msm_routing_get_port_mixer,
  19649. msm_routing_put_port_mixer),
  19650. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19651. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19652. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19653. msm_routing_get_port_mixer,
  19654. msm_routing_put_port_mixer),
  19655. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19656. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19657. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19658. msm_routing_get_port_mixer,
  19659. msm_routing_put_port_mixer),
  19660. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19662. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19663. msm_routing_get_port_mixer,
  19664. msm_routing_put_port_mixer),
  19665. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19666. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19667. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19668. msm_routing_get_port_mixer,
  19669. msm_routing_put_port_mixer),
  19670. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19671. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19672. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19673. msm_routing_get_port_mixer,
  19674. msm_routing_put_port_mixer),
  19675. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19676. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19677. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19678. msm_routing_get_port_mixer,
  19679. msm_routing_put_port_mixer),
  19680. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19681. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19682. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19683. msm_routing_get_port_mixer,
  19684. msm_routing_put_port_mixer),
  19685. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19686. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19687. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19688. msm_routing_get_port_mixer,
  19689. msm_routing_put_port_mixer),
  19690. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19691. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19692. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19693. msm_routing_get_port_mixer,
  19694. msm_routing_put_port_mixer),
  19695. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19696. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19697. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19698. msm_routing_get_port_mixer,
  19699. msm_routing_put_port_mixer),
  19700. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19701. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19702. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19703. msm_routing_get_port_mixer,
  19704. msm_routing_put_port_mixer),
  19705. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19706. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19707. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19708. msm_routing_get_port_mixer,
  19709. msm_routing_put_port_mixer),
  19710. };
  19711. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19712. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19713. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19714. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19715. msm_routing_get_port_mixer,
  19716. msm_routing_put_port_mixer),
  19717. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19718. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19719. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19720. msm_routing_get_port_mixer,
  19721. msm_routing_put_port_mixer),
  19722. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19724. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19725. msm_routing_get_port_mixer,
  19726. msm_routing_put_port_mixer),
  19727. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19729. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19730. msm_routing_get_port_mixer,
  19731. msm_routing_put_port_mixer),
  19732. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19733. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19734. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19735. msm_routing_get_port_mixer,
  19736. msm_routing_put_port_mixer),
  19737. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19738. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19739. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19740. msm_routing_get_port_mixer,
  19741. msm_routing_put_port_mixer),
  19742. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19743. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19744. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19745. msm_routing_get_port_mixer,
  19746. msm_routing_put_port_mixer),
  19747. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19749. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19750. msm_routing_get_port_mixer,
  19751. msm_routing_put_port_mixer),
  19752. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19753. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19754. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19755. msm_routing_get_port_mixer,
  19756. msm_routing_put_port_mixer),
  19757. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19758. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19759. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19760. msm_routing_get_port_mixer,
  19761. msm_routing_put_port_mixer),
  19762. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19764. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19765. msm_routing_get_port_mixer,
  19766. msm_routing_put_port_mixer),
  19767. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19768. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19769. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19770. msm_routing_get_port_mixer,
  19771. msm_routing_put_port_mixer),
  19772. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19773. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19774. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19775. msm_routing_get_port_mixer,
  19776. msm_routing_put_port_mixer),
  19777. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19779. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19780. msm_routing_get_port_mixer,
  19781. msm_routing_put_port_mixer),
  19782. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19783. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19784. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19785. msm_routing_get_port_mixer,
  19786. msm_routing_put_port_mixer),
  19787. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19788. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19789. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19790. msm_routing_get_port_mixer,
  19791. msm_routing_put_port_mixer),
  19792. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19793. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19794. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19795. msm_routing_get_port_mixer,
  19796. msm_routing_put_port_mixer),
  19797. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19798. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19799. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19800. msm_routing_get_port_mixer,
  19801. msm_routing_put_port_mixer),
  19802. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19803. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19804. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19805. msm_routing_get_port_mixer,
  19806. msm_routing_put_port_mixer),
  19807. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19808. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19809. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19810. msm_routing_get_port_mixer,
  19811. msm_routing_put_port_mixer),
  19812. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19813. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19814. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19815. msm_routing_get_port_mixer,
  19816. msm_routing_put_port_mixer),
  19817. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19818. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19819. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19820. msm_routing_get_port_mixer,
  19821. msm_routing_put_port_mixer),
  19822. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19823. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19824. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19825. msm_routing_get_port_mixer,
  19826. msm_routing_put_port_mixer),
  19827. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19828. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19829. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19830. msm_routing_get_port_mixer,
  19831. msm_routing_put_port_mixer),
  19832. };
  19833. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19834. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19835. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19836. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19837. msm_routing_get_port_mixer,
  19838. msm_routing_put_port_mixer),
  19839. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19840. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19841. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19842. msm_routing_get_port_mixer,
  19843. msm_routing_put_port_mixer),
  19844. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19845. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19846. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19847. msm_routing_get_port_mixer,
  19848. msm_routing_put_port_mixer),
  19849. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19850. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19851. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19852. msm_routing_get_port_mixer,
  19853. msm_routing_put_port_mixer),
  19854. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19855. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19856. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19857. msm_routing_get_port_mixer,
  19858. msm_routing_put_port_mixer),
  19859. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19861. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19862. msm_routing_get_port_mixer,
  19863. msm_routing_put_port_mixer),
  19864. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19865. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19866. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19867. msm_routing_get_port_mixer,
  19868. msm_routing_put_port_mixer),
  19869. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19870. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19871. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19872. msm_routing_get_port_mixer,
  19873. msm_routing_put_port_mixer),
  19874. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19875. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19876. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19877. msm_routing_get_port_mixer,
  19878. msm_routing_put_port_mixer),
  19879. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19880. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19881. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19882. msm_routing_get_port_mixer,
  19883. msm_routing_put_port_mixer),
  19884. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19885. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19886. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19887. msm_routing_get_port_mixer,
  19888. msm_routing_put_port_mixer),
  19889. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19891. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19892. msm_routing_get_port_mixer,
  19893. msm_routing_put_port_mixer),
  19894. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19895. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19896. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19897. msm_routing_get_port_mixer,
  19898. msm_routing_put_port_mixer),
  19899. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19900. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19901. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19902. msm_routing_get_port_mixer,
  19903. msm_routing_put_port_mixer),
  19904. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19905. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19906. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19907. msm_routing_get_port_mixer,
  19908. msm_routing_put_port_mixer),
  19909. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19911. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19912. msm_routing_get_port_mixer,
  19913. msm_routing_put_port_mixer),
  19914. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19915. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19916. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19917. msm_routing_get_port_mixer,
  19918. msm_routing_put_port_mixer),
  19919. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19920. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19921. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19922. msm_routing_get_port_mixer,
  19923. msm_routing_put_port_mixer),
  19924. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19925. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19926. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19927. msm_routing_get_port_mixer,
  19928. msm_routing_put_port_mixer),
  19929. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19930. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19931. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19932. msm_routing_get_port_mixer,
  19933. msm_routing_put_port_mixer),
  19934. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19935. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19936. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19937. msm_routing_get_port_mixer,
  19938. msm_routing_put_port_mixer),
  19939. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19940. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19941. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19942. msm_routing_get_port_mixer,
  19943. msm_routing_put_port_mixer),
  19944. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19945. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19946. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19947. msm_routing_get_port_mixer,
  19948. msm_routing_put_port_mixer),
  19949. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19950. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19951. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19952. msm_routing_get_port_mixer,
  19953. msm_routing_put_port_mixer),
  19954. };
  19955. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  19956. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19957. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19958. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19959. msm_routing_get_port_mixer,
  19960. msm_routing_put_port_mixer),
  19961. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19962. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19963. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19964. msm_routing_get_port_mixer,
  19965. msm_routing_put_port_mixer),
  19966. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19967. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19968. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19969. msm_routing_get_port_mixer,
  19970. msm_routing_put_port_mixer),
  19971. };
  19972. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19973. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19974. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19975. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19976. msm_routing_put_port_mixer),
  19977. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19979. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19980. msm_routing_put_port_mixer),
  19981. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19983. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19984. msm_routing_put_port_mixer),
  19985. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19987. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19988. msm_routing_put_port_mixer),
  19989. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19991. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19992. msm_routing_put_port_mixer),
  19993. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19994. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19995. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19996. msm_routing_put_port_mixer),
  19997. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19999. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20000. msm_routing_put_port_mixer),
  20001. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20003. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20004. msm_routing_put_port_mixer),
  20005. };
  20006. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20007. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20009. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20013. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20014. msm_routing_put_port_mixer),
  20015. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20016. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20017. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20018. msm_routing_put_port_mixer),
  20019. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20020. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20021. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20022. msm_routing_put_port_mixer),
  20023. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20024. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20025. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20029. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20033. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20034. msm_routing_put_port_mixer),
  20035. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20036. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20037. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20038. msm_routing_put_port_mixer),
  20039. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20041. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20042. msm_routing_put_port_mixer),
  20043. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20045. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20046. msm_routing_put_port_mixer),
  20047. };
  20048. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20049. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20050. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20051. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20052. msm_routing_put_listen_mixer),
  20053. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20055. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20056. msm_routing_put_listen_mixer),
  20057. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20059. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20060. msm_routing_put_listen_mixer),
  20061. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20062. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20063. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20064. msm_routing_put_listen_mixer),
  20065. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20066. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20067. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20068. msm_routing_put_listen_mixer),
  20069. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20071. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20072. msm_routing_put_listen_mixer),
  20073. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20074. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20075. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20076. msm_routing_put_listen_mixer),
  20077. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20078. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20079. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20080. msm_routing_put_listen_mixer),
  20081. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20082. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20083. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20084. msm_routing_put_listen_mixer),
  20085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20087. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20088. msm_routing_put_listen_mixer),
  20089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20091. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20092. msm_routing_put_listen_mixer),
  20093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20095. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20096. msm_routing_put_listen_mixer),
  20097. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20098. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20099. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20100. msm_routing_put_listen_mixer),
  20101. };
  20102. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20103. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20105. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20106. msm_routing_put_listen_mixer),
  20107. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20108. SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20110. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20111. msm_routing_put_listen_mixer),
  20112. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20113. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20114. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20115. msm_routing_put_listen_mixer),
  20116. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20117. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20118. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20119. msm_routing_put_listen_mixer),
  20120. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20121. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20122. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20123. msm_routing_put_listen_mixer),
  20124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20126. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20127. msm_routing_put_listen_mixer),
  20128. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20130. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20131. msm_routing_put_listen_mixer),
  20132. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20133. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20134. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20135. msm_routing_put_listen_mixer),
  20136. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20137. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20138. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20139. msm_routing_put_listen_mixer),
  20140. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20141. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20142. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20143. msm_routing_put_listen_mixer),
  20144. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20146. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20147. msm_routing_put_listen_mixer),
  20148. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20150. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20151. msm_routing_put_listen_mixer),
  20152. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20153. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20154. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20155. msm_routing_put_listen_mixer),
  20156. };
  20157. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20158. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20159. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20160. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20161. msm_routing_put_listen_mixer),
  20162. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20163. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20164. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20165. msm_routing_put_listen_mixer),
  20166. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20168. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20169. msm_routing_put_listen_mixer),
  20170. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20171. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20172. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20173. msm_routing_put_listen_mixer),
  20174. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20176. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20177. msm_routing_put_listen_mixer),
  20178. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20179. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20180. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20181. msm_routing_put_listen_mixer),
  20182. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20183. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20184. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20185. msm_routing_put_listen_mixer),
  20186. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20188. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20189. msm_routing_put_listen_mixer),
  20190. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20191. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20192. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20193. msm_routing_put_listen_mixer),
  20194. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20195. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20196. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20197. msm_routing_put_listen_mixer),
  20198. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20199. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20200. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20201. msm_routing_put_listen_mixer),
  20202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20204. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20205. msm_routing_put_listen_mixer),
  20206. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20208. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20209. msm_routing_put_listen_mixer),
  20210. };
  20211. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20212. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20213. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20214. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20215. msm_routing_put_listen_mixer),
  20216. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20218. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20219. msm_routing_put_listen_mixer),
  20220. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20221. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20222. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20223. msm_routing_put_listen_mixer),
  20224. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20225. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20226. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20227. msm_routing_put_listen_mixer),
  20228. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20229. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20230. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20231. msm_routing_put_listen_mixer),
  20232. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20233. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20234. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20235. msm_routing_put_listen_mixer),
  20236. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20238. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20239. msm_routing_put_listen_mixer),
  20240. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20242. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20243. msm_routing_put_listen_mixer),
  20244. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20245. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20246. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20247. msm_routing_put_listen_mixer),
  20248. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20249. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20250. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20251. msm_routing_put_listen_mixer),
  20252. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20253. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20254. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20255. msm_routing_put_listen_mixer),
  20256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20258. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20259. msm_routing_put_listen_mixer),
  20260. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20262. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20263. msm_routing_put_listen_mixer),
  20264. };
  20265. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20266. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20268. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20269. msm_routing_put_listen_mixer),
  20270. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20272. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20273. msm_routing_put_listen_mixer),
  20274. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20275. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20276. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20277. msm_routing_put_listen_mixer),
  20278. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20279. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20280. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20281. msm_routing_put_listen_mixer),
  20282. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20283. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20284. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20285. msm_routing_put_listen_mixer),
  20286. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20288. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20289. msm_routing_put_listen_mixer),
  20290. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20292. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20293. msm_routing_put_listen_mixer),
  20294. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20295. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20296. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20297. msm_routing_put_listen_mixer),
  20298. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20299. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20300. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20301. msm_routing_put_listen_mixer),
  20302. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20303. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20304. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20305. msm_routing_put_listen_mixer),
  20306. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20307. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20308. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20309. msm_routing_put_listen_mixer),
  20310. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20311. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20312. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20313. msm_routing_put_listen_mixer),
  20314. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20315. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20316. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20317. msm_routing_put_listen_mixer),
  20318. };
  20319. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20320. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20321. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20322. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20323. msm_routing_put_listen_mixer),
  20324. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20325. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20326. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20327. msm_routing_put_listen_mixer),
  20328. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20330. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20331. msm_routing_put_listen_mixer),
  20332. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20333. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20334. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20335. msm_routing_put_listen_mixer),
  20336. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20337. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20338. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20339. msm_routing_put_listen_mixer),
  20340. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20341. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20342. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20343. msm_routing_put_listen_mixer),
  20344. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20345. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20346. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20347. msm_routing_put_listen_mixer),
  20348. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20350. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20351. msm_routing_put_listen_mixer),
  20352. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20354. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20355. msm_routing_put_listen_mixer),
  20356. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20357. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20358. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20359. msm_routing_put_listen_mixer),
  20360. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20361. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20362. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20363. msm_routing_put_listen_mixer),
  20364. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20365. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20366. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20367. msm_routing_put_listen_mixer),
  20368. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20370. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20371. msm_routing_put_listen_mixer),
  20372. };
  20373. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20374. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20375. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20376. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20377. msm_routing_put_listen_mixer),
  20378. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20380. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20381. msm_routing_put_listen_mixer),
  20382. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20384. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20385. msm_routing_put_listen_mixer),
  20386. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20387. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20388. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20389. msm_routing_put_listen_mixer),
  20390. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20391. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20392. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20393. msm_routing_put_listen_mixer),
  20394. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20395. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20396. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20397. msm_routing_put_listen_mixer),
  20398. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20400. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20401. msm_routing_put_listen_mixer),
  20402. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20404. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20405. msm_routing_put_listen_mixer),
  20406. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20407. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20408. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20409. msm_routing_put_listen_mixer),
  20410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20412. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20413. msm_routing_put_listen_mixer),
  20414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20416. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20417. msm_routing_put_listen_mixer),
  20418. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20419. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20420. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20421. msm_routing_put_listen_mixer),
  20422. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20423. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20424. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20425. msm_routing_put_listen_mixer),
  20426. };
  20427. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20428. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20429. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20430. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20431. msm_routing_put_listen_mixer),
  20432. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20434. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20435. msm_routing_put_listen_mixer),
  20436. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20437. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20438. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20439. msm_routing_put_listen_mixer),
  20440. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20441. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20442. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20443. msm_routing_put_listen_mixer),
  20444. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20445. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20446. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20447. msm_routing_put_listen_mixer),
  20448. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20449. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20450. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20451. msm_routing_put_listen_mixer),
  20452. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20453. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20454. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20455. msm_routing_put_listen_mixer),
  20456. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20457. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20458. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20459. msm_routing_put_listen_mixer),
  20460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20462. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20463. msm_routing_put_listen_mixer),
  20464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20466. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20467. msm_routing_put_listen_mixer),
  20468. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20469. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20470. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20471. msm_routing_put_listen_mixer),
  20472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20474. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20475. msm_routing_put_listen_mixer),
  20476. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20477. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20478. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20479. msm_routing_put_listen_mixer),
  20480. };
  20481. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20482. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20483. 0, 1, 0, msm_routing_get_switch_mixer,
  20484. msm_routing_put_switch_mixer);
  20485. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20486. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20487. 0, 1, 0, msm_routing_get_switch_mixer,
  20488. msm_routing_put_switch_mixer);
  20489. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20490. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20491. 0, 1, 0, msm_routing_get_switch_mixer,
  20492. msm_routing_put_switch_mixer);
  20493. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20494. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20495. 0, 1, 0, msm_routing_get_switch_mixer,
  20496. msm_routing_put_switch_mixer);
  20497. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20498. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20499. 0, 1, 0, msm_routing_get_switch_mixer,
  20500. msm_routing_put_switch_mixer);
  20501. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20502. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20503. 0, 1, 0, msm_routing_get_switch_mixer,
  20504. msm_routing_put_switch_mixer);
  20505. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20506. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20507. 0, 1, 0, msm_routing_get_switch_mixer,
  20508. msm_routing_put_switch_mixer);
  20509. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20510. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20511. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20512. msm_routing_put_fm_pcmrx_switch_mixer);
  20513. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20514. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20515. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20516. msm_routing_put_int0_mi2s_switch_mixer);
  20517. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20518. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20519. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20520. msm_routing_put_int4_mi2s_switch_mixer);
  20521. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20522. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20523. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20524. msm_routing_put_pri_mi2s_switch_mixer);
  20525. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20526. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20527. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20528. msm_routing_put_sec_mi2s_switch_mixer);
  20529. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20530. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20531. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20532. msm_routing_put_tert_mi2s_switch_mixer);
  20533. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20534. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20535. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20536. msm_routing_put_quat_mi2s_switch_mixer);
  20537. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20538. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20539. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20540. msm_routing_put_quin_mi2s_switch_mixer);
  20541. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20542. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20543. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20544. msm_routing_put_sen_mi2s_switch_mixer);
  20545. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20546. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20547. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20548. msm_routing_put_hfp_switch_mixer);
  20549. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20550. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20551. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20552. msm_routing_put_hfp_switch_mixer);
  20553. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20554. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20555. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20556. msm_routing_put_hfp_switch_mixer);
  20557. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20558. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20559. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20560. msm_routing_put_hfp_switch_mixer);
  20561. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20562. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20563. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20564. msm_routing_put_usb_switch_mixer);
  20565. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20566. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20567. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20568. msm_routing_a2dp_switch_mixer_put);
  20569. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20570. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20571. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20572. msm_routing_sco_switch_mixer_put);
  20573. static const struct soc_enum lsm_port_enum =
  20574. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20575. static const char * const lsm_func_text[] = {
  20576. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20577. };
  20578. static const struct soc_enum lsm_func_enum =
  20579. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20580. static const struct snd_kcontrol_new lsm_controls[] = {
  20581. /* kcontrol of lsm_function */
  20582. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20583. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20584. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20585. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20586. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20587. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20588. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20589. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20590. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20591. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20592. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20593. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20594. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20595. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20596. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20597. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20598. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20599. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20600. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20601. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20602. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20603. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20604. /* kcontrol of lsm_port */
  20605. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20606. msm_routing_lsm_port_get,
  20607. msm_routing_lsm_port_put),
  20608. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20609. msm_routing_lsm_port_get,
  20610. msm_routing_lsm_port_put),
  20611. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20612. msm_routing_lsm_port_get,
  20613. msm_routing_lsm_port_put),
  20614. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20615. msm_routing_lsm_port_get,
  20616. msm_routing_lsm_port_put),
  20617. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20618. msm_routing_lsm_port_get,
  20619. msm_routing_lsm_port_put),
  20620. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20621. msm_routing_lsm_port_get,
  20622. msm_routing_lsm_port_put),
  20623. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20624. msm_routing_lsm_port_get,
  20625. msm_routing_lsm_port_put),
  20626. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20627. msm_routing_lsm_port_get,
  20628. msm_routing_lsm_port_put),
  20629. };
  20630. static const char * const aanc_slim_0_rx_text[] = {
  20631. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20632. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20633. };
  20634. static const struct soc_enum aanc_slim_0_rx_enum =
  20635. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20636. aanc_slim_0_rx_text);
  20637. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20638. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20639. msm_routing_slim_0_rx_aanc_mux_get,
  20640. msm_routing_slim_0_rx_aanc_mux_put)
  20641. };
  20642. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20643. struct snd_ctl_elem_value *ucontrol)
  20644. {
  20645. ucontrol->value.integer.value[0] = aanc_level;
  20646. return 0;
  20647. }
  20648. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20649. struct snd_ctl_elem_value *ucontrol)
  20650. {
  20651. int ret = 0;
  20652. mutex_lock(&routing_lock);
  20653. aanc_level = ucontrol->value.integer.value[0];
  20654. pr_debug("%s: value: %ld\n",
  20655. __func__, ucontrol->value.integer.value[0]);
  20656. ret = afe_set_aanc_noise_level(aanc_level);
  20657. mutex_unlock(&routing_lock);
  20658. return ret;
  20659. }
  20660. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20661. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20662. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20663. };
  20664. static int msm_routing_get_stereo_to_custom_stereo_control(
  20665. struct snd_kcontrol *kcontrol,
  20666. struct snd_ctl_elem_value *ucontrol)
  20667. {
  20668. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20669. return 0;
  20670. }
  20671. static int msm_routing_put_stereo_to_custom_stereo_control(
  20672. struct snd_kcontrol *kcontrol,
  20673. struct snd_ctl_elem_value *ucontrol)
  20674. {
  20675. int flag = 0, i = 0, rc = 0, idx = 0;
  20676. int be_index = 0, port_id, topo_id;
  20677. unsigned int session_id = 0;
  20678. uint16_t op_FL_ip_FL_weight = 0;
  20679. uint16_t op_FL_ip_FR_weight = 0;
  20680. uint16_t op_FR_ip_FL_weight = 0;
  20681. uint16_t op_FR_ip_FR_weight = 0;
  20682. flag = ucontrol->value.integer.value[0];
  20683. pr_debug("%s E flag %d\n", __func__, flag);
  20684. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20685. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20686. __func__, is_custom_stereo_on, flag);
  20687. return 0;
  20688. }
  20689. is_custom_stereo_on = flag ? true : false;
  20690. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20691. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20692. port_id = msm_bedais[be_index].port_id;
  20693. if (!msm_bedais[be_index].active)
  20694. continue;
  20695. if ((port_id != SLIMBUS_0_RX) &&
  20696. (port_id != RT_PROXY_PORT_001_RX) &&
  20697. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20698. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20699. continue;
  20700. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20701. MSM_FRONTEND_DAI_MM_SIZE) {
  20702. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20703. LEGACY_PCM_MODE)
  20704. goto skip_send_custom_stereo;
  20705. session_id =
  20706. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20707. if (is_custom_stereo_on) {
  20708. op_FL_ip_FL_weight =
  20709. Q14_GAIN_ZERO_POINT_FIVE;
  20710. op_FL_ip_FR_weight =
  20711. Q14_GAIN_ZERO_POINT_FIVE;
  20712. op_FR_ip_FL_weight =
  20713. Q14_GAIN_ZERO_POINT_FIVE;
  20714. op_FR_ip_FR_weight =
  20715. Q14_GAIN_ZERO_POINT_FIVE;
  20716. } else {
  20717. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20718. op_FL_ip_FR_weight = 0;
  20719. op_FR_ip_FL_weight = 0;
  20720. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20721. }
  20722. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20723. unsigned long copp =
  20724. session_copp_map[i]
  20725. [SESSION_TYPE_RX][be_index];
  20726. if (!test_bit(idx, &copp))
  20727. goto skip_send_custom_stereo;
  20728. topo_id = adm_get_topology_for_port_copp_idx(
  20729. msm_bedais[be_index].port_id, idx);
  20730. if (topo_id < 0)
  20731. pr_debug("%s:Err:custom stereo topo %d",
  20732. __func__, topo_id);
  20733. pr_debug("idx %d\n", idx);
  20734. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20735. rc = msm_ds2_dap_set_custom_stereo_onoff
  20736. (msm_bedais[be_index].port_id,
  20737. idx, is_custom_stereo_on);
  20738. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20739. rc = dolby_dap_set_custom_stereo_onoff(
  20740. msm_bedais[be_index].port_id,
  20741. idx, is_custom_stereo_on);
  20742. else
  20743. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20744. (msm_bedais[be_index].port_id,
  20745. idx, session_id,
  20746. op_FL_ip_FL_weight,
  20747. op_FL_ip_FR_weight,
  20748. op_FR_ip_FL_weight,
  20749. op_FR_ip_FR_weight);
  20750. if (rc < 0)
  20751. skip_send_custom_stereo:
  20752. pr_err("%s: err setting custom stereo\n",
  20753. __func__);
  20754. }
  20755. }
  20756. }
  20757. return 0;
  20758. }
  20759. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20760. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20761. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20762. msm_routing_put_stereo_to_custom_stereo_control),
  20763. };
  20764. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20765. struct snd_ctl_elem_value *ucontrol)
  20766. {
  20767. return 0;
  20768. }
  20769. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20770. struct snd_ctl_elem_value *ucontrol)
  20771. {
  20772. int i = 0, j;
  20773. int num_app_types = ucontrol->value.integer.value[i++];
  20774. pr_debug("%s\n", __func__);
  20775. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20776. sizeof(struct msm_pcm_routing_app_type_data));
  20777. if (num_app_types > MAX_APP_TYPES) {
  20778. pr_err("%s: number of app types exceed the max supported\n",
  20779. __func__);
  20780. return -EINVAL;
  20781. }
  20782. for (j = 0; j < num_app_types; j++) {
  20783. app_type_cfg[j].app_type =
  20784. ucontrol->value.integer.value[i++];
  20785. app_type_cfg[j].sample_rate =
  20786. ucontrol->value.integer.value[i++];
  20787. app_type_cfg[j].bit_width =
  20788. ucontrol->value.integer.value[i++];
  20789. }
  20790. return 0;
  20791. }
  20792. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20793. struct snd_ctl_elem_value *ucontrol)
  20794. {
  20795. int j, fe_id, be_id, port_type;
  20796. int ret = 0;
  20797. unsigned long copp;
  20798. struct msm_pcm_routing_bdai_data *bedai;
  20799. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20800. SESSION_TYPE_RX;
  20801. int app_type = ucontrol->value.integer.value[1];
  20802. int gain = (ucontrol->value.integer.value[2] +
  20803. ucontrol->value.integer.value[3])/2;
  20804. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20805. MSM_AFE_PORT_TYPE_TX;
  20806. mutex_lock(&routing_lock);
  20807. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20808. if (is_be_dai_extproc(be_id))
  20809. continue;
  20810. bedai = &msm_bedais[be_id];
  20811. if (afe_get_port_type(bedai->port_id) != port_type)
  20812. continue;
  20813. if (!bedai->active)
  20814. continue;
  20815. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20816. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20817. continue;
  20818. if (app_type !=
  20819. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20820. continue;
  20821. copp = session_copp_map[fe_id][dir][be_id];
  20822. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20823. if (!test_bit(j, &copp))
  20824. continue;
  20825. ret |= adm_set_volume(bedai->port_id, j, gain);
  20826. }
  20827. }
  20828. }
  20829. mutex_unlock(&routing_lock);
  20830. return ret ? -EINVAL : 0;
  20831. }
  20832. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20833. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20834. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20835. msm_routing_put_app_type_cfg_control),
  20836. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20837. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20838. };
  20839. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20840. struct snd_ctl_elem_value *ucontrol)
  20841. {
  20842. int copp_idx, fe_id, be_id, port_type;
  20843. int ret = 0;
  20844. unsigned long copp;
  20845. struct msm_pcm_routing_bdai_data *bedai;
  20846. u8 *packed_params = NULL;
  20847. struct param_hdr_v3 param_hdr;
  20848. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20849. sizeof(uint32_t));
  20850. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20851. SESSION_TYPE_RX;
  20852. int app_type = ucontrol->value.integer.value[1];
  20853. int module_id = ucontrol->value.integer.value[2];
  20854. int instance_id = ucontrol->value.integer.value[3];
  20855. int param_id = ucontrol->value.integer.value[4];
  20856. int param_value = ucontrol->value.integer.value[5];
  20857. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20858. MSM_AFE_PORT_TYPE_TX;
  20859. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20860. __func__, app_type, module_id,
  20861. instance_id, param_id, param_value);
  20862. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20863. if (!packed_params)
  20864. return -ENOMEM;
  20865. memset(&param_hdr, 0, sizeof(param_hdr));
  20866. param_hdr.module_id = module_id;
  20867. param_hdr.instance_id = instance_id;
  20868. param_hdr.param_id = param_id;
  20869. param_hdr.param_size = sizeof(uint32_t);
  20870. packed_param_size = 0;
  20871. mutex_lock(&routing_lock);
  20872. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20873. if (is_be_dai_extproc(be_id))
  20874. continue;
  20875. bedai = &msm_bedais[be_id];
  20876. if (afe_get_port_type(bedai->port_id) != port_type)
  20877. continue;
  20878. if (!bedai->active)
  20879. continue;
  20880. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20881. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20882. continue;
  20883. if (app_type !=
  20884. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20885. continue;
  20886. copp = session_copp_map[fe_id][dir][be_id];
  20887. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20888. copp_idx++) {
  20889. if (!test_bit(copp_idx, &copp))
  20890. continue;
  20891. ret = q6common_pack_pp_params(packed_params,
  20892. &param_hdr,
  20893. (u8 *) &param_value,
  20894. &packed_param_size);
  20895. if (ret) {
  20896. pr_err("%s: Failed to pack params, error %d\n",
  20897. __func__, ret);
  20898. goto done;
  20899. }
  20900. ret = adm_set_pp_params(bedai->port_id,
  20901. copp_idx, NULL,
  20902. packed_params,
  20903. packed_param_size);
  20904. if (ret) {
  20905. pr_err("%s: Setting param failed with err=%d\n",
  20906. __func__, ret);
  20907. ret = -EINVAL;
  20908. goto done;
  20909. }
  20910. }
  20911. }
  20912. }
  20913. done:
  20914. mutex_unlock(&routing_lock);
  20915. kfree(packed_params);
  20916. return ret;
  20917. }
  20918. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20919. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20920. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20921. };
  20922. static int msm_routing_get_lsm_app_type_cfg_control(
  20923. struct snd_kcontrol *kcontrol,
  20924. struct snd_ctl_elem_value *ucontrol)
  20925. {
  20926. int shift = ((struct soc_multi_mixer_control *)
  20927. kcontrol->private_value)->shift;
  20928. int i = 0, j = 0;
  20929. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20930. for (j = 0; j < num_app_cfg_types; ++j) {
  20931. ucontrol->value.integer.value[++i] =
  20932. lsm_app_type_cfg[j].app_type;
  20933. ucontrol->value.integer.value[++i] =
  20934. lsm_app_type_cfg[j].sample_rate;
  20935. ucontrol->value.integer.value[++i] =
  20936. lsm_app_type_cfg[j].bit_width;
  20937. if (shift == 1)
  20938. ucontrol->value.integer.value[++i] =
  20939. lsm_app_type_cfg[j].num_out_channels;
  20940. }
  20941. return 0;
  20942. }
  20943. static int msm_routing_put_lsm_app_type_cfg_control(
  20944. struct snd_kcontrol *kcontrol,
  20945. struct snd_ctl_elem_value *ucontrol)
  20946. {
  20947. int shift = ((struct soc_multi_mixer_control *)
  20948. kcontrol->private_value)->shift;
  20949. int i = 0, j;
  20950. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  20951. pr_err("%s: number of app types exceed the max supported\n",
  20952. __func__);
  20953. return -EINVAL;
  20954. }
  20955. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20956. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20957. sizeof(struct msm_pcm_routing_app_type_data));
  20958. for (j = 0; j < num_app_cfg_types; j++) {
  20959. lsm_app_type_cfg[j].app_type =
  20960. ucontrol->value.integer.value[i++];
  20961. lsm_app_type_cfg[j].sample_rate =
  20962. ucontrol->value.integer.value[i++];
  20963. lsm_app_type_cfg[j].bit_width =
  20964. ucontrol->value.integer.value[i++];
  20965. /* Shift of 1 indicates this is V2 mixer control */
  20966. if (shift == 1)
  20967. lsm_app_type_cfg[j].num_out_channels =
  20968. ucontrol->value.integer.value[i++];
  20969. }
  20970. return 0;
  20971. }
  20972. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20973. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20974. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20975. msm_routing_put_lsm_app_type_cfg_control),
  20976. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20977. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20978. msm_routing_put_lsm_app_type_cfg_control),
  20979. };
  20980. static int msm_routing_get_use_ds1_or_ds2_control(
  20981. struct snd_kcontrol *kcontrol,
  20982. struct snd_ctl_elem_value *ucontrol)
  20983. {
  20984. ucontrol->value.integer.value[0] = is_ds2_on;
  20985. return 0;
  20986. }
  20987. static int msm_routing_put_use_ds1_or_ds2_control(
  20988. struct snd_kcontrol *kcontrol,
  20989. struct snd_ctl_elem_value *ucontrol)
  20990. {
  20991. is_ds2_on = ucontrol->value.integer.value[0];
  20992. return 0;
  20993. }
  20994. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  20995. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  20996. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  20997. msm_routing_put_use_ds1_or_ds2_control),
  20998. };
  20999. static int msm_routing_get_hifi_filter_control(
  21000. struct snd_kcontrol *kcontrol,
  21001. struct snd_ctl_elem_value *ucontrol)
  21002. {
  21003. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21004. return 0;
  21005. }
  21006. static int msm_routing_put_hifi_filter_control(
  21007. struct snd_kcontrol *kcontrol,
  21008. struct snd_ctl_elem_value *ucontrol)
  21009. {
  21010. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21011. return 0;
  21012. }
  21013. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21014. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21015. 1, 0, msm_routing_get_hifi_filter_control,
  21016. msm_routing_put_hifi_filter_control),
  21017. };
  21018. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21019. struct snd_ctl_elem_value *ucontrol) {
  21020. int rc = 0;
  21021. int be_idx = 0;
  21022. char *param_value;
  21023. int *update_param_value;
  21024. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21025. struct param_hdr_v3 param_hdr;
  21026. param_value = kzalloc(param_size, GFP_KERNEL);
  21027. if (!param_value)
  21028. return -ENOMEM;
  21029. memset(&param_hdr, 0, sizeof(param_hdr));
  21030. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21031. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21032. break;
  21033. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21034. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21035. param_hdr.instance_id = INSTANCE_ID_0;
  21036. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21037. param_hdr.param_size = param_size;
  21038. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21039. NULL, &param_hdr, (u8 *) param_value);
  21040. if (rc) {
  21041. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21042. kfree(param_value);
  21043. return -EINVAL;
  21044. }
  21045. update_param_value = (int *)param_value;
  21046. ucontrol->value.integer.value[0] = update_param_value[0];
  21047. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21048. __func__, update_param_value[0]);
  21049. }
  21050. kfree(param_value);
  21051. return 0;
  21052. }
  21053. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21054. struct snd_ctl_elem_value *ucontrol)
  21055. {
  21056. voc_session_id = ucontrol->value.integer.value[0];
  21057. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21058. return 0;
  21059. }
  21060. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21061. struct snd_ctl_elem_value *ucontrol)
  21062. {
  21063. ucontrol->value.integer.value[0] = voc_session_id;
  21064. return 0;
  21065. }
  21066. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21067. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21068. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21069. msm_voc_session_id_put),
  21070. };
  21071. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21072. struct snd_ctl_elem_info *uinfo)
  21073. {
  21074. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21075. uinfo->count = sizeof(struct sound_focus_param);
  21076. return 0;
  21077. }
  21078. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21079. struct snd_ctl_elem_value *ucontrol)
  21080. {
  21081. int ret = 0;
  21082. struct sound_focus_param soundFocusData;
  21083. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21084. sizeof(struct sound_focus_param));
  21085. ret = voc_set_sound_focus(soundFocusData);
  21086. if (ret) {
  21087. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21088. __func__, ret);
  21089. ret = -EINVAL;
  21090. }
  21091. return ret;
  21092. }
  21093. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21094. struct snd_ctl_elem_value *ucontrol)
  21095. {
  21096. int ret = 0;
  21097. struct sound_focus_param soundFocusData;
  21098. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21099. ret = voc_get_sound_focus(&soundFocusData);
  21100. if (ret) {
  21101. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21102. __func__, ret);
  21103. ret = -EINVAL;
  21104. goto done;
  21105. }
  21106. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21107. sizeof(struct sound_focus_param));
  21108. done:
  21109. return ret;
  21110. }
  21111. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21112. struct snd_ctl_elem_info *uinfo)
  21113. {
  21114. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21115. uinfo->count = sizeof(struct source_tracking_param);
  21116. return 0;
  21117. }
  21118. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21119. struct snd_ctl_elem_value *ucontrol)
  21120. {
  21121. int ret = 0;
  21122. struct source_tracking_param sourceTrackingData;
  21123. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21124. ret = voc_get_source_tracking(&sourceTrackingData);
  21125. if (ret) {
  21126. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21127. __func__, ret);
  21128. ret = -EINVAL;
  21129. goto done;
  21130. }
  21131. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21132. sizeof(struct source_tracking_param));
  21133. done:
  21134. return ret;
  21135. }
  21136. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21137. int *copp_idx)
  21138. {
  21139. int i, idx, be_idx;
  21140. int ret = 0;
  21141. unsigned long copp;
  21142. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21143. ret = q6audio_validate_port(port_id);
  21144. if (ret < 0) {
  21145. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21146. __func__, port_id, ret);
  21147. ret = -EINVAL;
  21148. goto done;
  21149. }
  21150. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21151. if (msm_bedais[be_idx].port_id == port_id)
  21152. break;
  21153. }
  21154. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21155. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21156. ret = -EINVAL;
  21157. goto done;
  21158. }
  21159. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21160. MSM_FRONTEND_DAI_MAX) {
  21161. if (!(is_mm_lsm_fe_id(i) &&
  21162. route_check_fe_id_adm_support(i)))
  21163. continue;
  21164. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21165. copp = session_copp_map[i]
  21166. [session_type][be_idx];
  21167. if (test_bit(idx, &copp))
  21168. break;
  21169. }
  21170. if (idx >= MAX_COPPS_PER_PORT)
  21171. continue;
  21172. else
  21173. break;
  21174. }
  21175. if (i >= MSM_FRONTEND_DAI_MAX) {
  21176. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21177. ret = -EINVAL;
  21178. goto done;
  21179. }
  21180. *copp_idx = idx;
  21181. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21182. done:
  21183. return ret;
  21184. }
  21185. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21186. const char *prefix, int *port_id)
  21187. {
  21188. int ret = 0;
  21189. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21190. /*
  21191. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21192. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21193. * and compare the string with the backend name to derive the port id.
  21194. */
  21195. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21196. "SLIMBUS_0")) {
  21197. *port_id = SLIMBUS_0_TX;
  21198. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21199. "TERT_MI2S")) {
  21200. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21201. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21202. "INT3_MI2S")) {
  21203. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21204. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21205. "VA_CDC_DMA_TX_0")) {
  21206. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21207. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21208. "TX_CDC_DMA_TX_3")) {
  21209. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21210. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21211. "QUIN_TDM_TX_0")) {
  21212. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21213. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21214. "PRIMARY_TDM")) {
  21215. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21216. } else {
  21217. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21218. __func__, kcontrol->id.name);
  21219. ret = -EINVAL;
  21220. goto done;
  21221. }
  21222. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21223. __func__, kcontrol->id.name, *port_id);
  21224. done:
  21225. return ret;
  21226. }
  21227. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21228. struct snd_ctl_elem_value *ucontrol)
  21229. {
  21230. int ret = 0;
  21231. struct sound_focus_param soundFocusData;
  21232. int port_id, copp_idx;
  21233. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21234. "Sound Focus Audio Tx ", &port_id);
  21235. if (ret != 0) {
  21236. pr_err("%s: Error in deriving port id, err=%d\n",
  21237. __func__, ret);
  21238. ret = -EINVAL;
  21239. goto done;
  21240. }
  21241. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21242. &copp_idx);
  21243. if (ret) {
  21244. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21245. __func__, port_id);
  21246. ret = -EINVAL;
  21247. goto done;
  21248. }
  21249. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21250. sizeof(struct sound_focus_param));
  21251. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21252. if (ret) {
  21253. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21254. __func__, ret);
  21255. ret = -EINVAL;
  21256. goto done;
  21257. }
  21258. done:
  21259. return ret;
  21260. }
  21261. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21262. struct snd_ctl_elem_value *ucontrol)
  21263. {
  21264. int ret = 0;
  21265. struct sound_focus_param soundFocusData;
  21266. int port_id, copp_idx;
  21267. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21268. "Sound Focus Audio Tx ", &port_id);
  21269. if (ret) {
  21270. pr_err("%s: Error in deriving port id, err=%d\n",
  21271. __func__, ret);
  21272. ret = -EINVAL;
  21273. goto done;
  21274. }
  21275. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21276. &copp_idx);
  21277. if (ret) {
  21278. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21279. __func__, port_id);
  21280. ret = -EINVAL;
  21281. goto done;
  21282. }
  21283. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21284. if (ret) {
  21285. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21286. __func__, ret);
  21287. ret = -EINVAL;
  21288. goto done;
  21289. }
  21290. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21291. sizeof(struct sound_focus_param));
  21292. done:
  21293. return ret;
  21294. }
  21295. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21296. struct snd_ctl_elem_value *ucontrol)
  21297. {
  21298. int ret = 0;
  21299. struct source_tracking_param sourceTrackingData;
  21300. int port_id, copp_idx;
  21301. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21302. "Source Tracking Audio Tx ", &port_id);
  21303. if (ret) {
  21304. pr_err("%s: Error in deriving port id, err=%d\n",
  21305. __func__, ret);
  21306. ret = -EINVAL;
  21307. goto done;
  21308. }
  21309. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21310. &copp_idx);
  21311. if (ret) {
  21312. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21313. __func__, port_id);
  21314. ret = -EINVAL;
  21315. goto done;
  21316. }
  21317. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21318. if (ret) {
  21319. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21320. __func__, ret);
  21321. ret = -EINVAL;
  21322. goto done;
  21323. }
  21324. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21325. sizeof(struct source_tracking_param));
  21326. done:
  21327. return ret;
  21328. }
  21329. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21330. struct snd_ctl_elem_info *uinfo)
  21331. {
  21332. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21333. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21334. return 0;
  21335. }
  21336. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21337. struct snd_ctl_elem_value *ucontrol)
  21338. {
  21339. int ret = 0;
  21340. struct doa_tracking_mon_param doa_tracking_data;
  21341. int port_id, copp_idx;
  21342. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21343. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21344. "Doa Tracking Monitor Listen ", &port_id);
  21345. if (ret) {
  21346. pr_err("%s: Error in deriving port id, err=%d\n",
  21347. __func__, ret);
  21348. ret = -EINVAL;
  21349. goto done;
  21350. }
  21351. /*
  21352. * If copp id exists for given port id, query adm to get doa data.
  21353. * Else query afe for doa tracking params.
  21354. * This is to support in cases where LSM directly connects to
  21355. * AFE for FFNS.
  21356. */
  21357. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21358. &copp_idx);
  21359. if (!ret)
  21360. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21361. &doa_tracking_data);
  21362. else
  21363. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21364. if (ret) {
  21365. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21366. __func__, ret);
  21367. ret = -EINVAL;
  21368. goto done;
  21369. }
  21370. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21371. sizeof(struct doa_tracking_mon_param));
  21372. done:
  21373. return ret;
  21374. }
  21375. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21376. {
  21377. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21378. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21379. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21380. .info = msm_sound_focus_info,
  21381. .get = msm_voice_sound_focus_get,
  21382. .put = msm_voice_sound_focus_put,
  21383. },
  21384. {
  21385. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21386. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21387. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21388. .info = msm_source_tracking_info,
  21389. .get = msm_voice_source_tracking_get,
  21390. },
  21391. {
  21392. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21393. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21394. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21395. .info = msm_sound_focus_info,
  21396. .get = msm_audio_sound_focus_get,
  21397. .put = msm_audio_sound_focus_put,
  21398. },
  21399. {
  21400. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21401. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21402. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21403. .info = msm_source_tracking_info,
  21404. .get = msm_audio_source_tracking_get,
  21405. },
  21406. {
  21407. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21408. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21409. .name = "Sound Focus Voice Tx TERT_MI2S",
  21410. .info = msm_sound_focus_info,
  21411. .get = msm_voice_sound_focus_get,
  21412. .put = msm_voice_sound_focus_put,
  21413. },
  21414. {
  21415. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21416. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21417. .name = "Source Tracking Voice Tx TERT_MI2S",
  21418. .info = msm_source_tracking_info,
  21419. .get = msm_voice_source_tracking_get,
  21420. },
  21421. {
  21422. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21423. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21424. .name = "Sound Focus Audio Tx TERT_MI2S",
  21425. .info = msm_sound_focus_info,
  21426. .get = msm_audio_sound_focus_get,
  21427. .put = msm_audio_sound_focus_put,
  21428. },
  21429. {
  21430. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21432. .name = "Source Tracking Audio Tx TERT_MI2S",
  21433. .info = msm_source_tracking_info,
  21434. .get = msm_audio_source_tracking_get,
  21435. },
  21436. {
  21437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21438. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21439. .name = "Sound Focus Voice Tx INT3_MI2S",
  21440. .info = msm_sound_focus_info,
  21441. .get = msm_voice_sound_focus_get,
  21442. .put = msm_voice_sound_focus_put,
  21443. },
  21444. {
  21445. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21447. .name = "Source Tracking Voice Tx INT3_MI2S",
  21448. .info = msm_source_tracking_info,
  21449. .get = msm_voice_source_tracking_get,
  21450. },
  21451. {
  21452. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21453. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21454. .name = "Sound Focus Audio Tx INT3_MI2S",
  21455. .info = msm_sound_focus_info,
  21456. .get = msm_audio_sound_focus_get,
  21457. .put = msm_audio_sound_focus_put,
  21458. },
  21459. {
  21460. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21461. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21462. .name = "Source Tracking Audio Tx INT3_MI2S",
  21463. .info = msm_source_tracking_info,
  21464. .get = msm_audio_source_tracking_get,
  21465. },
  21466. {
  21467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21468. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21469. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21470. .info = msm_sound_focus_info,
  21471. .get = msm_voice_sound_focus_get,
  21472. .put = msm_voice_sound_focus_put,
  21473. },
  21474. {
  21475. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21477. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21478. .info = msm_source_tracking_info,
  21479. .get = msm_voice_source_tracking_get,
  21480. },
  21481. {
  21482. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21483. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21484. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21485. .info = msm_sound_focus_info,
  21486. .get = msm_audio_sound_focus_get,
  21487. .put = msm_audio_sound_focus_put,
  21488. },
  21489. {
  21490. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21492. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21493. .info = msm_source_tracking_info,
  21494. .get = msm_audio_source_tracking_get,
  21495. },
  21496. {
  21497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21498. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21499. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21500. .info = msm_sound_focus_info,
  21501. .get = msm_voice_sound_focus_get,
  21502. .put = msm_voice_sound_focus_put,
  21503. },
  21504. {
  21505. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21506. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21507. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21508. .info = msm_source_tracking_info,
  21509. .get = msm_voice_source_tracking_get,
  21510. },
  21511. {
  21512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21513. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21514. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21515. .info = msm_sound_focus_info,
  21516. .get = msm_audio_sound_focus_get,
  21517. .put = msm_audio_sound_focus_put,
  21518. },
  21519. {
  21520. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21522. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21523. .info = msm_source_tracking_info,
  21524. .get = msm_audio_source_tracking_get,
  21525. },
  21526. {
  21527. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21528. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21529. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21530. .info = msm_sound_focus_info,
  21531. .get = msm_voice_sound_focus_get,
  21532. .put = msm_voice_sound_focus_put,
  21533. },
  21534. {
  21535. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21537. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21538. .info = msm_source_tracking_info,
  21539. .get = msm_voice_source_tracking_get,
  21540. },
  21541. {
  21542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21543. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21544. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21545. .info = msm_sound_focus_info,
  21546. .get = msm_audio_sound_focus_get,
  21547. .put = msm_audio_sound_focus_put,
  21548. },
  21549. {
  21550. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21551. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21552. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21553. .info = msm_source_tracking_info,
  21554. .get = msm_audio_source_tracking_get,
  21555. },
  21556. {
  21557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21558. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21559. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21560. .info = msm_sound_focus_info,
  21561. .get = msm_audio_sound_focus_get,
  21562. .put = msm_audio_sound_focus_put,
  21563. },
  21564. {
  21565. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21567. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21568. .info = msm_source_tracking_info,
  21569. .get = msm_audio_source_tracking_get,
  21570. },
  21571. {
  21572. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21573. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21574. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21575. .info = msm_doa_tracking_mon_info,
  21576. .get = msm_doa_tracking_mon_get,
  21577. },
  21578. };
  21579. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21580. struct snd_ctl_elem_value *ucontrol)
  21581. {
  21582. int ret = 0;
  21583. int item;
  21584. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21585. pr_debug("%s item is %d\n", __func__,
  21586. ucontrol->value.enumerated.item[0]);
  21587. mutex_lock(&routing_lock);
  21588. item = ucontrol->value.enumerated.item[0];
  21589. if (item < e->items) {
  21590. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21591. __func__, e->shift_l, e->values[item]);
  21592. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21593. e->values[item] < MSM_BACKEND_DAI_MAX)
  21594. /* Enable feedback TX path */
  21595. ret = afe_spk_prot_feed_back_cfg(
  21596. msm_bedais[e->values[item]].port_id,
  21597. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21598. else {
  21599. pr_debug("%s values are out of range item %d\n",
  21600. __func__, e->values[item]);
  21601. /* Disable feedback TX path */
  21602. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21603. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21604. else
  21605. ret = -EINVAL;
  21606. }
  21607. } else {
  21608. pr_err("%s item value is out of range item\n", __func__);
  21609. ret = -EINVAL;
  21610. }
  21611. mutex_unlock(&routing_lock);
  21612. return ret;
  21613. }
  21614. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21615. struct snd_ctl_elem_value *ucontrol)
  21616. {
  21617. int ret = 0;
  21618. int item;
  21619. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21620. pr_debug("%s item is %d\n", __func__,
  21621. ucontrol->value.enumerated.item[0]);
  21622. mutex_lock(&routing_lock);
  21623. item = ucontrol->value.enumerated.item[0];
  21624. if (item < e->items) {
  21625. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21626. __func__, e->shift_l, e->values[item]);
  21627. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21628. e->values[item] < MSM_BACKEND_DAI_MAX)
  21629. /* Enable feedback TX path */
  21630. ret = afe_spk_prot_feed_back_cfg(
  21631. msm_bedais[e->values[item]].port_id,
  21632. msm_bedais[e->shift_l].port_id,
  21633. 1, 1, 1);
  21634. else {
  21635. pr_debug("%s values are out of range item %d\n",
  21636. __func__, e->values[item]);
  21637. /* Disable feedback TX path */
  21638. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21639. ret = afe_spk_prot_feed_back_cfg(0,
  21640. 0, 0, 0, 0);
  21641. else
  21642. ret = -EINVAL;
  21643. }
  21644. } else {
  21645. pr_err("%s item value is out of range item\n", __func__);
  21646. ret = -EINVAL;
  21647. }
  21648. mutex_unlock(&routing_lock);
  21649. return ret;
  21650. }
  21651. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21652. struct snd_ctl_elem_value *ucontrol)
  21653. {
  21654. pr_debug("%s\n", __func__);
  21655. return 0;
  21656. }
  21657. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21658. struct snd_ctl_elem_value *ucontrol)
  21659. {
  21660. pr_debug("%s\n", __func__);
  21661. ucontrol->value.enumerated.item[0] = 0;
  21662. return 0;
  21663. }
  21664. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21665. "ZERO", "SLIM4_TX"
  21666. };
  21667. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21668. "ZERO", "SLIM4_TX"
  21669. };
  21670. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21671. "ZERO", "WSA_CDC_DMA_TX_0"
  21672. };
  21673. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21674. "ZERO", "WSA_CDC_DMA_TX_0"
  21675. };
  21676. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21677. "ZERO", "SENARY_TX"
  21678. };
  21679. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21680. "ZERO", "INT5_MI2S_TX"
  21681. };
  21682. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21683. "ZERO", "INT5_MI2S_TX"
  21684. };
  21685. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21686. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21687. };
  21688. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21689. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21690. };
  21691. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21692. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21693. };
  21694. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21695. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21696. };
  21697. static const int mi2s_rx_vi_fb_tx_value[] = {
  21698. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21699. };
  21700. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21701. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21702. };
  21703. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21704. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21705. };
  21706. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21707. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21708. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21709. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21710. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21711. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21712. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21713. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21714. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21715. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21716. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21717. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21718. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21719. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21720. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21721. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21722. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21723. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21724. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21725. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21726. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21727. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21728. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21729. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21730. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21731. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21732. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21733. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21734. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21735. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21736. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21737. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21738. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21739. spkr_prot_put_vi_lch_port);
  21740. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21741. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21742. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21743. spkr_prot_put_vi_rch_port);
  21744. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21745. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21746. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21747. spkr_prot_put_vi_lch_port);
  21748. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21749. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21750. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21751. spkr_prot_put_vi_rch_port);
  21752. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21753. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21754. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21755. spkr_prot_put_vi_lch_port);
  21756. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21757. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21758. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21759. spkr_prot_put_vi_lch_port);
  21760. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21761. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21762. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21763. spkr_prot_put_vi_rch_port);
  21764. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21765. /* Frontend AIF */
  21766. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21767. * Stream name must contains substring of front-end dai name
  21768. */
  21769. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21770. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21771. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21772. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21773. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21774. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21775. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21776. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21777. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21778. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21779. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21780. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21781. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21782. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21783. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21784. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21785. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21786. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21787. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  21788. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21789. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21790. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21791. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21792. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21793. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21794. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21795. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  21796. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  21797. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  21798. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  21799. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  21800. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  21801. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  21802. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  21803. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  21804. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  21805. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  21806. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  21807. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  21808. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  21809. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  21810. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  21811. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  21812. "VoiceMMode1 Playback", 0, 0, 0, 0),
  21813. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  21814. "VoiceMMode1 Capture", 0, 0, 0, 0),
  21815. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  21816. "VoiceMMode2 Playback", 0, 0, 0, 0),
  21817. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  21818. "VoiceMMode2 Capture", 0, 0, 0, 0),
  21819. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  21820. 0, 0, 0, 0),
  21821. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21822. 0, 0, 0, 0),
  21823. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21824. 0, 0, 0, 0),
  21825. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21826. 0, 0, 0, 0),
  21827. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21828. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21829. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21830. 0, 0, 0, 0),
  21831. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21832. 0, 0, 0, 0),
  21833. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21834. 0, 0, 0, 0),
  21835. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21836. 0, 0, 0, 0),
  21837. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21838. 0, 0, 0, 0),
  21839. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21840. 0, 0, 0, 0),
  21841. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21842. 0, 0, 0, 0),
  21843. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21844. 0, 0, 0, 0),
  21845. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21846. 0, 0, 0, 0),
  21847. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21848. 0, 0, 0, 0),
  21849. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21850. 0, 0, 0, 0),
  21851. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21852. 0, 0, 0, 0),
  21853. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21854. 0, 0, 0, 0),
  21855. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21856. 0, 0, 0, 0),
  21857. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21858. 0, 0, 0, 0),
  21859. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21860. 0, 0, 0, 0),
  21861. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21862. 0, 0, 0, 0),
  21863. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21864. 0, 0, 0, 0),
  21865. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21866. 0, 0, 0, 0),
  21867. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21868. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21869. 0, 0, 0, 0),
  21870. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21871. "INT0 MI2S_RX Hostless Playback",
  21872. 0, 0, 0, 0),
  21873. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21874. "INT4 MI2S_RX Hostless Playback",
  21875. 0, 0, 0, 0),
  21876. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21877. "Primary MI2S_RX Hostless Playback",
  21878. 0, 0, 0, 0),
  21879. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21880. "Secondary MI2S_RX Hostless Playback",
  21881. 0, 0, 0, 0),
  21882. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21883. "Tertiary MI2S_RX Hostless Playback",
  21884. 0, 0, 0, 0),
  21885. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21886. "Quaternary MI2S_RX Hostless Playback",
  21887. 0, 0, 0, 0),
  21888. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21889. "Quinary MI2S_RX Hostless Playback",
  21890. 0, 0, 0, 0),
  21891. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21892. "Senary MI2S_RX Hostless Playback",
  21893. 0, 0, 0, 0),
  21894. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21895. 0, 0, 0, 0),
  21896. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21897. 0, 0, 0, 0),
  21898. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21899. 0, 0, 0, 0),
  21900. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21901. 0, 0, 0, 0),
  21902. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21903. 0, 0, 0, 0),
  21904. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21905. "INT3 MI2S_TX Hostless Capture",
  21906. 0, 0, 0, 0),
  21907. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21908. "Tertiary MI2S_TX Hostless Capture",
  21909. 0, 0, 0, 0),
  21910. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21911. "Secondary MI2S_TX Hostless Capture",
  21912. 0, 0, 0, 0),
  21913. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21914. "Primary MI2S_TX Hostless Capture",
  21915. 0, 0, 0, 0),
  21916. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21917. 0, 0, 0, 0),
  21918. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21919. 0, 0, 0, 0),
  21920. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21921. "Quaternary MI2S_TX Hostless Capture",
  21922. 0, 0, 0, 0),
  21923. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21924. "Quinary MI2S_TX Hostless Capture",
  21925. 0, 0, 0, 0),
  21926. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21927. "Senary MI2S_TX Hostless Capture",
  21928. 0, 0, 0, 0),
  21929. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21930. "Primary TDM0 Hostless Playback",
  21931. 0, 0, 0, 0),
  21932. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21933. "Primary TDM0 Hostless Capture",
  21934. 0, 0, 0, 0),
  21935. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21936. "Primary TDM1 Hostless Playback",
  21937. 0, 0, 0, 0),
  21938. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21939. "Primary TDM1 Hostless Capture",
  21940. 0, 0, 0, 0),
  21941. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21942. "Primary TDM2 Hostless Playback",
  21943. 0, 0, 0, 0),
  21944. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21945. "Primary TDM2 Hostless Capture",
  21946. 0, 0, 0, 0),
  21947. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21948. "Primary TDM3 Hostless Playback",
  21949. 0, 0, 0, 0),
  21950. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21951. "Primary TDM3 Hostless Capture",
  21952. 0, 0, 0, 0),
  21953. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21954. "Primary TDM4 Hostless Playback",
  21955. 0, 0, 0, 0),
  21956. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21957. "Primary TDM4 Hostless Capture",
  21958. 0, 0, 0, 0),
  21959. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21960. "Primary TDM5 Hostless Playback",
  21961. 0, 0, 0, 0),
  21962. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21963. "Primary TDM5 Hostless Capture",
  21964. 0, 0, 0, 0),
  21965. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21966. "Primary TDM6 Hostless Playback",
  21967. 0, 0, 0, 0),
  21968. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21969. "Primary TDM6 Hostless Capture",
  21970. 0, 0, 0, 0),
  21971. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21972. "Primary TDM7 Hostless Playback",
  21973. 0, 0, 0, 0),
  21974. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21975. "Primary TDM7 Hostless Capture",
  21976. 0, 0, 0, 0),
  21977. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21978. "Secondary TDM0 Hostless Playback",
  21979. 0, 0, 0, 0),
  21980. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21981. "Secondary TDM0 Hostless Capture",
  21982. 0, 0, 0, 0),
  21983. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21984. "Secondary TDM1 Hostless Playback",
  21985. 0, 0, 0, 0),
  21986. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  21987. "Secondary TDM1 Hostless Capture",
  21988. 0, 0, 0, 0),
  21989. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  21990. "Secondary TDM2 Hostless Playback",
  21991. 0, 0, 0, 0),
  21992. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  21993. "Secondary TDM2 Hostless Capture",
  21994. 0, 0, 0, 0),
  21995. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  21996. "Secondary TDM3 Hostless Playback",
  21997. 0, 0, 0, 0),
  21998. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  21999. "Secondary TDM3 Hostless Capture",
  22000. 0, 0, 0, 0),
  22001. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22002. "Secondary TDM4 Hostless Playback",
  22003. 0, 0, 0, 0),
  22004. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22005. "Secondary TDM4 Hostless Capture",
  22006. 0, 0, 0, 0),
  22007. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22008. "Secondary TDM5 Hostless Playback",
  22009. 0, 0, 0, 0),
  22010. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22011. "Secondary TDM5 Hostless Capture",
  22012. 0, 0, 0, 0),
  22013. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22014. "Secondary TDM6 Hostless Playback",
  22015. 0, 0, 0, 0),
  22016. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22017. "Secondary TDM6 Hostless Capture",
  22018. 0, 0, 0, 0),
  22019. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22020. "Secondary TDM7 Hostless Playback",
  22021. 0, 0, 0, 0),
  22022. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22023. "Secondary TDM7 Hostless Capture",
  22024. 0, 0, 0, 0),
  22025. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22026. "Tertiary TDM0 Hostless Playback",
  22027. 0, 0, 0, 0),
  22028. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22029. "Tertiary TDM0 Hostless Capture",
  22030. 0, 0, 0, 0),
  22031. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22032. "Tertiary TDM1 Hostless Playback",
  22033. 0, 0, 0, 0),
  22034. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22035. "Tertiary TDM1 Hostless Capture",
  22036. 0, 0, 0, 0),
  22037. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22038. "Tertiary TDM2 Hostless Playback",
  22039. 0, 0, 0, 0),
  22040. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22041. "Tertiary TDM2 Hostless Capture",
  22042. 0, 0, 0, 0),
  22043. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22044. "Tertiary TDM3 Hostless Playback",
  22045. 0, 0, 0, 0),
  22046. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22047. "Tertiary TDM3 Hostless Capture",
  22048. 0, 0, 0, 0),
  22049. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22050. "Tertiary TDM4 Hostless Playback",
  22051. 0, 0, 0, 0),
  22052. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22053. "Tertiary TDM4 Hostless Capture",
  22054. 0, 0, 0, 0),
  22055. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22056. "Tertiary TDM5 Hostless Playback",
  22057. 0, 0, 0, 0),
  22058. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22059. "Tertiary TDM5 Hostless Capture",
  22060. 0, 0, 0, 0),
  22061. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22062. "Tertiary TDM6 Hostless Playback",
  22063. 0, 0, 0, 0),
  22064. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22065. "Tertiary TDM6 Hostless Capture",
  22066. 0, 0, 0, 0),
  22067. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22068. "Tertiary TDM7 Hostless Playback",
  22069. 0, 0, 0, 0),
  22070. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22071. "Tertiary TDM7 Hostless Capture",
  22072. 0, 0, 0, 0),
  22073. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22074. "Quaternary TDM0 Hostless Playback",
  22075. 0, 0, 0, 0),
  22076. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22077. "Quaternary TDM0 Hostless Capture",
  22078. 0, 0, 0, 0),
  22079. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22080. "Quaternary TDM1 Hostless Playback",
  22081. 0, 0, 0, 0),
  22082. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22083. "Quaternary TDM1 Hostless Capture",
  22084. 0, 0, 0, 0),
  22085. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22086. "Quaternary TDM2 Hostless Playback",
  22087. 0, 0, 0, 0),
  22088. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22089. "Quaternary TDM2 Hostless Capture",
  22090. 0, 0, 0, 0),
  22091. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22092. "Quaternary TDM3 Hostless Playback",
  22093. 0, 0, 0, 0),
  22094. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22095. "Quaternary TDM3 Hostless Capture",
  22096. 0, 0, 0, 0),
  22097. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22098. "Quaternary TDM4 Hostless Playback",
  22099. 0, 0, 0, 0),
  22100. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22101. "Quaternary TDM4 Hostless Capture",
  22102. 0, 0, 0, 0),
  22103. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22104. "Quaternary TDM5 Hostless Playback",
  22105. 0, 0, 0, 0),
  22106. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22107. "Quaternary TDM5 Hostless Capture",
  22108. 0, 0, 0, 0),
  22109. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22110. "Quaternary TDM6 Hostless Playback",
  22111. 0, 0, 0, 0),
  22112. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22113. "Quaternary TDM6 Hostless Capture",
  22114. 0, 0, 0, 0),
  22115. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22116. "Quaternary TDM7 Hostless Playback",
  22117. 0, 0, 0, 0),
  22118. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22119. "Quaternary TDM7 Hostless Capture",
  22120. 0, 0, 0, 0),
  22121. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22122. "Quinary TDM0 Hostless Playback",
  22123. 0, 0, 0, 0),
  22124. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22125. "Quinary TDM0 Hostless Capture",
  22126. 0, 0, 0, 0),
  22127. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22128. "Quinary TDM1 Hostless Playback",
  22129. 0, 0, 0, 0),
  22130. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22131. "Quinary TDM1 Hostless Capture",
  22132. 0, 0, 0, 0),
  22133. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22134. "Quinary TDM2 Hostless Playback",
  22135. 0, 0, 0, 0),
  22136. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22137. "Quinary TDM2 Hostless Capture",
  22138. 0, 0, 0, 0),
  22139. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22140. "Quinary TDM3 Hostless Playback",
  22141. 0, 0, 0, 0),
  22142. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22143. "Quinary TDM3 Hostless Capture",
  22144. 0, 0, 0, 0),
  22145. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22146. "Quinary TDM4 Hostless Playback",
  22147. 0, 0, 0, 0),
  22148. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22149. "Quinary TDM4 Hostless Capture",
  22150. 0, 0, 0, 0),
  22151. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22152. "Quinary TDM5 Hostless Playback",
  22153. 0, 0, 0, 0),
  22154. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22155. "Quinary TDM5 Hostless Capture",
  22156. 0, 0, 0, 0),
  22157. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22158. "Quinary TDM6 Hostless Playback",
  22159. 0, 0, 0, 0),
  22160. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22161. "Quinary TDM6 Hostless Capture",
  22162. 0, 0, 0, 0),
  22163. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22164. "Quinary TDM7 Hostless Playback",
  22165. 0, 0, 0, 0),
  22166. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22167. "Quinary TDM7 Hostless Capture",
  22168. 0, 0, 0, 0),
  22169. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22170. "Senary TDM0 Hostless Playback",
  22171. 0, 0, 0, 0),
  22172. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22173. "Senary TDM0 Hostless Capture",
  22174. 0, 0, 0, 0),
  22175. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22176. "Senary TDM1 Hostless Playback",
  22177. 0, 0, 0, 0),
  22178. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22179. "Senary TDM1 Hostless Capture",
  22180. 0, 0, 0, 0),
  22181. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22182. "Senary TDM2 Hostless Playback",
  22183. 0, 0, 0, 0),
  22184. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22185. "Senary TDM2 Hostless Capture",
  22186. 0, 0, 0, 0),
  22187. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22188. "Senary TDM3 Hostless Playback",
  22189. 0, 0, 0, 0),
  22190. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22191. "Senary TDM3 Hostless Capture",
  22192. 0, 0, 0, 0),
  22193. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22194. "Senary TDM4 Hostless Playback",
  22195. 0, 0, 0, 0),
  22196. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22197. "Senary TDM4 Hostless Capture",
  22198. 0, 0, 0, 0),
  22199. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22200. "Senary TDM5 Hostless Playback",
  22201. 0, 0, 0, 0),
  22202. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22203. "Senary TDM5 Hostless Capture",
  22204. 0, 0, 0, 0),
  22205. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22206. "Senary TDM6 Hostless Playback",
  22207. 0, 0, 0, 0),
  22208. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22209. "Senary TDM6 Hostless Capture",
  22210. 0, 0, 0, 0),
  22211. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22212. "Senary TDM7 Hostless Playback",
  22213. 0, 0, 0, 0),
  22214. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22215. "Senary TDM7 Hostless Capture",
  22216. 0, 0, 0, 0),
  22217. /* LSM */
  22218. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22219. 0, 0, 0, 0),
  22220. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22221. 0, 0, 0, 0),
  22222. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22223. 0, 0, 0, 0),
  22224. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22225. 0, 0, 0, 0),
  22226. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22227. 0, 0, 0, 0),
  22228. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22229. 0, 0, 0, 0),
  22230. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22231. 0, 0, 0, 0),
  22232. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22233. 0, 0, 0, 0),
  22234. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22235. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22236. /* Backend AIF */
  22237. /* Stream name equals to backend dai link stream name */
  22238. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22239. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22240. 0, 0, 0, 0),
  22241. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22242. 0, 0, 0, 0),
  22243. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22244. 0, 0, 0, 0),
  22245. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22246. 0, 0, 0, 0),
  22247. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22248. 0, 0, 0, 0),
  22249. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22250. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22251. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22252. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22253. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22254. 0, 0, 0, 0),
  22255. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22256. 0, 0, 0, 0),
  22257. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22258. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22259. 0, 0, 0, 0),
  22260. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22261. 0, 0, 0, 0),
  22262. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22263. 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22265. "Secondary MI2S Playback SD1",
  22266. 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22268. 0, 0, 0, 0),
  22269. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22270. 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22272. 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22274. 0, 0, 0, 0),
  22275. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22276. 0, 0, 0, 0),
  22277. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22278. 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22280. 0, 0, 0, 0),
  22281. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22282. 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22284. 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22286. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22287. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22288. 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22290. 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22292. 0, 0, 0, 0),
  22293. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22294. 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22296. 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22298. 0, 0, 0, 0),
  22299. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22300. 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22302. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22304. 0, 0, 0, 0),
  22305. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22306. 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22308. 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22310. 0, 0, 0, 0),
  22311. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22312. 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22316. 0, 0, 0, 0),
  22317. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22322. 0, 0, 0, 0),
  22323. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22328. 0, 0, 0, 0),
  22329. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22334. 0, 0, 0, 0),
  22335. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22340. 0, 0, 0, 0),
  22341. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22346. 0, 0, 0, 0),
  22347. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22348. 0, 0, 0, 0),
  22349. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22352. 0, 0, 0, 0),
  22353. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22354. 0, 0, 0, 0),
  22355. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22356. 0, 0, 0, 0),
  22357. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22358. 0, 0, 0, 0),
  22359. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22360. 0, 0, 0, 0),
  22361. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22362. 0, 0, 0, 0),
  22363. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22364. 0, 0, 0, 0),
  22365. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22366. 0, 0, 0, 0),
  22367. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22368. 0, 0, 0, 0),
  22369. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22370. 0, 0, 0, 0),
  22371. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22372. 0, 0, 0, 0),
  22373. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22374. 0, 0, 0, 0),
  22375. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22376. 0, 0, 0, 0),
  22377. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22378. 0, 0, 0, 0),
  22379. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22380. 0, 0, 0, 0),
  22381. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22382. 0, 0, 0, 0),
  22383. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22384. 0, 0, 0, 0),
  22385. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22386. 0, 0, 0, 0),
  22387. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22388. 0, 0, 0, 0),
  22389. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22390. 0, 0, 0, 0),
  22391. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22392. 0, 0, 0, 0),
  22393. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22394. 0, 0, 0, 0),
  22395. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22396. 0, 0, 0, 0),
  22397. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22398. 0, 0, 0, 0),
  22399. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22400. 0, 0, 0, 0),
  22401. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22402. 0, 0, 0, 0),
  22403. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22404. 0, 0, 0, 0),
  22405. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22406. 0, 0, 0, 0),
  22407. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22408. 0, 0, 0, 0),
  22409. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22410. 0, 0, 0, 0),
  22411. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22412. 0, 0, 0, 0),
  22413. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22414. 0, 0, 0, 0),
  22415. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22418. 0, 0, 0, 0),
  22419. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22420. 0, 0, 0, 0),
  22421. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22424. 0, 0, 0, 0),
  22425. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22426. 0, 0, 0, 0),
  22427. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22430. 0, 0, 0, 0),
  22431. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22432. 0, 0, 0, 0),
  22433. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22434. 0, 0, 0, 0),
  22435. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22436. 0, 0, 0, 0),
  22437. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22438. 0, 0, 0, 0),
  22439. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22440. 0, 0, 0, 0),
  22441. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22442. 0, 0, 0, 0),
  22443. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22444. 0, 0, 0, 0),
  22445. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22448. 0, 0, 0, 0),
  22449. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22450. 0, 0, 0, 0),
  22451. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22454. 0, 0, 0, 0),
  22455. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22456. 0, 0, 0, 0),
  22457. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22460. 0, 0, 0, 0),
  22461. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22462. 0, 0, 0, 0),
  22463. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22466. 0, 0, 0, 0),
  22467. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22468. 0, 0, 0, 0),
  22469. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22472. 0, 0, 0, 0),
  22473. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22474. 0, 0, 0, 0),
  22475. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22478. 0, 0, 0, 0),
  22479. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22480. 0, 0, 0, 0),
  22481. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22484. 0, 0, 0, 0),
  22485. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22490. 0, 0, 0, 0),
  22491. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22496. 0, 0, 0, 0),
  22497. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22498. 0, 0, 0, 0),
  22499. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22502. 0, 0, 0, 0),
  22503. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22504. 0, 0, 0, 0),
  22505. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22506. 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22508. 0, 0, 0, 0),
  22509. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22510. 0, 0, 0, 0),
  22511. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22514. 0, 0, 0, 0),
  22515. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22516. 0, 0, 0, 0),
  22517. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22520. 0, 0, 0, 0),
  22521. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22526. 0, 0, 0, 0),
  22527. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22528. 0, 0, 0, 0),
  22529. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22532. 0, 0, 0, 0),
  22533. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22534. 0, 0, 0, 0),
  22535. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22538. 0, 0, 0, 0),
  22539. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22540. 0, 0, 0, 0),
  22541. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22544. 0, 0, 0, 0),
  22545. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22546. 0, 0, 0, 0),
  22547. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22548. 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22550. 0, 0, 0, 0),
  22551. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22552. 0, 0, 0, 0),
  22553. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22554. 0, 0, 0, 0),
  22555. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22556. 0, 0, 0, 0),
  22557. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22558. 0, 0, 0, 0),
  22559. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22560. 0, 0, 0, 0),
  22561. /* incall */
  22562. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22563. 0, 0, 0, 0),
  22564. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22565. 0, 0, 0, 0),
  22566. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22567. 0, 0, 0, 0),
  22568. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22569. 0, 0, 0, 0),
  22570. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22571. 0, 0, 0, 0),
  22572. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22573. 0, 0, 0, 0),
  22574. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22575. 0, 0, 0, 0),
  22576. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22577. 0, 0, 0, 0),
  22578. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22579. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22580. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22581. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22582. 0, 0, 0, 0),
  22583. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22584. 0, 0, 0, 0),
  22585. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22586. 0, 0, 0, 0),
  22587. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22588. 0, 0, 0, 0),
  22589. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22590. 0, 0, 0, 0),
  22591. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22592. 0, 0, 0, 0),
  22593. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22594. 0, 0, 0, 0),
  22595. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22596. 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22598. 0, 0, 0, 0),
  22599. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22600. 0, 0, 0, 0),
  22601. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22602. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22604. 0, 0, 0, 0),
  22605. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22606. 0, 0, 0, 0),
  22607. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22608. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22610. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22611. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22612. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22613. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22614. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22616. /* In- call recording */
  22617. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22618. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22619. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22620. 0, 0, 0, 0),
  22621. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22622. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22623. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22624. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22625. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22626. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22627. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22628. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22629. /* Switch Definitions */
  22630. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22631. &slim_fm_switch_mixer_controls),
  22632. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22633. &slim1_fm_switch_mixer_controls),
  22634. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22635. &slim3_fm_switch_mixer_controls),
  22636. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22637. &slim4_fm_switch_mixer_controls),
  22638. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22639. &slim6_fm_switch_mixer_controls),
  22640. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22641. &pcm_rx_switch_mixer_controls),
  22642. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22643. &int0_mi2s_rx_switch_mixer_controls),
  22644. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22645. &int4_mi2s_rx_switch_mixer_controls),
  22646. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22647. &pri_mi2s_rx_switch_mixer_controls),
  22648. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22649. &sec_mi2s_rx_switch_mixer_controls),
  22650. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22651. &tert_mi2s_rx_switch_mixer_controls),
  22652. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22653. &quat_mi2s_rx_switch_mixer_controls),
  22654. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22655. &quin_mi2s_rx_switch_mixer_controls),
  22656. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22657. &sco_slim7_switch_mixer_controls),
  22658. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22659. &sen_mi2s_rx_switch_mixer_controls),
  22660. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22661. &hfp_pri_aux_switch_mixer_controls),
  22662. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22663. &hfp_aux_switch_mixer_controls),
  22664. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22665. &hfp_int_switch_mixer_controls),
  22666. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22667. &hfp_slim7_switch_mixer_controls),
  22668. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22669. &usb_switch_mixer_controls),
  22670. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22671. &a2dp_slim7_switch_mixer_controls),
  22672. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22673. &cdc_dma_wsa_switch_mixer_controls),
  22674. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22675. &cdc_dma_rx_switch_mixer_controls),
  22676. /* Mixer definitions */
  22677. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22678. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22679. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22680. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22681. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22682. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22683. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22684. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22685. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22686. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22687. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22688. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22689. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22690. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22691. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22692. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22693. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22694. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22695. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22696. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22697. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22698. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22699. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22700. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22701. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22702. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22703. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22704. quaternary_mi2s_rx_mixer_controls,
  22705. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22706. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22707. tertiary_mi2s_rx_mixer_controls,
  22708. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22709. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22710. secondary_mi2s_rx_mixer_controls,
  22711. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22712. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22713. secondary_mi2s_rx2_mixer_controls,
  22714. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22715. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22716. primary_mi2s_rx_mixer_controls,
  22717. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22718. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22719. int0_mi2s_rx_mixer_controls,
  22720. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22721. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22722. int4_mi2s_rx_mixer_controls,
  22723. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22724. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22725. quinary_mi2s_rx_mixer_controls,
  22726. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22727. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22728. senary_mi2s_rx_mixer_controls,
  22729. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22730. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22731. pri_tdm_rx_0_mixer_controls,
  22732. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22733. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22734. pri_tdm_rx_1_mixer_controls,
  22735. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22736. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22737. pri_tdm_rx_2_mixer_controls,
  22738. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22739. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22740. pri_tdm_rx_3_mixer_controls,
  22741. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22742. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22743. pri_tdm_tx_0_mixer_controls,
  22744. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22745. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22746. sec_tdm_rx_0_mixer_controls,
  22747. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22748. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22749. sec_tdm_rx_1_mixer_controls,
  22750. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22751. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22752. sec_tdm_rx_2_mixer_controls,
  22753. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22754. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22755. sec_tdm_rx_3_mixer_controls,
  22756. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22757. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22758. sec_tdm_tx_0_mixer_controls,
  22759. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22760. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22761. tert_tdm_rx_0_mixer_controls,
  22762. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22763. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22764. tert_tdm_tx_0_mixer_controls,
  22765. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22766. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22767. tert_tdm_rx_1_mixer_controls,
  22768. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22769. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22770. tert_tdm_rx_2_mixer_controls,
  22771. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22772. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22773. tert_tdm_rx_3_mixer_controls,
  22774. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22775. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22776. tert_tdm_rx_4_mixer_controls,
  22777. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22778. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22779. quat_tdm_rx_0_mixer_controls,
  22780. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22781. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22782. quat_tdm_tx_0_mixer_controls,
  22783. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22784. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22785. quat_tdm_rx_1_mixer_controls,
  22786. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22787. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22788. quat_tdm_rx_2_mixer_controls,
  22789. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22790. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22791. quat_tdm_rx_3_mixer_controls,
  22792. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22793. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22794. quin_tdm_rx_0_mixer_controls,
  22795. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  22796. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22797. quin_tdm_tx_0_mixer_controls,
  22798. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  22799. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22800. quin_tdm_rx_1_mixer_controls,
  22801. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  22802. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22803. quin_tdm_rx_2_mixer_controls,
  22804. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  22805. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22806. quin_tdm_rx_3_mixer_controls,
  22807. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  22808. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22809. sen_tdm_tx_0_mixer_controls,
  22810. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  22811. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22812. sen_tdm_rx_0_mixer_controls,
  22813. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  22814. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22815. sen_tdm_rx_1_mixer_controls,
  22816. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  22817. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22818. sen_tdm_rx_2_mixer_controls,
  22819. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  22820. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22821. sen_tdm_rx_3_mixer_controls,
  22822. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  22823. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22824. pri_meta_mi2s_rx_mixer_controls,
  22825. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  22826. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22827. sec_meta_mi2s_rx_mixer_controls,
  22828. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  22829. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22830. wsa_cdc_dma_rx_0_mixer_controls,
  22831. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22832. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22833. wsa_cdc_dma_rx_1_mixer_controls,
  22834. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22835. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22836. rx_cdc_dma_rx_0_mixer_controls,
  22837. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22838. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22839. rx_cdc_dma_rx_1_mixer_controls,
  22840. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22841. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22842. rx_cdc_dma_rx_2_mixer_controls,
  22843. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22844. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22845. rx_cdc_dma_rx_3_mixer_controls,
  22846. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22847. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22848. rx_cdc_dma_rx_4_mixer_controls,
  22849. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22850. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22851. rx_cdc_dma_rx_5_mixer_controls,
  22852. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22853. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22854. rx_cdc_dma_rx_6_mixer_controls,
  22855. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22856. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22857. rx_cdc_dma_rx_7_mixer_controls,
  22858. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22859. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22860. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22861. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22862. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22863. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22864. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22865. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22866. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22867. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22868. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22869. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22870. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22871. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22872. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22873. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22874. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22875. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22876. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22877. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22878. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22879. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22880. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22881. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22882. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22883. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22884. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22885. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22886. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22887. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22888. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22889. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  22890. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  22891. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22892. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22893. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22894. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22895. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22896. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22897. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  22898. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  22899. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22900. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22901. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22902. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22903. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22904. tert_auxpcm_rx_mixer_controls,
  22905. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22906. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22907. quat_auxpcm_rx_mixer_controls,
  22908. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22909. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22910. quin_auxpcm_rx_mixer_controls,
  22911. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22912. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22913. sen_auxpcm_rx_mixer_controls,
  22914. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22915. /* incall */
  22916. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22917. incall_music_delivery_mixer_controls,
  22918. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22919. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22920. incall_music2_delivery_mixer_controls,
  22921. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22922. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22923. slimbus_4_rx_mixer_controls,
  22924. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22925. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22926. slimbus_6_rx_mixer_controls,
  22927. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22928. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22929. usb_audio_rx_mixer_controls,
  22930. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22931. /* Voice Mixer */
  22932. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22933. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22934. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22935. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22936. SND_SOC_NOPM, 0, 0,
  22937. sec_i2s_rx_voice_mixer_controls,
  22938. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22939. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22940. SND_SOC_NOPM, 0, 0,
  22941. sec_mi2s_rx_voice_mixer_controls,
  22942. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22943. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22944. SND_SOC_NOPM, 0, 0,
  22945. slimbus_rx_voice_mixer_controls,
  22946. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22947. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22948. SND_SOC_NOPM, 0, 0,
  22949. bt_sco_rx_voice_mixer_controls,
  22950. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22951. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22952. SND_SOC_NOPM, 0, 0,
  22953. afe_pcm_rx_voice_mixer_controls,
  22954. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22955. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22956. SND_SOC_NOPM, 0, 0,
  22957. aux_pcm_rx_voice_mixer_controls,
  22958. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22959. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22960. SND_SOC_NOPM, 0, 0,
  22961. sec_aux_pcm_rx_voice_mixer_controls,
  22962. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22963. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22964. SND_SOC_NOPM, 0, 0,
  22965. tert_aux_pcm_rx_voice_mixer_controls,
  22966. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22967. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22968. SND_SOC_NOPM, 0, 0,
  22969. quat_aux_pcm_rx_voice_mixer_controls,
  22970. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22971. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22972. SND_SOC_NOPM, 0, 0,
  22973. quin_aux_pcm_rx_voice_mixer_controls,
  22974. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22975. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22976. SND_SOC_NOPM, 0, 0,
  22977. sen_aux_pcm_rx_voice_mixer_controls,
  22978. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22979. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22980. SND_SOC_NOPM, 0, 0,
  22981. hdmi_rx_voice_mixer_controls,
  22982. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22983. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22984. SND_SOC_NOPM, 0, 0,
  22985. mi2s_rx_voice_mixer_controls,
  22986. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  22987. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  22988. SND_SOC_NOPM, 0, 0,
  22989. pri_mi2s_rx_voice_mixer_controls,
  22990. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  22991. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  22992. SND_SOC_NOPM, 0, 0,
  22993. int0_mi2s_rx_voice_mixer_controls,
  22994. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  22995. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  22996. SND_SOC_NOPM, 0, 0,
  22997. int4_mi2s_rx_voice_mixer_controls,
  22998. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  22999. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23000. SND_SOC_NOPM, 0, 0,
  23001. tert_mi2s_rx_voice_mixer_controls,
  23002. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23003. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23004. SND_SOC_NOPM, 0, 0,
  23005. quat_mi2s_rx_voice_mixer_controls,
  23006. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23007. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23008. SND_SOC_NOPM, 0, 0,
  23009. quin_mi2s_rx_voice_mixer_controls,
  23010. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23011. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23012. SND_SOC_NOPM, 0, 0,
  23013. pri_tdm_rx_0_voice_mixer_controls,
  23014. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23015. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23016. SND_SOC_NOPM, 0, 0,
  23017. pri_tdm_rx_1_voice_mixer_controls,
  23018. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23019. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23020. SND_SOC_NOPM, 0, 0,
  23021. pri_tdm_rx_2_voice_mixer_controls,
  23022. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23023. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23024. SND_SOC_NOPM, 0, 0,
  23025. pri_tdm_rx_3_voice_mixer_controls,
  23026. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23027. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23028. SND_SOC_NOPM, 0, 0,
  23029. sen_mi2s_rx_voice_mixer_controls,
  23030. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23031. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23032. SND_SOC_NOPM, 0, 0,
  23033. quat_tdm_rx_2_voice_mixer_controls,
  23034. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23035. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23036. SND_SOC_NOPM, 0, 0,
  23037. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23038. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23039. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23040. SND_SOC_NOPM, 0, 0,
  23041. rx_cdc_dma_rx_0_voice_mixer_controls,
  23042. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23043. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23044. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23045. ARRAY_SIZE(tx_voip_mixer_controls)),
  23046. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23047. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23048. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23049. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23050. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23051. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23052. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23053. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23054. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23055. int_bt_a2dp_rx_mixer_controls,
  23056. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23057. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23058. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23059. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23060. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23061. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23062. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23063. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23064. tx_voice2_stub_mixer_controls,
  23065. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23066. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23067. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23068. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23069. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23070. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23071. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23072. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23073. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23074. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23075. SND_SOC_NOPM, 0, 0,
  23076. slimbus_6_rx_voice_mixer_controls,
  23077. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23078. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23079. slimbus_7_rx_voice_mixer_controls,
  23080. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23081. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23082. slimbus_8_rx_voice_mixer_controls,
  23083. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23084. /* port mixer */
  23085. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23086. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23087. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23088. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23089. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23090. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23091. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23092. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23093. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23094. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23095. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23096. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23097. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23098. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23099. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23100. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23101. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23102. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23103. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23104. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23105. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23106. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23107. sbus_1_rx_port_mixer_controls,
  23108. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23109. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23110. bt_sco_rx_port_mixer_controls,
  23111. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23112. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23113. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23114. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23115. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23116. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23117. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23118. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23119. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23120. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23121. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23122. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23123. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23124. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23125. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23126. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23127. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23128. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23129. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23130. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23131. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23132. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23133. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23134. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23135. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23136. primary_mi2s_rx_port_mixer_controls,
  23137. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23138. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23139. sec_mi2s_rx_port_mixer_controls,
  23140. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23141. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23142. tert_mi2s_rx_port_mixer_controls,
  23143. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23144. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23145. quat_mi2s_rx_port_mixer_controls,
  23146. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23147. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23148. quin_mi2s_rx_port_mixer_controls,
  23149. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23150. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23151. sen_mi2s_rx_port_mixer_controls,
  23152. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23153. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23154. pri_tdm_rx_0_port_mixer_controls,
  23155. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23156. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23157. pri_tdm_rx_1_port_mixer_controls,
  23158. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23159. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23160. pri_tdm_rx_2_port_mixer_controls,
  23161. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23162. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23163. pri_tdm_rx_3_port_mixer_controls,
  23164. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23165. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23166. sec_tdm_rx_0_port_mixer_controls,
  23167. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23168. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23169. sec_tdm_rx_1_port_mixer_controls,
  23170. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23171. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23172. sec_tdm_rx_2_port_mixer_controls,
  23173. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23174. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23175. sec_tdm_rx_3_port_mixer_controls,
  23176. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23177. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23178. sec_tdm_rx_7_port_mixer_controls,
  23179. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23180. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23181. tert_tdm_rx_0_port_mixer_controls,
  23182. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23183. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23184. tert_tdm_rx_1_port_mixer_controls,
  23185. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23186. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23187. tert_tdm_rx_2_port_mixer_controls,
  23188. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23189. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23190. tert_tdm_rx_3_port_mixer_controls,
  23191. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23192. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23193. quat_tdm_rx_0_port_mixer_controls,
  23194. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23195. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23196. quat_tdm_rx_1_port_mixer_controls,
  23197. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23198. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23199. quat_tdm_rx_2_port_mixer_controls,
  23200. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23201. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23202. quat_tdm_rx_3_port_mixer_controls,
  23203. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23204. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23205. quat_tdm_rx_7_port_mixer_controls,
  23206. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23207. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23208. quin_tdm_rx_0_port_mixer_controls,
  23209. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23210. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23211. quin_tdm_rx_1_port_mixer_controls,
  23212. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23213. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23214. quin_tdm_rx_2_port_mixer_controls,
  23215. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23216. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23217. quin_tdm_rx_3_port_mixer_controls,
  23218. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23219. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23220. quin_tdm_rx_7_port_mixer_controls,
  23221. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23222. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23223. sen_tdm_rx_0_port_mixer_controls,
  23224. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23225. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23226. sen_tdm_rx_1_port_mixer_controls,
  23227. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23228. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23229. sen_tdm_rx_2_port_mixer_controls,
  23230. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23231. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23232. sen_tdm_rx_3_port_mixer_controls,
  23233. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23234. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23235. int0_mi2s_rx_port_mixer_controls,
  23236. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23237. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23238. int4_mi2s_rx_port_mixer_controls,
  23239. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23240. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23241. wsa_cdc_dma_rx_0_port_mixer_controls,
  23242. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23243. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23244. rx_cdc_dma_rx_0_port_mixer_controls,
  23245. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23246. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23247. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23248. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23249. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23250. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23251. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23252. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23253. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23254. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23255. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23256. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23257. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23258. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23259. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23260. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23261. /* lsm mixer definitions */
  23262. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23263. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23264. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23265. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23266. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23267. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23268. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23269. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23270. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23271. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23272. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23273. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23274. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23275. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23276. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23277. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23278. /* Virtual Pins to force backends ON atm */
  23279. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23280. SND_SOC_DAPM_INPUT("BE_IN"),
  23281. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23282. &slim0_rx_vi_fb_lch_mux),
  23283. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23284. &slim0_rx_vi_fb_rch_mux),
  23285. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23286. &wsa_rx_0_vi_fb_lch_mux),
  23287. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23288. &wsa_rx_0_vi_fb_rch_mux),
  23289. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23290. &mi2s_rx_vi_fb_mux),
  23291. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23292. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23293. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23294. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23295. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23296. &voc_ext_ec_mux),
  23297. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23298. &ext_ec_ref_mux_ul1),
  23299. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23300. &ext_ec_ref_mux_ul2),
  23301. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23302. &ext_ec_ref_mux_ul3),
  23303. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23304. &ext_ec_ref_mux_ul4),
  23305. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23306. &ext_ec_ref_mux_ul5),
  23307. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23308. &ext_ec_ref_mux_ul6),
  23309. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23310. &ext_ec_ref_mux_ul8),
  23311. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23312. &ext_ec_ref_mux_ul9),
  23313. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23314. &ext_ec_ref_mux_ul10),
  23315. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23316. &ext_ec_ref_mux_ul16),
  23317. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23318. &ext_ec_ref_mux_ul17),
  23319. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23320. &ext_ec_ref_mux_ul18),
  23321. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23322. &ext_ec_ref_mux_ul19),
  23323. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23324. &ext_ec_ref_mux_ul28),
  23325. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23326. &ext_ec_ref_mux_ul29),
  23327. };
  23328. static const struct snd_soc_dapm_route intercon[] = {
  23329. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23330. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23331. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23332. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23333. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23334. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23335. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23336. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23337. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23338. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23339. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23340. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23341. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23342. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23343. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23344. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23345. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23346. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23347. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23348. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23349. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23350. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23351. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23352. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23353. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23354. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23355. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23356. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23357. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23358. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23359. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23360. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23361. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23362. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23363. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23364. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23365. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23366. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23367. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23368. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23369. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23370. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23371. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23372. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23373. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23374. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23375. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23376. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23377. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23378. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23379. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23380. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23381. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23382. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23383. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23384. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23385. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23386. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23387. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23388. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23389. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23390. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23391. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23392. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23393. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23394. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23395. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23396. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23397. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23398. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23399. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23400. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23401. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23402. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23403. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23404. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23405. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23406. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23407. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23408. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23409. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23410. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23411. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23412. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23413. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23414. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23415. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23416. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23417. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23418. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23419. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23420. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23421. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23422. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23423. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23424. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23425. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23426. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23427. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23428. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23429. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23430. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23431. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23432. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23433. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23434. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23435. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23436. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23437. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23438. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23439. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23440. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23441. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23442. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23443. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23444. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23445. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23446. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23447. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23448. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23449. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23450. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23451. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23452. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23453. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23454. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23455. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23456. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23457. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23458. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23459. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23460. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23461. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23462. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23463. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23464. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23465. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23466. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23467. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23468. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23469. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23470. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23471. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23472. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23473. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23474. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23475. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23476. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23477. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23478. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23479. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23480. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23481. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23482. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23483. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23484. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23485. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23486. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23487. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23488. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23489. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23490. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23491. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23492. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23493. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23494. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23495. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23496. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23497. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23498. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23499. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23500. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23501. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23502. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23503. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23504. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23505. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23506. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23507. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23508. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23509. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23510. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23511. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23512. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23513. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23514. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23515. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23516. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23517. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23518. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23519. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23520. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23521. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23522. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23523. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23524. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23525. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23526. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23527. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23528. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23529. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23530. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23531. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23532. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23533. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23534. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23535. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23536. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23537. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23538. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23539. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23540. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23541. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23542. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23543. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23544. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23545. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23546. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23547. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23548. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23549. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23550. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23551. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23552. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23553. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23554. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23555. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23556. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23557. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23558. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23559. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23560. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23561. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23562. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23563. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23564. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23565. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23566. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23567. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23568. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23569. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23570. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23571. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23572. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23573. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23574. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23575. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23576. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23577. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23578. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23579. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23580. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23581. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23582. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23583. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23584. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23585. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23586. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23587. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23588. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23589. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23590. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23591. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23592. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23593. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23594. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23595. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23596. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23597. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23598. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23599. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23600. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23601. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23602. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23603. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23604. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23605. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23606. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23607. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23608. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23609. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23610. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23611. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23612. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23613. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23614. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23615. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23616. {"HDMI", NULL, "HDMI Mixer"},
  23617. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23618. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23619. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23620. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23621. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23622. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23623. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23624. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23625. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23626. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23627. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23628. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23629. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23630. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23631. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23632. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23633. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23634. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23635. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23636. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23637. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23638. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23639. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23640. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23641. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23642. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23643. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23644. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23645. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23646. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23647. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23648. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23649. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23650. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23651. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23652. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23653. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23654. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23655. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23656. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23657. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23658. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23659. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23660. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23661. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23662. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23663. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23664. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23665. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23666. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23667. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23668. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23669. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23670. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23671. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23672. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23673. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23674. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23675. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23676. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23677. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23678. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23679. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23680. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23681. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23682. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23683. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23684. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23685. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23686. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23687. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23688. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23689. /* incall */
  23690. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23691. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23692. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23693. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23694. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23695. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23696. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23697. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23698. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23699. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23700. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23701. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23702. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23703. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23704. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23705. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23706. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23707. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23708. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23709. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23710. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23711. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23712. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23713. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23714. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23715. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23716. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23717. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23718. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23719. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23720. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23721. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23722. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23723. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23724. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23725. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23726. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23727. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23728. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23729. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23730. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23731. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23732. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23733. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23734. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23735. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23736. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23737. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23738. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23739. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23740. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23741. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23742. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23743. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23744. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23745. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23746. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23747. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23748. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23749. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23750. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23751. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23752. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23753. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23754. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23755. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23756. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23757. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23758. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23759. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23760. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23761. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23762. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23763. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23764. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23765. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23766. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23767. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23768. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23769. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23770. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23771. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23772. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23773. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23774. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23775. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23776. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23777. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23778. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23779. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23780. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23781. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23782. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23783. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  23784. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23785. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23786. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23787. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23788. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23789. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23790. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23791. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23792. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23793. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23794. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23795. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23796. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23797. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23798. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23799. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23800. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23801. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23802. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23803. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23804. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23805. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23806. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23807. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23808. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23809. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23810. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23811. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23812. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23813. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23814. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23815. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23816. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23817. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23818. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23819. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23820. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23821. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23822. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23823. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23824. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23825. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23826. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23827. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23828. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23829. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23830. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23831. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23832. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23833. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23834. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23835. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23836. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23837. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23838. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23839. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23840. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23841. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23842. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23843. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23844. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23845. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23846. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23847. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23848. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23849. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23850. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23851. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23852. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23853. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23854. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23855. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23856. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23857. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23858. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23859. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23860. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23861. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23862. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23863. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23864. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23865. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23866. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23867. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23868. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23869. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23870. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23871. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23872. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23873. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23874. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23875. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23876. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23877. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23878. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23879. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23880. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23881. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23882. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23883. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23884. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23885. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23886. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23887. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23888. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23889. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23890. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23891. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23892. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23893. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23894. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23895. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23896. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23897. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23898. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23899. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23900. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23901. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23902. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23903. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23904. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23905. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23906. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23907. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23908. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23909. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23910. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23911. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23912. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23913. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23914. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23915. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23916. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23917. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23918. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23919. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23920. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23921. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23922. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23923. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23924. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23925. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23926. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23927. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23928. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23929. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23930. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23931. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23932. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23933. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23934. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23935. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23936. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23937. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23938. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23939. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23940. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23941. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23942. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23943. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23944. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23945. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23946. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23947. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23948. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23949. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23950. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23951. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23952. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23953. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23954. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23955. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23956. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23957. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23958. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23959. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23960. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23961. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23962. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23963. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23964. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23965. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23966. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23967. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23968. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23969. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23970. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23971. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23972. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23973. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23974. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23975. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23976. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23977. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23978. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23979. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23980. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23981. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23982. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23983. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23984. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23985. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23986. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23987. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23988. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23989. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23990. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23991. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23992. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23993. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23994. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23995. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  23996. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23997. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23998. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23999. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24000. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24001. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24002. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24003. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24004. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24005. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24006. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24007. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24008. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24009. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24010. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24011. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24012. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24013. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24014. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24015. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24016. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24017. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24018. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24019. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24020. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24021. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24022. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24023. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24024. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24025. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24026. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24027. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24028. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24029. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24030. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24031. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24032. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24033. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24034. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24035. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24036. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24037. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24038. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24039. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24040. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24041. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24042. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24043. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24044. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24045. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24046. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24047. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24048. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24049. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24050. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24051. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24052. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24053. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24054. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24055. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24056. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24057. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24058. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24059. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24060. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24061. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24062. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24063. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24064. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24065. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24066. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24067. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24068. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24069. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24070. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24071. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24072. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24073. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24074. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24075. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24076. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24077. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24078. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24079. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24080. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24081. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24082. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24083. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24084. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24085. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24086. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24087. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24088. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24089. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24090. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24091. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24092. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24093. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24094. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24095. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24096. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24097. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24098. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24099. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24100. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24101. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24102. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24103. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24104. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24105. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24106. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24107. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24108. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24109. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24110. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24111. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24112. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24113. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24114. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24115. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24116. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24117. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24118. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24119. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24120. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24121. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24122. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24123. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24124. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24125. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24126. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24127. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24128. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24129. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24130. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24131. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24132. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24133. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24134. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24135. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24136. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24137. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24138. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24139. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24140. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24141. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24142. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24143. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24144. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24145. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24146. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24147. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24148. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24149. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24150. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24151. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24152. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24153. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24154. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24155. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24156. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24157. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24158. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24159. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24160. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24161. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24162. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24163. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24164. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24165. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24166. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24167. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24168. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24169. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24170. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24171. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24172. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24173. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24174. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24175. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24176. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24177. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24178. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24179. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24180. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24181. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24182. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24183. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24184. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24185. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24186. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24187. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24188. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24189. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24190. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24191. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24192. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24193. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24194. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24195. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24196. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24197. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24198. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24199. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24200. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24201. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24202. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24203. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24204. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24205. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24206. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24207. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24208. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24209. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24210. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24211. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24212. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24213. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24214. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24215. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24216. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24217. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24218. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24219. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24220. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24221. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24222. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24223. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24224. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24225. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24226. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24227. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24228. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24229. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24230. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24231. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24232. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24233. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24234. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24235. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24236. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24237. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24238. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24239. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24240. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24241. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24242. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24243. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24244. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24245. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24246. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24247. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24248. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24249. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24250. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24251. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24252. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24253. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24254. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24255. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24256. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24257. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24258. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24259. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24260. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24261. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24262. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24263. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24264. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24265. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24266. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24267. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24268. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24269. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24270. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24271. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24272. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24273. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24274. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24275. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24276. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24277. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24278. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24279. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24280. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24281. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24282. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24283. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24284. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24285. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24286. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24287. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24288. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24289. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24290. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24291. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24292. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24293. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24294. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24295. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24296. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24297. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24298. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24299. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24300. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24301. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24302. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24303. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24304. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24305. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24306. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24307. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24308. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24309. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24310. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24311. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24312. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24313. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24314. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24315. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24316. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24317. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24318. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24319. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24320. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24321. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24322. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24323. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24324. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24325. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24326. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24327. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24328. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24329. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24330. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24331. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24332. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24333. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24334. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24335. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24336. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24337. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24338. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24339. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24340. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24341. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24342. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24343. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24344. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24345. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24346. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24347. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24348. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24349. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24350. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24351. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24352. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24353. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24354. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24355. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24356. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24357. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24358. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24359. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24360. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24361. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24362. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24363. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24364. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24365. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24366. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24367. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24368. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24369. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24370. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24371. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24372. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24373. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24374. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24375. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24376. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24377. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24378. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24379. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24380. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24381. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24382. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24383. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24384. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24385. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24386. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24387. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24388. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24389. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24390. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24391. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24392. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24393. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24394. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24395. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24396. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24397. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24398. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24399. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24400. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24401. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24402. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24403. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24404. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24405. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24406. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24407. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24408. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24409. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24410. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24411. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24412. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24413. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24414. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24415. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24416. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24417. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24418. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24419. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24420. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24421. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24422. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24423. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24424. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24425. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24426. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24427. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24428. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24429. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24430. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24431. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24432. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24433. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24434. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24435. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24436. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24437. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24438. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24439. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24440. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24441. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24442. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24443. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24444. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24445. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24446. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24447. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24448. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24449. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24450. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24451. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24452. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24453. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24454. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24455. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24456. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24457. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24458. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24459. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24460. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24461. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24462. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24463. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24464. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24465. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24466. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24467. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24468. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24469. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24470. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24471. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24472. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24473. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24474. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24475. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24476. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24477. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24478. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24479. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24480. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24481. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24482. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24483. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24484. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24485. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24486. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24487. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24488. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24489. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24490. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24491. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24492. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24493. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24494. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24495. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24496. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24497. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24498. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24499. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24500. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24501. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24502. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24503. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24504. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24505. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24506. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24507. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24508. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24509. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24510. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24511. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24512. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24513. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24514. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24515. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24516. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24517. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24518. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24519. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24520. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24521. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24522. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24523. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24524. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24525. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24526. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24527. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24528. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24529. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24530. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24531. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24532. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24533. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24534. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24535. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24536. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24537. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24538. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24539. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24540. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24541. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24542. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24543. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24544. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24545. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24546. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24547. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24548. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24549. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24550. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24551. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24552. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24553. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24554. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24555. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24556. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24557. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24558. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24559. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24560. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24561. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24562. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24563. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24564. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24565. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24566. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24567. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24568. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24569. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24570. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24571. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24572. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24573. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24574. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24575. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24576. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24577. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24578. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24579. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24580. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24581. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24582. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24583. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24584. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24585. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24586. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24587. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24588. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24589. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24590. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24591. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24592. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24593. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24594. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24595. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24596. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24597. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24598. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24599. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24600. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24601. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24602. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24603. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24604. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24605. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24606. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24607. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24608. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24609. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24610. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24611. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24612. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24613. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24614. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24615. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24616. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24617. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24618. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24619. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24620. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24621. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24622. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24623. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24624. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24625. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24626. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24627. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24628. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24629. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24630. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24631. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24632. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24633. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24634. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24635. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24636. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24637. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24638. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24639. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24640. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24641. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24642. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24643. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24644. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24645. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24646. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24647. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24648. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24649. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24650. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24651. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24652. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24653. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24654. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24655. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24656. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24657. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24658. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24659. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24660. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24661. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24662. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24663. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24664. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24665. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24666. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24667. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24668. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24669. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24670. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24671. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24672. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24673. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24674. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24675. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24676. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24677. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24678. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24679. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24680. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24681. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24682. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24683. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24684. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24685. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24686. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24687. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24688. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24689. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24690. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24691. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24692. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24693. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24694. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24695. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24696. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24697. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24698. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24699. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24700. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24701. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24702. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24703. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24704. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24705. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24706. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24707. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24708. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24709. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24710. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24711. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24712. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24713. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24714. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24715. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24716. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24717. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24718. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24719. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24720. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24721. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24722. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24723. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24724. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24725. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24726. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24727. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24728. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24729. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24730. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24731. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24732. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24733. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24734. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24735. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24736. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24737. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24738. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24739. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24740. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24741. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24742. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24743. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24744. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24745. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24746. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24747. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24748. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24749. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24750. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24751. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24752. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24753. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24754. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24755. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24756. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24757. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24758. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24759. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24760. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24761. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24762. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24763. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24764. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24765. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24766. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24767. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24768. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24769. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24770. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24771. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24772. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24773. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24774. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24775. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24776. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24777. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24778. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24779. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24780. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24781. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24782. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24783. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24784. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24785. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24786. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24787. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24788. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24789. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24790. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24791. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24792. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24793. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24794. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24795. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24796. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24797. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24798. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24799. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24800. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24801. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24802. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24803. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24804. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24805. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24806. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24807. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24808. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24809. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24810. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24811. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24812. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24813. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24814. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24815. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24816. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24817. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24818. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24819. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24820. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24821. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24822. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24823. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24824. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24825. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24826. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24827. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24828. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24829. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24830. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24831. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24832. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24833. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24834. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24835. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24836. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24837. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24838. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24839. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24840. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24841. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24842. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24843. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24844. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24845. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24846. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24847. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24848. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24849. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24850. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24851. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24852. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24853. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24854. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24855. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24856. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24857. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24858. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24859. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24860. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24861. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24862. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24863. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24864. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24865. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24866. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24867. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24868. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24869. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24870. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24871. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24872. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24873. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24874. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24875. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24876. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24877. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24878. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24879. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24880. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24881. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24882. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24883. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24884. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24885. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24886. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24887. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24888. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24889. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24890. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24891. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24892. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24893. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24894. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24895. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24896. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24897. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24898. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24899. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24900. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24901. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24902. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24903. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24904. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24905. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24906. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24907. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24908. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24909. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24910. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24911. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24912. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24913. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24914. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24915. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24916. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24917. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24918. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24919. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24920. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24921. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24922. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24923. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24924. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24925. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24926. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24927. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24928. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24929. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24930. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24931. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24932. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24933. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24934. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24935. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24936. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24937. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24938. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24939. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24940. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24941. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24942. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24943. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24944. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24945. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24946. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24947. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24948. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24949. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24950. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24951. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24952. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24953. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24954. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24955. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24956. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24957. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24958. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24959. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24960. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24961. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24962. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24963. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24964. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24965. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24966. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24967. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24968. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24969. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24970. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24971. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24972. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24973. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24974. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24975. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24976. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24977. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24978. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24979. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24980. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24981. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24982. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24983. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24984. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24985. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24986. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24987. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24988. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24989. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24990. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24991. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24992. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24993. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24994. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24995. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24996. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24997. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24998. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24999. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25000. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25001. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25002. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25003. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25004. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25005. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25006. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25007. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25008. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25009. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25010. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25011. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25012. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25013. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25014. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25015. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25016. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25017. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25018. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25019. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25020. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25021. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25022. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25023. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25024. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25025. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25026. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25027. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25028. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25029. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25030. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25031. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25032. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25033. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25034. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25035. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25036. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25037. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25038. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25039. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25040. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25041. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25042. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25043. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25044. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25045. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25046. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25047. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25048. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25049. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25050. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25051. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25052. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25053. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25054. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25055. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25056. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25057. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25058. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25059. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25060. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25061. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25062. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25063. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25064. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25065. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25066. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25067. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25068. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25069. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25070. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25071. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25072. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25073. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25074. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25075. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25076. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25077. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25078. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25079. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25080. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25081. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25082. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25083. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25084. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25085. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25086. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25087. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25088. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25089. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25090. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25091. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25092. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25093. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25094. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25095. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25096. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25097. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25098. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25099. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25100. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25101. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25102. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25103. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25104. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25105. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25106. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25107. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25108. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25109. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25110. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25111. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25112. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25113. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25114. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25115. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25116. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25117. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25118. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25119. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25120. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25121. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25122. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25123. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25124. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25125. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25126. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25127. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25128. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25129. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25130. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25131. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25132. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25133. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25134. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25135. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25136. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25137. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25138. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25139. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25140. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25141. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25142. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25143. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25144. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25145. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25146. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25147. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25148. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25149. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25150. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25151. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25152. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25153. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25154. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25155. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25156. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25157. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25158. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25159. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25160. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25161. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25162. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25163. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25164. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25165. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25166. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25167. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25168. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25169. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25170. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25171. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25172. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25173. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25174. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25175. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25176. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25177. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25178. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25179. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25180. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25181. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25182. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25183. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25184. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25185. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25186. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25187. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25188. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25189. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25190. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25191. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25192. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25193. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25194. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25195. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25196. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25197. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25198. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25199. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25200. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25201. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25202. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25203. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25204. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25205. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25206. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25207. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25208. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25209. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25210. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25211. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25212. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25213. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25214. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25215. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25216. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25217. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25218. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25219. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25220. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25221. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25222. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25223. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25224. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25225. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25226. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25227. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25228. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25229. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25230. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25231. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25232. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25233. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25234. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25235. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25236. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25237. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25238. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25239. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25240. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25241. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25242. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25243. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25244. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25245. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25246. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25247. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25248. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25249. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25250. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25251. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25252. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25253. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25254. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25255. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25256. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25257. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25258. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25259. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25260. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25261. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25262. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25263. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25264. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25265. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25266. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25267. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25268. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25269. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25270. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25271. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25272. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25273. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25274. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25275. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25276. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25277. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25278. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25279. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25280. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25281. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25282. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25283. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25284. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25285. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25286. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25287. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25288. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25289. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25290. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25291. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25292. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25293. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25294. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25295. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25296. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25297. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25298. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25299. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25300. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25301. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25302. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25303. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25304. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25305. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25306. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25307. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25308. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25309. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25310. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25311. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25312. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25313. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25314. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25315. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25316. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25317. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25318. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25319. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25320. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25321. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25322. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25323. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25324. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25325. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25326. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25327. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25328. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25329. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25330. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25331. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25332. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25333. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25334. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25335. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25336. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25337. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25338. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25339. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25340. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25341. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25342. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25343. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25344. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25345. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25346. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25347. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25348. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25349. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25350. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25351. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25352. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25353. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25354. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25355. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25356. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25357. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25358. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25359. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25360. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25361. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25362. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25363. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25364. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25365. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25366. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25367. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25368. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25369. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25370. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25371. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25372. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25373. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25374. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25375. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25376. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25377. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25378. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25379. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25380. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25381. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25382. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25383. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25384. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25385. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25386. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25387. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25388. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25389. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25390. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25391. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25392. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25393. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25394. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25395. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25396. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25397. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25398. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25399. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25400. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25401. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25402. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25403. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25404. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25405. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25406. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25407. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25408. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25409. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25410. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25411. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25412. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25413. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25414. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25415. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25416. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25417. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25418. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25419. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25420. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25421. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25422. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25423. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25424. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25425. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25426. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25427. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25428. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25429. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25430. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25431. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25432. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25433. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25434. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25435. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25436. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25437. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25438. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25439. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25440. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25441. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25442. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25443. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25444. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25445. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  25446. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25447. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25448. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25449. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25450. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25451. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25452. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25453. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25454. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25455. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25456. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25457. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25458. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25459. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25460. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25461. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25462. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  25463. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25464. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25465. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25466. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25467. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25468. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25469. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25470. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25471. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25472. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25473. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25474. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25475. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25476. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25477. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25478. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25479. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  25480. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25481. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25482. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25483. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25484. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25485. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  25486. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25487. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25488. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25489. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  25490. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25491. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25492. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25493. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25494. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25495. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25496. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25497. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  25498. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25499. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25500. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25501. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25502. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25503. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25504. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25505. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25506. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25507. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25508. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25509. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25510. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25511. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25512. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25513. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25514. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25515. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25516. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25517. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25518. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25519. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25520. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25521. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25522. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25523. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25524. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25525. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25526. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25527. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25528. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25529. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25530. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25531. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25532. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25533. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25534. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25535. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25536. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25537. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25538. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25539. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25540. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25541. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25542. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25543. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25544. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25545. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25546. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25547. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25548. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25549. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25550. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25551. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25552. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25553. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25554. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25555. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25556. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25557. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25558. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25559. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25560. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25561. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25562. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25563. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25564. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25565. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25566. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25567. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25568. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25569. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25570. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25571. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25572. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25573. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25574. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25575. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25576. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25577. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25578. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25579. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25580. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25581. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25582. {"HDMI", NULL, "HDMI_DL_HL"},
  25583. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25584. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25585. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25586. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25587. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25588. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25589. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25590. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25591. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25592. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25593. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25594. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25595. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25596. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25597. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25598. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25599. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25600. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25601. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25602. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25603. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25604. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25605. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25606. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25607. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25608. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25609. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25610. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25611. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25612. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25613. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25614. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25615. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25616. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25617. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25618. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25619. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25620. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25621. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25622. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25623. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25624. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25625. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25626. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25627. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25628. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25629. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25630. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25631. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25632. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25633. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25634. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25635. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25636. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25637. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25638. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25639. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25640. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25641. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25642. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25643. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25644. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25645. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25646. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25647. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25648. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25649. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25650. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25651. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25652. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25653. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25654. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25655. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25656. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25657. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25658. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25659. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25660. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25661. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25662. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25663. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25664. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25665. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25666. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25667. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25668. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25669. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25670. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25671. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25672. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25673. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25674. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25675. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25676. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25677. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25678. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25679. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25680. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25681. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25682. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25683. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25684. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25685. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25686. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25687. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25688. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25689. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25690. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  25691. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25692. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25693. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25694. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25695. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25696. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25697. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25698. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25699. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25700. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25701. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25702. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25703. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25704. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25705. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25706. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25707. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25708. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25709. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25710. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25711. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25712. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25713. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25714. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25715. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25716. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25717. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25718. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25719. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25720. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25721. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25722. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25723. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25724. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25725. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25726. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25727. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25728. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25729. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25730. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25731. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25732. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25733. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25734. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25735. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25736. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25737. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25738. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25739. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25740. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25741. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25742. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25743. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25744. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25745. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25746. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25747. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25748. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25749. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25750. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25751. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25752. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25753. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25754. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25755. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25756. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25757. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25758. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25759. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25760. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25761. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25762. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25763. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25764. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25765. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25766. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25767. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25768. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25769. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25770. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25771. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25772. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25773. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25774. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25775. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25776. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25777. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25778. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25779. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25780. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  25781. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  25782. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  25783. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  25784. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  25785. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  25786. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  25787. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  25788. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  25789. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  25790. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  25791. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  25792. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  25793. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  25794. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  25795. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  25796. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  25797. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  25798. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  25799. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  25800. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  25801. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  25802. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  25803. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  25804. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  25805. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  25806. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  25807. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  25808. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  25809. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  25810. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  25811. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  25812. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  25813. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  25814. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  25815. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  25816. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  25817. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  25818. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  25819. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  25820. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  25821. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  25822. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  25823. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  25824. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  25825. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  25826. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  25827. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  25828. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  25829. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  25830. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  25831. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  25832. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  25833. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  25834. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  25835. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  25836. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  25837. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  25838. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  25839. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  25840. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  25841. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  25842. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  25843. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  25844. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  25845. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  25846. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  25847. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  25848. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  25849. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  25850. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  25851. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  25852. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  25853. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  25854. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  25855. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  25856. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  25857. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  25858. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  25859. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  25860. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  25861. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  25862. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  25863. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  25864. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  25865. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  25866. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  25867. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  25868. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  25869. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  25870. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  25871. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  25872. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  25873. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  25874. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  25875. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  25876. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  25877. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  25878. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  25879. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  25880. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  25881. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  25882. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  25883. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  25884. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  25885. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  25886. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  25887. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  25888. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  25889. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  25890. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  25891. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  25892. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  25893. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  25894. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  25895. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25896. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  25897. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  25898. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25899. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25900. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25901. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  25902. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25903. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25904. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25905. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25906. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25907. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25908. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25909. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25910. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25911. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25912. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25913. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25914. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25915. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  25916. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25917. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25918. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25919. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25920. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25921. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25922. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25923. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25924. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25925. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25926. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25927. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25928. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25929. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  25930. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25931. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25932. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25933. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25934. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25935. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25936. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25937. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25938. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25939. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25940. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25941. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25942. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25943. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  25944. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25945. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25946. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25947. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25948. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25949. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25950. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25951. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25952. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25953. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25954. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25955. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25956. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25957. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25958. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25959. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25960. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25961. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25962. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25963. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25964. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25965. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25966. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25967. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25968. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25969. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25970. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25971. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25972. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25973. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25974. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25975. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25976. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25977. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25978. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25979. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25980. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25981. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25982. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25983. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  25984. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25985. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25986. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25987. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25988. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25989. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25990. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25991. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25992. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25993. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25994. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25995. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  25996. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25997. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25998. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25999. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26000. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26001. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26002. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26003. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26004. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26005. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26006. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26007. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26008. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26009. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26010. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26011. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26012. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26013. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26014. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26015. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26016. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26017. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26018. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26019. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26020. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26021. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26022. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26023. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26024. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26025. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26026. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26027. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26028. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26029. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26030. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26031. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26032. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26033. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26034. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26035. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26036. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26037. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26038. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26039. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26040. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26041. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26042. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26043. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26044. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26045. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26046. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26047. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26048. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26049. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26050. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26051. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26052. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26053. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26054. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26055. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26056. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26057. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26058. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26059. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26060. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26061. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26062. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26063. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26064. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26065. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26066. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26067. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26068. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26069. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26070. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26071. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26072. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26073. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26074. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26075. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26076. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26077. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26078. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26079. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26080. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26081. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26082. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26083. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26084. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26085. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26086. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26087. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26088. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26089. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26090. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26091. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26092. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26093. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26094. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26095. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26096. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26097. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26098. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26099. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26100. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26101. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26102. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26103. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26104. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26105. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26106. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26107. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26108. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26109. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26110. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26111. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26112. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26113. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26114. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26115. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26116. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26117. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26118. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26119. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26120. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26121. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26122. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26123. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26124. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26125. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26126. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26127. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26128. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26129. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26130. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26131. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26132. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26133. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26134. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26135. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26136. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26137. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26138. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26139. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26140. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26141. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26142. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26143. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26144. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26145. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26146. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26147. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26148. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26149. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26150. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26151. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26152. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26153. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26154. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26155. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26156. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26157. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26158. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26159. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26160. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26161. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26162. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26163. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26164. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26165. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26166. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26167. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26168. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26169. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26170. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26171. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26172. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26173. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26174. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26175. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26176. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26177. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26178. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26179. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26180. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26181. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26182. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26183. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26184. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26185. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26186. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26187. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26188. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26189. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26190. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26191. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26192. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26193. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26194. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26195. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26196. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26197. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26198. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26199. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26200. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26201. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26202. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26203. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26204. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26205. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26206. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26207. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26208. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26209. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26210. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26211. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26212. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26213. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26214. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26215. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26216. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26217. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26218. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26219. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26220. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26221. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26222. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26223. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26224. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26225. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26226. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26227. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26228. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26229. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26230. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26231. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26232. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26233. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26234. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26235. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26236. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26237. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26238. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26239. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26240. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26241. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26242. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26243. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26244. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26245. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26246. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26247. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26248. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26249. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26250. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26251. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26252. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26253. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26254. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26255. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26256. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26257. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26258. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26259. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26260. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26261. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26262. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26263. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26264. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26265. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26266. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26267. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26268. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26269. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26270. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26271. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26272. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26273. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26274. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26275. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26276. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26277. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26278. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26279. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26280. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26281. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26282. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26283. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26284. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26285. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26286. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26287. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26288. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26289. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26290. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26291. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26292. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26293. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26294. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26295. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26296. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26297. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26298. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26299. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26300. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26301. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26302. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26303. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26304. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26305. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26306. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26307. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26308. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26309. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26310. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26311. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26312. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26313. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26314. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26315. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26316. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26317. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26318. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26319. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26320. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26321. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26322. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26323. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26324. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26325. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26326. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26327. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26328. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26329. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26330. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26331. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26332. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26333. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26334. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26335. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26336. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26337. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26338. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26339. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26340. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26341. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26342. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26343. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26344. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26345. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26346. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26347. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26348. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26349. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26350. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26351. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26352. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26353. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26354. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26355. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26356. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26357. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26358. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26359. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26360. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26361. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26362. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26363. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26364. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26365. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26366. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26367. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26368. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26369. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26370. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26371. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26372. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26373. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26374. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26375. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26376. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26377. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26378. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26379. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26380. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26381. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26382. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26383. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26384. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26385. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26386. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26387. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26388. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26389. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26390. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26391. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26392. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26393. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26394. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26395. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26396. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26397. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26398. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26399. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26400. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26401. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26402. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26403. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26404. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26405. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26406. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26407. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26408. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26409. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26410. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26411. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26412. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26413. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26414. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26415. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26416. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26417. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26418. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26419. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26420. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26421. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26422. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26423. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26424. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26425. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26426. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26427. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26428. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26429. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26430. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26431. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26432. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26433. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26434. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26435. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26436. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26437. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26438. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26439. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26440. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26441. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26442. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26443. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26444. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26445. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26446. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26447. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26448. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26449. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26450. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26451. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26452. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26453. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26454. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26455. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  26456. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26457. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26458. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26459. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26460. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26461. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26462. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26463. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26464. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26465. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26466. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26467. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26468. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26469. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26470. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26471. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26472. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26473. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26474. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26475. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26476. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26477. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26478. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26479. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26480. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  26481. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26482. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26483. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26484. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26485. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26486. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26487. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26488. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26489. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26490. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26491. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26492. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26493. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26494. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26495. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26496. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26497. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26498. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26499. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26500. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26501. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26502. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26503. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26504. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26505. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  26506. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26507. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26508. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26509. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26510. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26511. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26512. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26513. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26514. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26515. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26516. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26517. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26518. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26519. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26520. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26521. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26522. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26523. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26524. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26525. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26526. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26527. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26528. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26529. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26530. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26531. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26532. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26533. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26534. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26535. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26536. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26537. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26538. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26539. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26540. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26541. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26542. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26543. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26544. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26545. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26546. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26547. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26548. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26549. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26550. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26551. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26552. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26553. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26554. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26555. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26556. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26557. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26558. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26559. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26560. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26561. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26562. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26563. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26564. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26565. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26566. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26567. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26568. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26569. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26570. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26571. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26572. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26573. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26574. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26575. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26576. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26577. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26578. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26579. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26580. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26581. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26582. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26583. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26584. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26585. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26586. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26587. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26588. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26589. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26590. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26591. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26592. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26593. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26594. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26595. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26596. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26597. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26598. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26599. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26600. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26601. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26602. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26603. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26604. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26605. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26606. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26607. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26608. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26609. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26610. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26611. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26612. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26613. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26614. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26615. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26616. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26617. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26618. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26619. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26620. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26621. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26622. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26623. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26624. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26625. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26626. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26627. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26628. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26629. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26630. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26631. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26632. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26633. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26634. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26635. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26636. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26637. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26638. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26639. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26640. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26641. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26642. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26643. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26644. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26645. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26646. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26647. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26648. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26649. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26650. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26651. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26652. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26653. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26654. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26655. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26656. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26657. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26658. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26659. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26660. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26661. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26662. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26663. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26664. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26665. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26666. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26667. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26668. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26669. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26670. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26671. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26672. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26673. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26674. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26675. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26676. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26677. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26678. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26679. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26680. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26681. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26682. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26683. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26684. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26685. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26686. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26687. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26688. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26689. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26690. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26691. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26692. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26693. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26694. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26695. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26696. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26697. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26698. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26699. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26700. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26701. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26702. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26703. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26704. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26705. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26706. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26707. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26708. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26709. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26710. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26711. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26712. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26713. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26714. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26715. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26716. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26717. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26718. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26719. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26720. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26721. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26722. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26723. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26724. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26725. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26726. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26727. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26728. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26729. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26730. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26731. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26732. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26733. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26734. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26735. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26736. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26737. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26738. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26739. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26740. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26741. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26742. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26743. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26744. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26745. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26746. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26747. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26748. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26749. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26750. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26751. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26752. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26753. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26754. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26755. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26756. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26757. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26758. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26759. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26760. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26761. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26762. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26763. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26764. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26765. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26766. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26767. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26768. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26769. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26770. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26771. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26772. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26773. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26774. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26775. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26776. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26777. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26778. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26779. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26780. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26781. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26782. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26783. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26784. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26785. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26786. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26787. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26788. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26789. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26790. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26791. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26792. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26793. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26794. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26795. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26796. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26797. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26798. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26799. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26800. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26801. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26802. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26803. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26804. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26805. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26806. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26807. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26808. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26809. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26810. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26811. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26812. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26813. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26814. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26815. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26816. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26817. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26818. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26819. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26820. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26821. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  26822. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26823. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26824. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26825. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26826. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26827. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26828. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26829. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26830. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26831. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26832. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26833. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26834. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26835. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26836. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26837. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26838. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26839. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26840. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26841. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26842. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26843. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26844. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26845. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26846. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26847. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26848. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26849. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26850. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26851. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26852. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26853. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26854. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26855. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26856. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26857. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26858. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26859. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26860. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26861. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26862. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26863. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26864. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26865. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26866. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26867. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26868. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26869. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26870. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26871. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26872. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26873. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26874. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26875. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26876. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26877. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26878. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26879. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26880. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26881. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26882. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26883. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26884. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26885. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26886. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26887. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26888. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26889. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26890. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26891. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26892. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26893. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26894. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26895. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26896. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26897. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26898. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26899. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26900. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26901. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26902. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26903. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26904. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26905. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26906. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26907. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26908. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26909. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  26910. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26911. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26912. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  26913. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26914. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26915. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  26916. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26917. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26918. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26919. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26920. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26921. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26922. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26923. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26924. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26925. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26926. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26927. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  26928. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26929. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26930. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26931. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26932. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26933. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26934. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26935. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26936. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26937. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26938. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  26939. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26940. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26941. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26942. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26943. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26944. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26945. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26946. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26947. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  26948. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26949. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26950. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26951. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26952. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26953. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26954. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26955. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26956. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26957. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26958. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  26959. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26960. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26961. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26962. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26963. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26964. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26965. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26966. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26967. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26968. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26969. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26970. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26971. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26972. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26973. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26974. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26975. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26976. /* Backend Enablement */
  26977. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26978. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26979. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26980. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26981. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26982. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26983. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26984. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26985. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26986. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26987. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26988. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26989. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26990. {"BE_OUT", NULL, "HDMI"},
  26991. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26992. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26993. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26994. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  26995. {"BE_OUT", NULL, "MI2S_RX"},
  26996. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  26997. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  26998. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  26999. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27000. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27001. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27002. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27003. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27004. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27005. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27006. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27007. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27008. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27009. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27010. {"BE_OUT", NULL, "INT_FM_RX"},
  27011. {"BE_OUT", NULL, "PCM_RX"},
  27012. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27013. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27014. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27015. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27016. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27017. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27018. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27019. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27020. {"BE_OUT", NULL, "INT_FM_RX"},
  27021. {"BE_OUT", NULL, "PCM_RX"},
  27022. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27023. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27024. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27025. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27026. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27027. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27028. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27029. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27030. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27031. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27032. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27033. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27034. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27035. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27036. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27037. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27038. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27039. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27040. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27041. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27042. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27043. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27044. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27045. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27046. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27047. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27048. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27049. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27050. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27051. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27052. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27053. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27054. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27055. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27056. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27057. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27058. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27059. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27060. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27061. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27062. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27063. {"PRI_I2S_TX", NULL, "BE_IN"},
  27064. {"MI2S_TX", NULL, "BE_IN"},
  27065. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27066. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27067. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27068. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27069. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27070. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27071. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27072. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27073. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27074. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27075. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27076. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27077. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27078. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27079. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27080. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27081. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27082. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27083. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27084. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27085. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27086. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27087. {"INT_FM_TX", NULL, "BE_IN"},
  27088. {"PCM_TX", NULL, "BE_IN"},
  27089. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27090. {"BE_OUT", NULL, "STUB_RX"},
  27091. {"STUB_TX", NULL, "BE_IN"},
  27092. {"STUB_1_TX", NULL, "BE_IN"},
  27093. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27094. {"AUX_PCM_TX", NULL, "BE_IN"},
  27095. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27096. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27097. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27098. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27099. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27100. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27101. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27102. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27103. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27104. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27105. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27106. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27107. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27108. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27109. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27110. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27111. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27112. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27113. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27114. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27115. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27116. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27117. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27118. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27119. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27120. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27121. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27122. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27123. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27124. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27125. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27126. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27127. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27128. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27129. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27130. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27131. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27132. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27133. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27134. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27135. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27136. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27137. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27138. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27139. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27140. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27141. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27142. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27143. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27144. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27145. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27146. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27147. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27148. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27149. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27150. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27151. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27152. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27153. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27154. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27155. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27156. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27157. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27158. };
  27159. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27160. struct snd_pcm_hw_params *params)
  27161. {
  27162. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27163. unsigned int be_id = rtd->dai_link->id;
  27164. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27165. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27166. return -EINVAL;
  27167. }
  27168. mutex_lock(&routing_lock);
  27169. msm_bedais[be_id].sample_rate = params_rate(params);
  27170. msm_bedais[be_id].channel = params_channels(params);
  27171. msm_bedais[be_id].format = params_format(params);
  27172. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27173. __func__, msm_bedais[be_id].sample_rate,
  27174. msm_bedais[be_id].format, be_id);
  27175. mutex_unlock(&routing_lock);
  27176. return 0;
  27177. }
  27178. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27179. {
  27180. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27181. unsigned int be_id = rtd->dai_link->id;
  27182. int i, session_type, path_type, topology;
  27183. struct msm_pcm_routing_bdai_data *bedai;
  27184. struct msm_pcm_routing_fdai_data *fdai;
  27185. pr_debug("%s: substream->pcm->id:%s\n",
  27186. __func__, substream->pcm->id);
  27187. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27188. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27189. return -EINVAL;
  27190. }
  27191. bedai = &msm_bedais[be_id];
  27192. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27193. 0 : 1);
  27194. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27195. path_type = ADM_PATH_PLAYBACK;
  27196. else
  27197. path_type = ADM_PATH_LIVE_REC;
  27198. mutex_lock(&routing_lock);
  27199. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27200. if (!is_mm_lsm_fe_id(i))
  27201. continue;
  27202. fdai = &fe_dai_map[i][session_type];
  27203. if (fdai->strm_id != INVALID_SESSION) {
  27204. int idx;
  27205. int port_id;
  27206. unsigned long copp =
  27207. session_copp_map[i][session_type][be_id];
  27208. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27209. if (test_bit(idx, &copp))
  27210. break;
  27211. if (idx >= MAX_COPPS_PER_PORT) {
  27212. pr_debug("%s: copp idx is invalid, exiting\n",
  27213. __func__);
  27214. continue;
  27215. }
  27216. fdai->be_srate = bedai->sample_rate;
  27217. port_id = get_port_id(bedai->port_id);
  27218. topology = adm_get_topology_for_port_copp_idx(port_id,
  27219. idx);
  27220. msm_routing_unload_topology(topology);
  27221. adm_close(port_id, fdai->perf_mode, idx);
  27222. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27223. __func__, copp, i, session_type, be_id,
  27224. topology);
  27225. clear_bit(idx,
  27226. &session_copp_map[i][session_type][be_id]);
  27227. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27228. (fdai->passthr_mode == LEGACY_PCM))
  27229. msm_pcm_routing_deinit_pp(port_id,
  27230. topology);
  27231. }
  27232. }
  27233. bedai->active = 0;
  27234. bedai->sample_rate = 0;
  27235. bedai->channel = 0;
  27236. mutex_unlock(&routing_lock);
  27237. return 0;
  27238. }
  27239. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27240. {
  27241. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27242. unsigned int be_id = rtd->dai_link->id;
  27243. int i, path_type, topology;
  27244. int session_type = INVALID_SESSION;
  27245. struct msm_pcm_routing_bdai_data *bedai;
  27246. u32 channels, sample_rate;
  27247. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27248. struct msm_pcm_routing_fdai_data *fdai;
  27249. u32 session_id;
  27250. struct media_format_info voc_be_media_format;
  27251. bool is_lsm;
  27252. pr_debug("%s: substream->pcm->id:%s\n",
  27253. __func__, substream->pcm->id);
  27254. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27255. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27256. return -EINVAL;
  27257. }
  27258. bedai = &msm_bedais[be_id];
  27259. mutex_lock(&routing_lock);
  27260. if (bedai->active == 1)
  27261. goto done; /* Ignore prepare if back-end already active */
  27262. /* AFE port is not active at this point. However, still
  27263. * go ahead setting active flag under the notion that
  27264. * QDSP6 is able to handle ADM starting before AFE port
  27265. * is started.
  27266. */
  27267. bedai->active = 1;
  27268. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27269. if (!(is_mm_lsm_fe_id(i) &&
  27270. route_check_fe_id_adm_support(i)))
  27271. continue;
  27272. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27273. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27274. fdai = &fe_dai_map[i][session_type];
  27275. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27276. if (fdai->passthr_mode != LEGACY_PCM)
  27277. path_type = ADM_PATH_COMPRESSED_RX;
  27278. else
  27279. path_type = ADM_PATH_PLAYBACK;
  27280. } else {
  27281. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27282. (fdai->passthr_mode != LISTEN))
  27283. path_type = ADM_PATH_COMPRESSED_TX;
  27284. else
  27285. path_type = ADM_PATH_LIVE_REC;
  27286. }
  27287. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27288. (i <= MSM_FRONTEND_DAI_LSM8);
  27289. if (fdai->strm_id != INVALID_SESSION) {
  27290. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27291. int port_id = get_port_id(bedai->port_id);
  27292. if (session_type == SESSION_TYPE_TX &&
  27293. fdai->be_srate &&
  27294. (fdai->be_srate != bedai->sample_rate)) {
  27295. pr_debug("%s: flush strm %d diff BE rates\n",
  27296. __func__,
  27297. fdai->strm_id);
  27298. if (fdai->event_info.event_func)
  27299. fdai->event_info.event_func(
  27300. MSM_PCM_RT_EVT_BUF_RECFG,
  27301. fdai->event_info.priv_data);
  27302. fdai->be_srate = 0; /* might not need it */
  27303. }
  27304. bits_per_sample = msm_routing_get_bit_width(
  27305. bedai->format);
  27306. app_type =
  27307. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27308. if (app_type && is_lsm) {
  27309. app_type_idx =
  27310. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27311. sample_rate =
  27312. fe_dai_app_type_cfg[i][session_type][be_id]
  27313. .sample_rate;
  27314. bits_per_sample =
  27315. lsm_app_type_cfg[app_type_idx].bit_width;
  27316. } else if (app_type) {
  27317. app_type_idx =
  27318. msm_pcm_routing_get_app_type_idx(app_type);
  27319. sample_rate =
  27320. fe_dai_app_type_cfg[i][session_type]
  27321. [be_id].sample_rate;
  27322. bits_per_sample =
  27323. app_type_cfg[app_type_idx].bit_width;
  27324. } else
  27325. sample_rate = bedai->sample_rate;
  27326. /*
  27327. * check if ADM needs to be configured with different
  27328. * channel mapping than backend
  27329. */
  27330. if (!bedai->adm_override_ch)
  27331. channels = bedai->channel;
  27332. else
  27333. channels = bedai->adm_override_ch;
  27334. acdb_dev_id =
  27335. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27336. topology = msm_routing_get_adm_topology(i, session_type,
  27337. be_id);
  27338. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27339. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27340. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27341. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27342. be_bit_width = msm_routing_get_bit_width(
  27343. bedai->format);
  27344. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27345. || bedai->sample_rate == 352800) &&
  27346. be_bit_width == 32)
  27347. bits_per_sample = msm_routing_get_bit_width(
  27348. SNDRV_PCM_FORMAT_S32_LE);
  27349. copp_idx = adm_open(port_id, path_type,
  27350. sample_rate, channels, topology,
  27351. fdai->perf_mode, bits_per_sample,
  27352. app_type, acdb_dev_id,
  27353. session_type);
  27354. if ((copp_idx < 0) ||
  27355. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27356. pr_err("%s: adm open failed\n", __func__);
  27357. mutex_unlock(&routing_lock);
  27358. return -EINVAL;
  27359. }
  27360. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27361. __func__, i, session_type, be_id);
  27362. set_bit(copp_idx,
  27363. &session_copp_map[i][session_type][be_id]);
  27364. if (msm_is_resample_needed(
  27365. sample_rate,
  27366. bedai->sample_rate))
  27367. adm_copp_mfc_cfg(port_id, copp_idx,
  27368. bedai->sample_rate);
  27369. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27370. fdai->perf_mode, fdai->passthr_mode);
  27371. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27372. (fdai->passthr_mode == LEGACY_PCM))
  27373. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27374. topology, channels);
  27375. }
  27376. }
  27377. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27378. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27379. if (session_id) {
  27380. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27381. session_id);
  27382. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27383. voc_path_type = RX_PATH;
  27384. else
  27385. voc_path_type = TX_PATH;
  27386. voc_set_route_flag(session_id, voc_path_type, 1);
  27387. memset(&voc_be_media_format, 0,
  27388. sizeof(struct media_format_info));
  27389. voc_be_media_format.port_id = bedai->port_id;
  27390. voc_be_media_format.num_channels = bedai->channel;
  27391. voc_be_media_format.sample_rate = bedai->sample_rate;
  27392. voc_be_media_format.bits_per_sample = bedai->format;
  27393. /* Defaulting this to 1 for voice call usecases */
  27394. voc_be_media_format.channel_mapping[0] = 1;
  27395. voc_set_device_config(session_id, voc_path_type,
  27396. &voc_be_media_format);
  27397. if (voc_get_route_flag(session_id, RX_PATH) &&
  27398. voc_get_route_flag(session_id, TX_PATH))
  27399. voc_enable_device(session_id);
  27400. }
  27401. }
  27402. /* Check if backend is an external ec ref port and set as needed */
  27403. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27404. memset(&voc_be_media_format, 0,
  27405. sizeof(struct media_format_info));
  27406. /* Get format info for ec ref port from msm_bedais[] */
  27407. voc_be_media_format.port_id = bedai->port_id;
  27408. voc_be_media_format.num_channels = bedai->channel;
  27409. voc_be_media_format.bits_per_sample = bedai->format;
  27410. voc_be_media_format.sample_rate = bedai->sample_rate;
  27411. /* Defaulting this to 1 for voice call usecases */
  27412. voc_be_media_format.channel_mapping[0] = 1;
  27413. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27414. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27415. __func__, voc_be_media_format.port_id,
  27416. voc_be_media_format.num_channels,
  27417. voc_be_media_format.bits_per_sample,
  27418. voc_be_media_format.sample_rate);
  27419. }
  27420. done:
  27421. mutex_unlock(&routing_lock);
  27422. return 0;
  27423. }
  27424. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27425. int fe_id)
  27426. {
  27427. int index, topo_id, be_idx;
  27428. unsigned long pp_config = 0;
  27429. bool mute_on;
  27430. int latency, session_type;
  27431. bool compr_passthr_mode = true;
  27432. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  27433. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  27434. pr_err("%s: Device pp params on invalid port %d\n",
  27435. __func__, port_id);
  27436. return -EINVAL;
  27437. }
  27438. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27439. if (port_id == msm_bedais[be_idx].port_id)
  27440. break;
  27441. }
  27442. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27443. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27444. return -EINVAL;
  27445. }
  27446. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27447. if (msm_bedais_pp_params[index].port_id == port_id)
  27448. break;
  27449. }
  27450. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27451. pr_err("%s: Invalid backend pp params index %d\n",
  27452. __func__, index);
  27453. return -EINVAL;
  27454. }
  27455. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  27456. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  27457. pr_err("%s: Invalid passthrough topology 0x%x\n",
  27458. __func__, topo_id);
  27459. return -EINVAL;
  27460. }
  27461. session_type =
  27462. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27463. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27464. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  27465. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  27466. compr_passthr_mode = false;
  27467. pp_config = msm_bedais_pp_params[index].pp_params_config;
  27468. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  27469. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27470. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  27471. mute_on = msm_bedais_pp_params[index].mute_on;
  27472. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27473. adm_send_compressed_device_mute(port_id,
  27474. copp_idx,
  27475. mute_on);
  27476. }
  27477. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  27478. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27479. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  27480. &pp_config);
  27481. latency = msm_bedais_pp_params[index].latency;
  27482. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27483. adm_send_compressed_device_latency(port_id,
  27484. copp_idx,
  27485. latency);
  27486. }
  27487. return 0;
  27488. }
  27489. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  27490. {
  27491. uint32_t topology = NULL_COPP_TOPOLOGY;
  27492. void *cal_info = NULL;
  27493. uint32_t size = 0;
  27494. /* Retrieve cal_info size from cal data*/
  27495. if (data_size < sizeof(struct audio_cal_type_basic) +
  27496. sizeof(struct audio_cal_info_adm_top)) {
  27497. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  27498. goto done;
  27499. }
  27500. size = data_size - sizeof(struct audio_cal_type_basic);
  27501. cal_info = kzalloc(size, GFP_KERNEL);
  27502. if (!cal_info)
  27503. goto done;
  27504. memcpy(cal_info,
  27505. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  27506. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  27507. kfree(cal_info);
  27508. cal_info = NULL;
  27509. done:
  27510. pr_debug("%s: Using topology %d\n", __func__, topology);
  27511. return topology;
  27512. }
  27513. static void msm_routing_load_topology(size_t data_size, void *data)
  27514. {
  27515. uint32_t topology_id;
  27516. int ret = -EINVAL;
  27517. topology_id = msm_routing_get_topology(data_size, data);
  27518. if (topology_id != NULL_COPP_TOPOLOGY)
  27519. ret = q6core_load_unload_topo_modules(topology_id,
  27520. CORE_LOAD_TOPOLOGY);
  27521. if (ret < 0)
  27522. pr_debug("%s %d load topology failed\n",
  27523. __func__, topology_id);
  27524. }
  27525. static void msm_routing_unload_topology(uint32_t topology_id)
  27526. {
  27527. int ret = -EINVAL;
  27528. if (topology_id != NULL_COPP_TOPOLOGY)
  27529. ret = q6core_load_unload_topo_modules(topology_id,
  27530. CORE_UNLOAD_TOPOLOGY);
  27531. if (ret < 0)
  27532. pr_debug("%s %d unload topology failed\n",
  27533. __func__, topology_id);
  27534. }
  27535. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27536. struct snd_ctl_elem_value *ucontrol)
  27537. {
  27538. int pp_id = ucontrol->value.integer.value[0];
  27539. int port_id = 0;
  27540. int index, be_idx, i, topo_id, idx;
  27541. bool mute;
  27542. int latency, session_type;
  27543. bool compr_passthr_mode = true;
  27544. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27545. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27546. port_id = msm_bedais[be_idx].port_id;
  27547. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27548. break;
  27549. }
  27550. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27551. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27552. return -EINVAL;
  27553. }
  27554. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27555. if (msm_bedais_pp_params[index].port_id == port_id)
  27556. break;
  27557. }
  27558. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27559. pr_err("%s: Invalid pp params backend index %d\n",
  27560. __func__, index);
  27561. return -EINVAL;
  27562. }
  27563. session_type =
  27564. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27565. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27566. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27567. MSM_FRONTEND_DAI_MM_SIZE) {
  27568. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27569. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27570. compr_passthr_mode = false;
  27571. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27572. unsigned long copp =
  27573. session_copp_map[i]
  27574. [SESSION_TYPE_RX][be_idx];
  27575. if (!test_bit(idx, &copp))
  27576. continue;
  27577. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27578. idx);
  27579. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27580. continue;
  27581. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27582. __func__, port_id, copp, msm_bedais[be_idx].active,
  27583. fe_dai_map[i][session_type].passthr_mode);
  27584. switch (pp_id) {
  27585. case ADM_PP_PARAM_MUTE_ID:
  27586. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27587. mute = ucontrol->value.integer.value[1] ? true : false;
  27588. msm_bedais_pp_params[index].mute_on = mute;
  27589. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27590. &msm_bedais_pp_params[index].pp_params_config);
  27591. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27592. adm_send_compressed_device_mute(port_id,
  27593. idx, mute);
  27594. break;
  27595. case ADM_PP_PARAM_LATENCY_ID:
  27596. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27597. msm_bedais_pp_params[index].latency =
  27598. ucontrol->value.integer.value[1];
  27599. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27600. &msm_bedais_pp_params[index].pp_params_config);
  27601. latency = msm_bedais_pp_params[index].latency =
  27602. ucontrol->value.integer.value[1];
  27603. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27604. adm_send_compressed_device_latency(port_id,
  27605. idx, latency);
  27606. break;
  27607. default:
  27608. pr_info("%s, device pp param %d not supported\n",
  27609. __func__, pp_id);
  27610. break;
  27611. }
  27612. }
  27613. }
  27614. return 0;
  27615. }
  27616. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27617. struct snd_ctl_elem_value *ucontrol)
  27618. {
  27619. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27620. return 0;
  27621. }
  27622. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27623. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27624. 0, 3, msm_routing_get_device_pp_params_mixer,
  27625. msm_routing_put_device_pp_params_mixer),
  27626. };
  27627. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27628. struct snd_ctl_elem_value *ucontrol)
  27629. {
  27630. ucontrol->value.integer.value[0] =
  27631. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27632. pr_debug("%s: status %ld\n", __func__,
  27633. ucontrol->value.integer.value[0]);
  27634. return 0;
  27635. }
  27636. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27637. struct snd_ctl_elem_value *ucontrol)
  27638. {
  27639. int32_t status = 0;
  27640. status = core_set_license(ucontrol->value.integer.value[0],
  27641. APTX_CLASSIC_DEC_LICENSE_ID);
  27642. pr_debug("%s: status %d\n", __func__, status);
  27643. return status;
  27644. }
  27645. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27646. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27647. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27648. msm_aptx_dec_license_control_put),
  27649. };
  27650. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27651. struct snd_ctl_elem_value *ucontrol)
  27652. {
  27653. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27654. uint32_t be_idx = ucontrol->value.integer.value[0];
  27655. int i;
  27656. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27657. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27658. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27659. pr_err("%s: Invalid channel map %d\n",
  27660. __func__, channel_map[i]);
  27661. return -EINVAL;
  27662. }
  27663. }
  27664. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27665. return 0;
  27666. }
  27667. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27668. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27669. MSM_BACKEND_DAI_MAX, 0,
  27670. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27671. msm_routing_put_port_chmap_mixer),
  27672. };
  27673. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27674. struct snd_ctl_elem_info *uinfo)
  27675. {
  27676. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27677. uinfo->count = sizeof(be_dai_name_table);
  27678. return 0;
  27679. }
  27680. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27681. unsigned int __user *bytes,
  27682. unsigned int size)
  27683. {
  27684. int i;
  27685. int ret = 0;
  27686. if (size < sizeof(be_dai_name_table)) {
  27687. pr_err("%s: invalid size %d requested, returning\n",
  27688. __func__, size);
  27689. ret = -EINVAL;
  27690. goto done;
  27691. }
  27692. /*
  27693. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27694. * needed when adding new backends
  27695. */
  27696. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27697. be_dai_name_table[i].be_id = i;
  27698. strlcpy(be_dai_name_table[i].be_name,
  27699. msm_bedais[i].name,
  27700. LPASS_BE_NAME_MAX_LENGTH);
  27701. }
  27702. ret = copy_to_user(bytes, &be_dai_name_table,
  27703. sizeof(be_dai_name_table));
  27704. if (ret) {
  27705. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27706. ret = -EFAULT;
  27707. }
  27708. done:
  27709. return ret;
  27710. }
  27711. static const struct snd_kcontrol_new
  27712. msm_routing_be_dai_name_table_mixer_controls[] = {
  27713. {
  27714. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27715. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27716. .info = msm_routing_be_dai_name_table_info,
  27717. .name = "Backend DAI Name Table",
  27718. .tlv.c = snd_soc_bytes_tlv_callback,
  27719. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27720. .max = sizeof(be_dai_name_table),
  27721. .get = msm_routing_be_dai_name_table_tlv_get,
  27722. }
  27723. },
  27724. };
  27725. static int msm_routing_stereo_channel_reverse_control_get(
  27726. struct snd_kcontrol *kcontrol,
  27727. struct snd_ctl_elem_value *ucontrol)
  27728. {
  27729. ucontrol->value.integer.value[0] = swap_ch;
  27730. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27731. ucontrol->value.integer.value[0]);
  27732. return 0;
  27733. }
  27734. static int msm_routing_stereo_channel_reverse_control_put(
  27735. struct snd_kcontrol *kcontrol,
  27736. struct snd_ctl_elem_value *ucontrol)
  27737. {
  27738. int i, idx, be_index, port_id;
  27739. int ret = 0;
  27740. unsigned long copp;
  27741. pr_debug("%s Swap channel value:%ld\n", __func__,
  27742. ucontrol->value.integer.value[0]);
  27743. swap_ch = ucontrol->value.integer.value[0];
  27744. mutex_lock(&routing_lock);
  27745. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27746. port_id = msm_bedais[be_index].port_id;
  27747. if (!msm_bedais[be_index].active)
  27748. continue;
  27749. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27750. MSM_FRONTEND_DAI_MM_SIZE) {
  27751. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27752. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27753. if (!test_bit(idx, &copp))
  27754. continue;
  27755. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27756. __func__, port_id, idx);
  27757. ret = adm_swap_speaker_channels(
  27758. port_id, idx,
  27759. msm_bedais[be_index].sample_rate,
  27760. swap_ch);
  27761. if (ret) {
  27762. pr_err("%s:Swap_channel failed, err=%d\n",
  27763. __func__, ret);
  27764. goto done;
  27765. }
  27766. }
  27767. }
  27768. }
  27769. done:
  27770. mutex_unlock(&routing_lock);
  27771. return ret;
  27772. }
  27773. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27774. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27775. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27776. msm_routing_stereo_channel_reverse_control_put),
  27777. };
  27778. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27779. struct snd_ctl_elem_info *uinfo)
  27780. {
  27781. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  27782. uinfo->count = 1;
  27783. return 0;
  27784. }
  27785. static int msm_routing_instance_id_support_put(
  27786. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27787. {
  27788. bool supported = ucontrol->value.integer.value[0] ? true : false;
  27789. q6common_update_instance_id_support(supported);
  27790. return 0;
  27791. }
  27792. static int msm_routing_instance_id_support_get(
  27793. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27794. {
  27795. bool supported = false;
  27796. supported = q6common_is_instance_id_supported();
  27797. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  27798. return 0;
  27799. }
  27800. static const struct snd_kcontrol_new
  27801. msm_routing_feature_support_mixer_controls[] = {
  27802. {
  27803. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  27804. SNDRV_CTL_ELEM_ACCESS_WRITE,
  27805. .info = msm_routing_instance_id_support_info,
  27806. .name = "Instance ID Support",
  27807. .put = msm_routing_instance_id_support_put,
  27808. .get = msm_routing_instance_id_support_get,
  27809. },
  27810. };
  27811. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  27812. .hw_params = msm_pcm_routing_hw_params,
  27813. .close = msm_pcm_routing_close,
  27814. .prepare = msm_pcm_routing_prepare,
  27815. };
  27816. /* Not used but frame seems to require it */
  27817. static int msm_routing_probe(struct snd_soc_component *component)
  27818. {
  27819. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  27820. ARRAY_SIZE(msm_qdsp6_widgets));
  27821. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  27822. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  27823. snd_soc_dapm_add_routes(&component->dapm, intercon,
  27824. ARRAY_SIZE(intercon));
  27825. snd_soc_dapm_new_widgets(component->dapm.card);
  27826. snd_soc_add_component_controls(component, lsm_controls,
  27827. ARRAY_SIZE(lsm_controls));
  27828. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  27829. ARRAY_SIZE(aanc_slim_0_rx_mux));
  27830. snd_soc_add_component_controls(component, aanc_noise_level,
  27831. ARRAY_SIZE(aanc_noise_level));
  27832. snd_soc_add_component_controls(component, msm_voc_session_controls,
  27833. ARRAY_SIZE(msm_voc_session_controls));
  27834. snd_soc_add_component_controls(component, app_type_cfg_controls,
  27835. ARRAY_SIZE(app_type_cfg_controls));
  27836. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  27837. ARRAY_SIZE(lsm_app_type_cfg_controls));
  27838. snd_soc_add_component_controls(component, module_cfg_controls,
  27839. ARRAY_SIZE(module_cfg_controls));
  27840. snd_soc_add_component_controls(component,
  27841. stereo_to_custom_stereo_controls,
  27842. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  27843. snd_soc_add_component_controls(component, ec_ref_param_controls,
  27844. ARRAY_SIZE(ec_ref_param_controls));
  27845. snd_soc_add_component_controls(component, channel_mixer_controls,
  27846. ARRAY_SIZE(channel_mixer_controls));
  27847. msm_qti_pp_add_controls(component);
  27848. msm_dts_srs_tm_add_controls(component);
  27849. msm_dolby_dap_add_controls(component);
  27850. snd_soc_add_component_controls(component,
  27851. use_ds1_or_ds2_controls,
  27852. ARRAY_SIZE(use_ds1_or_ds2_controls));
  27853. snd_soc_add_component_controls(component,
  27854. hifi_filter_controls,
  27855. ARRAY_SIZE(hifi_filter_controls));
  27856. snd_soc_add_component_controls(component,
  27857. device_pp_params_mixer_controls,
  27858. ARRAY_SIZE(device_pp_params_mixer_controls));
  27859. snd_soc_add_component_controls(component,
  27860. msm_routing_be_dai_name_table_mixer_controls,
  27861. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  27862. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  27863. ARRAY_SIZE(msm_source_tracking_controls));
  27864. snd_soc_add_component_controls(component, adm_channel_config_controls,
  27865. ARRAY_SIZE(adm_channel_config_controls));
  27866. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  27867. ARRAY_SIZE(aptx_dec_license_controls));
  27868. snd_soc_add_component_controls(component,
  27869. stereo_channel_reverse_control,
  27870. ARRAY_SIZE(stereo_channel_reverse_control));
  27871. snd_soc_add_component_controls(
  27872. component, msm_routing_feature_support_mixer_controls,
  27873. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  27874. snd_soc_add_component_controls(component,
  27875. port_multi_channel_map_mixer_controls,
  27876. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  27877. return 0;
  27878. }
  27879. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  27880. {
  27881. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  27882. }
  27883. void msm_routing_pcm_free(struct snd_pcm *pcm)
  27884. {
  27885. msm_pcm_routing_hwdep_free(pcm);
  27886. }
  27887. static struct snd_soc_component_driver msm_soc_routing_component = {
  27888. .name = DRV_NAME,
  27889. .ops = &msm_routing_pcm_ops,
  27890. .probe = msm_routing_probe,
  27891. .pcm_new = msm_routing_pcm_new,
  27892. .pcm_free = msm_routing_pcm_free,
  27893. };
  27894. static int msm_routing_pcm_probe(struct platform_device *pdev)
  27895. {
  27896. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  27897. return snd_soc_register_component(&pdev->dev,
  27898. &msm_soc_routing_component,
  27899. NULL, 0);
  27900. }
  27901. static int msm_routing_pcm_remove(struct platform_device *pdev)
  27902. {
  27903. snd_soc_unregister_component(&pdev->dev);
  27904. return 0;
  27905. }
  27906. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  27907. {.compatible = "qcom,msm-pcm-routing"},
  27908. {}
  27909. };
  27910. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  27911. static struct platform_driver msm_routing_pcm_driver = {
  27912. .driver = {
  27913. .name = "msm-pcm-routing",
  27914. .owner = THIS_MODULE,
  27915. .of_match_table = msm_pcm_routing_dt_match,
  27916. .suppress_bind_attrs = true,
  27917. },
  27918. .probe = msm_routing_pcm_probe,
  27919. .remove = msm_routing_pcm_remove,
  27920. };
  27921. int msm_routing_check_backend_enabled(int fedai_id)
  27922. {
  27923. int i;
  27924. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  27925. /* bad ID assigned in machine driver */
  27926. pr_err("%s: bad MM ID\n", __func__);
  27927. return 0;
  27928. }
  27929. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27930. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  27931. return msm_bedais[i].active;
  27932. }
  27933. return 0;
  27934. }
  27935. static int get_cal_type_index(int32_t cal_type)
  27936. {
  27937. int ret = -EINVAL;
  27938. switch (cal_type) {
  27939. case ADM_TOPOLOGY_CAL_TYPE:
  27940. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  27941. break;
  27942. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  27943. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  27944. break;
  27945. default:
  27946. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  27947. }
  27948. return ret;
  27949. }
  27950. static int msm_routing_set_cal(int32_t cal_type,
  27951. size_t data_size, void *data)
  27952. {
  27953. int ret = 0;
  27954. int cal_index;
  27955. pr_debug("%s\n", __func__);
  27956. cal_index = get_cal_type_index(cal_type);
  27957. if (cal_index < 0) {
  27958. pr_err("%s: Could not get cal index %d\n",
  27959. __func__, cal_index);
  27960. ret = -EINVAL;
  27961. goto done;
  27962. }
  27963. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  27964. if (ret < 0) {
  27965. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  27966. __func__, ret, cal_type);
  27967. ret = -EINVAL;
  27968. goto done;
  27969. }
  27970. /* Pre-load if it is ADM topology */
  27971. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  27972. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27973. msm_routing_load_topology(data_size, data);
  27974. }
  27975. done:
  27976. return ret;
  27977. }
  27978. static void msm_routing_delete_cal_data(void)
  27979. {
  27980. pr_debug("%s\n", __func__);
  27981. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27982. }
  27983. static int msm_routing_init_cal_data(void)
  27984. {
  27985. int ret = 0;
  27986. struct cal_type_info cal_type_info[] = {
  27987. {{ADM_TOPOLOGY_CAL_TYPE,
  27988. {NULL, NULL, NULL,
  27989. msm_routing_set_cal, NULL, NULL} },
  27990. {NULL, NULL, cal_utils_match_buf_num} },
  27991. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  27992. {NULL, NULL, NULL,
  27993. msm_routing_set_cal, NULL, NULL} },
  27994. {NULL, NULL, cal_utils_match_buf_num} },
  27995. };
  27996. pr_debug("%s\n", __func__);
  27997. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  27998. &cal_type_info[0]);
  27999. if (ret < 0) {
  28000. pr_err("%s: could not create cal type!\n",
  28001. __func__);
  28002. ret = -EINVAL;
  28003. goto err;
  28004. }
  28005. return ret;
  28006. err:
  28007. msm_routing_delete_cal_data();
  28008. return ret;
  28009. }
  28010. int __init msm_soc_routing_platform_init(void)
  28011. {
  28012. mutex_init(&routing_lock);
  28013. if (msm_routing_init_cal_data())
  28014. pr_err("%s: could not init cal data!\n", __func__);
  28015. afe_set_routing_callback(
  28016. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28017. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28018. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28019. return platform_driver_register(&msm_routing_pcm_driver);
  28020. }
  28021. void msm_soc_routing_platform_exit(void)
  28022. {
  28023. msm_routing_delete_cal_data();
  28024. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28025. mutex_destroy(&routing_lock);
  28026. platform_driver_unregister(&msm_routing_pcm_driver);
  28027. }
  28028. MODULE_DESCRIPTION("MSM routing platform driver");
  28029. MODULE_LICENSE("GPL v2");