msm-pcm-routing-v2.c 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, 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/pcm_params.h>
  21. #include <sound/hwdep.h>
  22. #include <audio/sound/audio_effects.h>
  23. #include <dsp/msm-dts-srs-tm-config.h>
  24. #include <dsp/q6voice.h>
  25. #include <dsp/q6adm-v2.h>
  26. #include <dsp/q6asm-v2.h>
  27. #include <dsp/q6afe-v2.h>
  28. #include <dsp/q6lsm.h>
  29. #include <dsp/q6core.h>
  30. #include <dsp/q6common.h>
  31. #include <dsp/audio_cal_utils.h>
  32. #include "msm-pcm-routing-v2.h"
  33. #include "msm-pcm-routing-devdep.h"
  34. #include "msm-qti-pp-config.h"
  35. #include "msm-dolby-dap-config.h"
  36. #include "msm-ds2-dap-config.h"
  37. #define DRV_NAME "msm-pcm-routing-v2"
  38. #ifndef CONFIG_DOLBY_DAP
  39. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  40. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  41. #endif
  42. #ifndef CONFIG_DOLBY_DS2
  43. #undef DS2_ADM_COPP_TOPOLOGY_ID
  44. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  45. #endif
  46. static struct mutex routing_lock;
  47. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  48. static int fm_switch_enable;
  49. static int hfp_switch_enable;
  50. static int a2dp_switch_enable;
  51. static int sco_switch_enable;
  52. static int int0_mi2s_switch_enable;
  53. static int int4_mi2s_switch_enable;
  54. static int pri_mi2s_switch_enable;
  55. static int sec_mi2s_switch_enable;
  56. static int tert_mi2s_switch_enable;
  57. static int quat_mi2s_switch_enable;
  58. static int quin_mi2s_switch_enable;
  59. static int sen_mi2s_switch_enable;
  60. static int fm_pcmrx_switch_enable;
  61. static int usb_switch_enable;
  62. static int lsm_port_index[MAX_LSM_SESSIONS];
  63. static int slim0_rx_aanc_fb_port;
  64. static int msm_route_ec_ref_rx;
  65. static int msm_ec_ref_ch = 4;
  66. static int msm_ec_ref_ch_downmixed = 4;
  67. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  68. static int msm_ec_ref_sampling_rate = 48000;
  69. static uint32_t voc_session_id = ALL_SESSION_VSID;
  70. static int msm_route_ext_ec_ref;
  71. static bool is_custom_stereo_on;
  72. static bool is_ds2_on;
  73. static bool ffecns_freeze_event;
  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 TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  113. #define LSM_FUNCTION_TEXT "LSM Function"
  114. static const char * const lsm_port_text[] = {
  115. "None",
  116. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  117. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  118. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  119. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  120. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  121. TERT_TDM_TX_TEXT
  122. };
  123. struct msm_pcm_route_bdai_pp_params {
  124. u16 port_id; /* AFE port ID */
  125. unsigned long pp_params_config;
  126. bool mute_on;
  127. int latency;
  128. };
  129. static struct msm_pcm_route_bdai_pp_params
  130. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  131. {HDMI_RX, 0, 0, 0},
  132. {DISPLAY_PORT_RX, 0, 0, 0},
  133. };
  134. /*
  135. * The be_dai_name_table is passed to HAL so that it can specify the
  136. * BE ID for the BE it wants to enable based on the name. Thus there
  137. * is a matching table and structure in HAL that need to be updated
  138. * if any changes to these are made.
  139. */
  140. struct msm_pcm_route_bdai_name {
  141. unsigned int be_id;
  142. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  143. };
  144. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  145. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  146. int fe_id);
  147. static void msm_routing_load_topology(size_t data_size, void *data);
  148. static void msm_routing_unload_topology(uint32_t topology_id);
  149. static int msm_routing_get_bit_width(unsigned int format)
  150. {
  151. int bit_width;
  152. switch (format) {
  153. case SNDRV_PCM_FORMAT_S32_LE:
  154. bit_width = 32;
  155. break;
  156. case SNDRV_PCM_FORMAT_S24_LE:
  157. case SNDRV_PCM_FORMAT_S24_3LE:
  158. bit_width = 24;
  159. break;
  160. case SNDRV_PCM_FORMAT_S16_LE:
  161. default:
  162. bit_width = 16;
  163. }
  164. return bit_width;
  165. }
  166. static bool msm_is_resample_needed(int input_sr, int output_sr)
  167. {
  168. bool rc = false;
  169. if (input_sr != output_sr)
  170. rc = true;
  171. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  172. (rc ? "oh yes" : "not really"),
  173. input_sr, output_sr);
  174. return rc;
  175. }
  176. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  177. int channels)
  178. {
  179. int rc = 0;
  180. switch (topology) {
  181. case SRS_TRUMEDIA_TOPOLOGY_ID:
  182. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  183. msm_dts_srs_tm_init(port_id, copp_idx);
  184. break;
  185. case DS2_ADM_COPP_TOPOLOGY_ID:
  186. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  187. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  192. __func__, topology, port_id,
  193. is_custom_stereo_on, rc);
  194. break;
  195. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  196. if (is_ds2_on) {
  197. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  198. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. } else {
  204. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  205. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  206. is_custom_stereo_on);
  207. if (rc < 0)
  208. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  209. __func__, topology, port_id, rc);
  210. }
  211. break;
  212. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  213. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  214. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  215. if (rc < 0)
  216. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  217. __func__, topology, port_id, copp_idx, rc);
  218. break;
  219. default:
  220. /* custom topology specific feature param handlers */
  221. break;
  222. }
  223. }
  224. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  225. {
  226. switch (topology) {
  227. case SRS_TRUMEDIA_TOPOLOGY_ID:
  228. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  229. msm_dts_srs_tm_deinit(port_id);
  230. break;
  231. case DS2_ADM_COPP_TOPOLOGY_ID:
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  233. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  234. msm_ds2_dap_deinit(port_id);
  235. break;
  236. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  237. if (is_ds2_on) {
  238. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_ds2_dap_deinit(port_id);
  240. } else {
  241. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  242. msm_dolby_dap_deinit(port_id);
  243. }
  244. break;
  245. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  246. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  247. msm_qti_pp_asphere_deinit(port_id);
  248. break;
  249. default:
  250. /* custom topology specific feature deinit handlers */
  251. break;
  252. }
  253. }
  254. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  255. int path_type, int perf_mode)
  256. {
  257. int itr = 0, rc = 0;
  258. if ((path_type == ADM_PATH_PLAYBACK) &&
  259. (perf_mode == LEGACY_PCM_MODE) &&
  260. is_custom_stereo_on) {
  261. for (itr = 0; itr < payload.num_copps; itr++) {
  262. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  263. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  264. continue;
  265. }
  266. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  267. payload.port_id[itr],
  268. payload.copp_idx[itr],
  269. payload.session_id,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE);
  274. if (rc < 0)
  275. pr_err("%s: err setting custom stereo\n",
  276. __func__);
  277. }
  278. }
  279. }
  280. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  281. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  282. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  283. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  284. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  285. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  286. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  287. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  288. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  289. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  290. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  291. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_RX},
  293. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AFE_PCM_TX},
  295. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_RX},
  297. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_AUXPCM_TX},
  299. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE_PLAYBACK_TX},
  301. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_VOICE2_PLAYBACK_TX},
  303. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_RX},
  305. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  306. LPASS_BE_INCALL_RECORD_TX},
  307. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  308. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  309. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  310. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  311. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  312. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  313. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  314. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  315. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  316. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  317. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  318. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  319. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  320. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  321. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  322. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  323. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  324. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  325. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_RX},
  331. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_QUAT_MI2S_TX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_RX},
  335. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_MI2S_TX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_RX},
  339. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_MI2S_TX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_RX},
  343. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_TERT_MI2S_TX},
  345. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_AUDIO_I2S_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_RX},
  349. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_SEC_AUXPCM_TX},
  351. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_SPDIF_RX},
  353. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SEC_MI2S_RX_SD1},
  355. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_RX},
  357. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_QUIN_MI2S_TX},
  359. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_SENARY_MI2S_TX},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_0},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_1},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_2},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_3},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_4},
  381. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_RX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_TX_5},
  385. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_RX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_TX_6},
  389. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_RX_7},
  391. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_PRI_TDM_TX_7},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_0},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_1},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_2},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_3},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_4},
  413. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_RX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_TX_5},
  417. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_RX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_TX_6},
  421. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_RX_7},
  423. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_SEC_TDM_TX_7},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_0},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_1},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_2},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_3},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_4},
  445. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_RX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_TX_5},
  449. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_RX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_TX_6},
  453. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_RX_7},
  455. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_TERT_TDM_TX_7},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_0},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_1},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_2},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_3},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_4},
  477. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_RX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_TX_5},
  481. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_RX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_TX_6},
  485. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_RX_7},
  487. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUAT_TDM_TX_7},
  489. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_0},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_1},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_2},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_3},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_4},
  509. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_RX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_TX_5},
  513. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_RX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_TX_6},
  517. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_RX_7},
  519. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_QUIN_TDM_TX_7},
  521. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_RX_0},
  523. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_TX_0},
  525. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_RX_1},
  527. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_TX_1},
  529. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_RX_2},
  531. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_TX_2},
  533. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_RX_3},
  535. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_TX_3},
  537. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_RX_4},
  539. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_TX_4},
  541. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_RX_5},
  543. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_TX_5},
  545. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_RX_6},
  547. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_TX_6},
  549. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_RX_7},
  551. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_SEN_TDM_TX_7},
  553. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT_BT_A2DP_RX},
  555. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_RX},
  557. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_USB_AUDIO_TX},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT},
  561. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_DISPLAY_PORT1},
  563. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_RX},
  565. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_TERT_AUXPCM_TX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_RX},
  569. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUAT_AUXPCM_TX},
  571. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_RX},
  573. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_QUIN_AUXPCM_TX},
  575. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_RX},
  577. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT0_MI2S_TX},
  579. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_RX},
  581. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT1_MI2S_TX},
  583. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_RX},
  585. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT2_MI2S_TX},
  587. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_RX},
  589. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT3_MI2S_TX},
  591. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_RX},
  593. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT4_MI2S_TX},
  595. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_RX},
  597. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT5_MI2S_TX},
  599. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_RX},
  601. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_INT6_MI2S_TX},
  603. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_RX},
  605. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SEN_AUXPCM_TX},
  607. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_SENARY_MI2S_RX},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_RX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_TX_0},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_RX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_1},
  617. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_WSA_CDC_DMA_TX_2},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_0},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_1},
  623. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_VA_CDC_DMA_TX_2},
  625. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_RX_CDC_DMA_RX_0},
  627. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_TX_CDC_DMA_TX_0},
  629. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_RX_CDC_DMA_RX_1},
  631. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_TX_CDC_DMA_TX_1},
  633. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_RX_CDC_DMA_RX_2},
  635. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_TX_CDC_DMA_TX_2},
  637. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_RX_CDC_DMA_RX_3},
  639. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_TX_CDC_DMA_TX_3},
  641. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_RX_CDC_DMA_RX_4},
  643. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_TX_CDC_DMA_TX_4},
  645. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_RX_CDC_DMA_RX_5},
  647. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_TX_CDC_DMA_TX_5},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_6},
  651. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_RX_CDC_DMA_RX_7},
  653. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_PRI_SPDIF_TX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_RX},
  657. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  658. LPASS_BE_SEC_SPDIF_TX},
  659. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  660. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  661. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  662. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_PRI_META_MI2S_RX},
  664. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_SEC_META_MI2S_RX},
  666. { RT_PROXY_PORT_002_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_RX},
  667. { RT_PROXY_PORT_002_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_TX},
  668. };
  669. /* Track ASM playback & capture sessions of DAI
  670. * Track LSM listen sessions
  671. */
  672. static struct msm_pcm_routing_fdai_data
  673. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  674. /* MULTIMEDIA1 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA2 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA3 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA4 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA5 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA6 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA7*/
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA8 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA9 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* MULTIMEDIA10 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* MULTIMEDIA11 */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* MULTIMEDIA12 */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* MULTIMEDIA13 */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* MULTIMEDIA14 */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* MULTIMEDIA15 */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* MULTIMEDIA16 */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* MULTIMEDIA17 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* MULTIMEDIA18 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* MULTIMEDIA19 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* MULTIMEDIA20 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* MULTIMEDIA21 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* MULTIMEDIA22 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* MULTIMEDIA23 */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* MULTIMEDIA24 */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* MULTIMEDIA25 */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* MULTIMEDIA26 */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* MULTIMEDIA27 */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. /* MULTIMEDIA28 */
  756. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  757. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  758. /* MULTIMEDIA29 */
  759. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  760. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  761. /* MULTIMEDIA30 */
  762. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  763. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  764. /* VOIP */
  765. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  766. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  767. /* AFE_RX */
  768. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  769. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  770. /* AFE_TX */
  771. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  772. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  773. /* VOICE_STUB */
  774. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  775. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  776. /* DTMF_RX */
  777. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  778. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  779. /* QCHAT */
  780. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  781. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  782. /* VOLTE_STUB */
  783. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  784. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  785. /* LSM1 */
  786. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  787. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  788. /* LSM2 */
  789. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  790. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  791. /* LSM3 */
  792. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  793. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  794. /* LSM4 */
  795. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  796. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  797. /* LSM5 */
  798. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  799. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  800. /* LSM6 */
  801. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  802. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  803. /* LSM7 */
  804. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  805. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  806. /* LSM8 */
  807. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  808. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  809. /* VOICE2_STUB */
  810. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  811. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  812. /* VOICEMMODE1 */
  813. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  814. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  815. /* VOICEMMODE2 */
  816. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  817. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  818. };
  819. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  820. [MSM_BACKEND_DAI_MAX];
  821. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  822. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  823. static struct msm_pcm_stream_app_type_cfg
  824. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  825. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  826. /* The caller of this should acquire routing lock */
  827. void msm_pcm_routing_get_bedai_info(int be_idx,
  828. struct msm_pcm_routing_bdai_data *be_dai)
  829. {
  830. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  831. memcpy(be_dai, &msm_bedais[be_idx],
  832. sizeof(struct msm_pcm_routing_bdai_data));
  833. }
  834. /* The caller of this should acquire routing lock */
  835. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  836. struct msm_pcm_routing_fdai_data *fe_dai)
  837. {
  838. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  839. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  840. sizeof(struct msm_pcm_routing_fdai_data));
  841. }
  842. void msm_pcm_routing_acquire_lock(void)
  843. {
  844. mutex_lock(&routing_lock);
  845. }
  846. void msm_pcm_routing_release_lock(void)
  847. {
  848. mutex_unlock(&routing_lock);
  849. }
  850. static int msm_pcm_routing_get_app_type_idx(int app_type)
  851. {
  852. int idx;
  853. pr_debug("%s: app_type: %d\n", __func__, app_type);
  854. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  855. if (app_type_cfg[idx].app_type == app_type)
  856. return idx;
  857. }
  858. pr_info("%s: App type not available, fallback to default\n", __func__);
  859. return 0;
  860. }
  861. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  862. {
  863. int idx;
  864. pr_debug("%s: app_type: %d\n", __func__, app_type);
  865. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  866. if (lsm_app_type_cfg[idx].app_type == app_type)
  867. return idx;
  868. }
  869. pr_debug("%s: App type not available, fallback to default\n", __func__);
  870. return 0;
  871. }
  872. static int get_port_id(int port_id)
  873. {
  874. int ret = port_id;
  875. if (port_id == AFE_LOOPBACK_TX) {
  876. /*
  877. * Return afe_loopback_tx_port_id if set. Else return
  878. * msm_ec_ref_port_id to maintain backward compatibility.
  879. */
  880. if (afe_loopback_tx_port_id != -1)
  881. ret = afe_loopback_tx_port_id;
  882. else
  883. ret = msm_ec_ref_port_id;
  884. }
  885. return ret;
  886. }
  887. static bool is_mm_lsm_fe_id(int fe_id)
  888. {
  889. bool rc = true;
  890. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  891. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  892. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  893. rc = false;
  894. }
  895. return rc;
  896. }
  897. /*
  898. * msm_pcm_routing_send_chmix_cfg:
  899. * send the channel mixer command to mix the input channels
  900. * into output channels.
  901. *
  902. * @fe_id: front end id
  903. * @ip_channel_cnt: input channel count
  904. * @op_channel_cnt: output channel count
  905. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  906. * @session_type: indicates session is of type TX or RX
  907. * @stream_type: indicates either Audio or Listen stream type
  908. */
  909. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  910. int op_channel_cnt, int *ch_wght_coeff,
  911. int session_type, int stream_type)
  912. {
  913. int rc = 0, idx = 0;
  914. int be_index = 0, port_id;
  915. unsigned int session_id = 0;
  916. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  917. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  918. stream_type);
  919. if (!is_mm_lsm_fe_id(fe_id)) {
  920. /* bad ID assigned in machine driver */
  921. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  922. return -EINVAL;
  923. }
  924. if (ch_wght_coeff == NULL) {
  925. pr_err("%s: Null channel weightage coefficients passed\n",
  926. __func__);
  927. return -EINVAL;
  928. }
  929. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  930. port_id = msm_bedais[be_index].port_id;
  931. if (!msm_bedais[be_index].active ||
  932. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  933. continue;
  934. session_id = fe_dai_map[fe_id][session_type].strm_id;
  935. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  936. unsigned long copp =
  937. session_copp_map[fe_id][session_type][be_index];
  938. if (!test_bit(idx, &copp))
  939. continue;
  940. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  941. session_id, ip_channel_cnt,
  942. op_channel_cnt, ch_wght_coeff,
  943. session_type, stream_type);
  944. if (rc < 0)
  945. pr_err("%s: err setting channel mix config\n",
  946. __func__);
  947. }
  948. }
  949. return 0;
  950. }
  951. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  952. /**
  953. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  954. * setting before use case start.
  955. *
  956. * @fe_id: frontend idx
  957. * @type: stream direction type
  958. * @params: parameters of channel mixer setting
  959. *
  960. * Return 0 for success
  961. */
  962. int msm_pcm_routing_set_channel_mixer_cfg(
  963. int fe_id, int type,
  964. struct msm_pcm_channel_mixer *params)
  965. {
  966. int i, j = 0;
  967. channel_mixer_v2[fe_id][type].enable = params->enable;
  968. channel_mixer_v2[fe_id][type].rule = params->rule;
  969. channel_mixer_v2[fe_id][type].input_channel =
  970. params->input_channel;
  971. channel_mixer_v2[fe_id][type].output_channel =
  972. params->output_channel;
  973. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  974. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  975. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  976. params->in_ch_map[i];
  977. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  978. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  979. params->out_ch_map[i];
  980. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  981. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  982. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  983. params->channel_weight[i][j];
  984. channel_mixer_v2[fe_id][type].override_in_ch_map =
  985. params->override_in_ch_map;
  986. channel_mixer_v2[fe_id][type].override_out_ch_map =
  987. params->override_out_ch_map;
  988. return 0;
  989. }
  990. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  991. int msm_pcm_routing_reg_stream_app_type_cfg(
  992. int fedai_id, int session_type, int be_id,
  993. struct msm_pcm_stream_app_type_cfg *cfg_data)
  994. {
  995. int ret = 0;
  996. if (cfg_data == NULL) {
  997. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  998. ret = -EINVAL;
  999. goto done;
  1000. }
  1001. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1002. __func__, fedai_id, session_type, be_id,
  1003. cfg_data->app_type, cfg_data->acdb_dev_id,
  1004. cfg_data->sample_rate);
  1005. if (!is_mm_lsm_fe_id(fedai_id)) {
  1006. pr_err("%s: Invalid machine driver ID %d\n",
  1007. __func__, fedai_id);
  1008. ret = -EINVAL;
  1009. goto done;
  1010. }
  1011. if (session_type != SESSION_TYPE_RX &&
  1012. session_type != SESSION_TYPE_TX) {
  1013. pr_err("%s: Invalid session type %d\n",
  1014. __func__, session_type);
  1015. ret = -EINVAL;
  1016. goto done;
  1017. }
  1018. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1019. pr_err("%s: Received out of bounds be_id %d\n",
  1020. __func__, be_id);
  1021. ret = -EINVAL;
  1022. goto done;
  1023. }
  1024. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1025. /*
  1026. * Store the BE ID of the configuration information set as the latest so
  1027. * the get mixer control knows what to return.
  1028. */
  1029. last_be_id_configured[fedai_id][session_type] = be_id;
  1030. done:
  1031. return ret;
  1032. }
  1033. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1034. /**
  1035. * msm_pcm_routing_get_stream_app_type_cfg
  1036. *
  1037. * Receives fedai_id, session_type, be_id, and populates app_type,
  1038. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1039. * -EINVAL and does not alter passed values.
  1040. *
  1041. * fedai_id - Passed value, front end ID for which app type config is wanted
  1042. * session_type - Passed value, session type for which app type config
  1043. * is wanted
  1044. * be_id - Returned value, back end device id the app type config data is for
  1045. * cfg_data - Returned value, configuration data used by app type config
  1046. */
  1047. int msm_pcm_routing_get_stream_app_type_cfg(
  1048. int fedai_id, int session_type, int *bedai_id,
  1049. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1050. {
  1051. int be_id;
  1052. int ret = 0;
  1053. if (bedai_id == NULL) {
  1054. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. } else if (cfg_data == NULL) {
  1058. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1059. ret = -EINVAL;
  1060. goto done;
  1061. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1062. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1063. ret = -EINVAL;
  1064. goto done;
  1065. } else if (session_type != SESSION_TYPE_RX &&
  1066. session_type != SESSION_TYPE_TX) {
  1067. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1068. ret = -EINVAL;
  1069. goto done;
  1070. }
  1071. be_id = last_be_id_configured[fedai_id][session_type];
  1072. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1073. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1074. ret = -EINVAL;
  1075. goto done;
  1076. }
  1077. *bedai_id = be_id;
  1078. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1079. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1080. __func__, fedai_id, session_type, *bedai_id,
  1081. cfg_data->app_type, cfg_data->acdb_dev_id,
  1082. cfg_data->sample_rate);
  1083. done:
  1084. return ret;
  1085. }
  1086. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1087. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1088. int cal_index)
  1089. {
  1090. struct list_head *ptr, *next;
  1091. struct cal_block_data *cal_block = NULL;
  1092. pr_debug("%s\n", __func__);
  1093. list_for_each_safe(ptr, next,
  1094. &cal_data[cal_index]->cal_blocks) {
  1095. cal_block = list_entry(ptr,
  1096. struct cal_block_data, list);
  1097. if (cal_utils_is_cal_stale(cal_block))
  1098. continue;
  1099. if (((struct audio_cal_info_adm_top *)cal_block
  1100. ->cal_info)->path == path) {
  1101. return cal_block;
  1102. }
  1103. }
  1104. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1105. return NULL;
  1106. }
  1107. static struct cal_block_data *msm_routing_find_topology(int path,
  1108. int app_type,
  1109. int acdb_id,
  1110. int cal_index,
  1111. bool exact)
  1112. {
  1113. struct list_head *ptr, *next;
  1114. struct cal_block_data *cal_block = NULL;
  1115. struct audio_cal_info_adm_top *cal_info;
  1116. pr_debug("%s\n", __func__);
  1117. list_for_each_safe(ptr, next,
  1118. &cal_data[cal_index]->cal_blocks) {
  1119. cal_block = list_entry(ptr,
  1120. struct cal_block_data, list);
  1121. if (cal_utils_is_cal_stale(cal_block))
  1122. continue;
  1123. cal_info = (struct audio_cal_info_adm_top *)
  1124. cal_block->cal_info;
  1125. if ((cal_info->path == path) &&
  1126. (cal_info->app_type == app_type) &&
  1127. (cal_info->acdb_id == acdb_id)) {
  1128. return cal_block;
  1129. }
  1130. }
  1131. pr_debug("%s: Can't find topology for path %d, app %d, "
  1132. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1133. exact ? "fail" : "defaulting to search by path");
  1134. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1135. cal_index);
  1136. }
  1137. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1138. int acdb_dev_id, int idx,
  1139. bool exact)
  1140. {
  1141. int topology = -EINVAL;
  1142. struct cal_block_data *cal_block = NULL;
  1143. mutex_lock(&cal_data[idx]->lock);
  1144. cal_block = msm_routing_find_topology(session_type, app_type,
  1145. acdb_dev_id, idx, exact);
  1146. if (cal_block != NULL) {
  1147. topology = ((struct audio_cal_info_adm_top *)
  1148. cal_block->cal_info)->topology;
  1149. }
  1150. mutex_unlock(&cal_data[idx]->lock);
  1151. return topology;
  1152. }
  1153. /*
  1154. * Retrieving cal_block will mark cal_block as stale.
  1155. * Hence it cannot be reused or resent unless the flag
  1156. * is reset.
  1157. */
  1158. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1159. int be_id)
  1160. {
  1161. int topology = NULL_COPP_TOPOLOGY;
  1162. int app_type = 0, acdb_dev_id = 0;
  1163. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1164. __func__, fedai_id, session_type, be_id);
  1165. if (cal_data == NULL)
  1166. goto done;
  1167. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1168. acdb_dev_id =
  1169. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1170. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1171. topology = msm_routing_find_topology_on_index(session_type,
  1172. app_type,
  1173. acdb_dev_id,
  1174. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1175. true /*exact*/);
  1176. if (topology < 0) {
  1177. pr_debug("%s: Check for compatible topology\n", __func__);
  1178. topology = msm_routing_find_topology_on_index(session_type,
  1179. app_type,
  1180. acdb_dev_id,
  1181. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1182. false /*exact*/);
  1183. if (topology < 0)
  1184. topology = NULL_COPP_TOPOLOGY;
  1185. }
  1186. done:
  1187. pr_debug("%s: Using topology %d\n", __func__, topology);
  1188. return topology;
  1189. }
  1190. static uint8_t is_be_dai_extproc(int be_dai)
  1191. {
  1192. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1193. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1194. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1195. return 1;
  1196. else
  1197. return 0;
  1198. }
  1199. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1200. int path_type, int perf_mode,
  1201. uint32_t passthr_mode)
  1202. {
  1203. int i, port_type, j, num_copps = 0;
  1204. struct route_payload payload;
  1205. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1206. path_type == ADM_PATH_COMPRESSED_RX) ?
  1207. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1208. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1209. if (!is_be_dai_extproc(i) &&
  1210. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1211. (msm_bedais[i].active) &&
  1212. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1213. int port_id = get_port_id(msm_bedais[i].port_id);
  1214. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1215. unsigned long copp =
  1216. session_copp_map[fedai_id][sess_type][i];
  1217. if (test_bit(j, &copp)) {
  1218. payload.port_id[num_copps] = port_id;
  1219. payload.copp_idx[num_copps] = j;
  1220. payload.app_type[num_copps] =
  1221. fe_dai_app_type_cfg
  1222. [fedai_id][sess_type][i]
  1223. .app_type;
  1224. payload.acdb_dev_id[num_copps] =
  1225. fe_dai_app_type_cfg
  1226. [fedai_id][sess_type][i]
  1227. .acdb_dev_id;
  1228. payload.sample_rate[num_copps] =
  1229. fe_dai_app_type_cfg
  1230. [fedai_id][sess_type][i]
  1231. .sample_rate;
  1232. num_copps++;
  1233. }
  1234. }
  1235. }
  1236. }
  1237. if (num_copps) {
  1238. payload.num_copps = num_copps;
  1239. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1240. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1241. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1242. }
  1243. }
  1244. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1245. int stream_type)
  1246. {
  1247. int i, session_type, path_type, port_type;
  1248. u32 mode = 0;
  1249. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1250. /* bad ID assigned in machine driver */
  1251. pr_err("%s: bad MM ID\n", __func__);
  1252. return;
  1253. }
  1254. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1255. session_type = SESSION_TYPE_RX;
  1256. path_type = ADM_PATH_PLAYBACK;
  1257. port_type = MSM_AFE_PORT_TYPE_RX;
  1258. } else {
  1259. session_type = SESSION_TYPE_TX;
  1260. path_type = ADM_PATH_LIVE_REC;
  1261. port_type = MSM_AFE_PORT_TYPE_TX;
  1262. }
  1263. mutex_lock(&routing_lock);
  1264. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1265. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1266. if (!is_be_dai_extproc(i) &&
  1267. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1268. (msm_bedais[i].active) &&
  1269. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1270. mode = afe_get_port_type(msm_bedais[i].port_id);
  1271. adm_connect_afe_port(mode, dspst_id,
  1272. msm_bedais[i].port_id);
  1273. break;
  1274. }
  1275. }
  1276. mutex_unlock(&routing_lock);
  1277. }
  1278. static bool route_check_fe_id_adm_support(int fe_id)
  1279. {
  1280. bool rc = true;
  1281. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1282. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1283. /* fe id is listen while port is set to afe */
  1284. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1285. ADM_LSM_PORT_INDEX) {
  1286. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1287. __func__, fe_id,
  1288. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1289. rc = false;
  1290. }
  1291. }
  1292. return rc;
  1293. }
  1294. /*
  1295. * msm_pcm_routing_get_pp_ch_cnt:
  1296. * Read the processed channel count
  1297. *
  1298. * @fe_id: Front end ID
  1299. * @session_type: Inidicates RX or TX session type
  1300. */
  1301. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1302. {
  1303. struct msm_pcm_stream_app_type_cfg cfg_data;
  1304. int be_id = 0, app_type_idx = 0, app_type = 0;
  1305. int ret = -EINVAL;
  1306. memset(&cfg_data, 0, sizeof(cfg_data));
  1307. if (!is_mm_lsm_fe_id(fe_id)) {
  1308. pr_err("%s: bad MM ID\n", __func__);
  1309. return -EINVAL;
  1310. }
  1311. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1312. &be_id, &cfg_data);
  1313. if (ret) {
  1314. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1315. return ret;
  1316. }
  1317. app_type = cfg_data.app_type;
  1318. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1319. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1320. }
  1321. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1322. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1323. int dspst_id, int stream_type,
  1324. uint32_t passthr_mode)
  1325. {
  1326. int i, j, session_type, path_type, port_type, topology;
  1327. int num_copps = 0;
  1328. struct route_payload payload;
  1329. u32 channels, sample_rate;
  1330. u16 bit_width = 16, be_bit_width;
  1331. bool is_lsm;
  1332. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1333. __func__, fe_id, perf_mode, dspst_id,
  1334. stream_type, passthr_mode);
  1335. if (!is_mm_lsm_fe_id(fe_id)) {
  1336. /* bad ID assigned in machine driver */
  1337. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1338. return -EINVAL;
  1339. }
  1340. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1341. session_type = SESSION_TYPE_RX;
  1342. if (passthr_mode != LEGACY_PCM)
  1343. path_type = ADM_PATH_COMPRESSED_RX;
  1344. else
  1345. path_type = ADM_PATH_PLAYBACK;
  1346. port_type = MSM_AFE_PORT_TYPE_RX;
  1347. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1348. session_type = SESSION_TYPE_TX;
  1349. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1350. path_type = ADM_PATH_COMPRESSED_TX;
  1351. else
  1352. path_type = ADM_PATH_LIVE_REC;
  1353. port_type = MSM_AFE_PORT_TYPE_TX;
  1354. } else {
  1355. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1356. return -EINVAL;
  1357. }
  1358. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1359. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1360. mutex_lock(&routing_lock);
  1361. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1362. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1363. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1364. if (!route_check_fe_id_adm_support(fe_id)) {
  1365. /* ignore adm open if not supported for fe_id */
  1366. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1367. mutex_unlock(&routing_lock);
  1368. return 0;
  1369. }
  1370. payload.num_copps = 0; /* only RX needs to use payload */
  1371. /* re-enable EQ if active */
  1372. msm_qti_pp_send_eq_values(fe_id);
  1373. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1374. if (!is_be_dai_extproc(i) &&
  1375. (afe_get_port_type(msm_bedais[i].port_id) ==
  1376. port_type) &&
  1377. (msm_bedais[i].active) &&
  1378. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1379. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1380. int port_id = get_port_id(msm_bedais[i].port_id);
  1381. /*
  1382. * check if ADM needs to be configured with different
  1383. * channel mapping than backend
  1384. */
  1385. if (!msm_bedais[i].adm_override_ch)
  1386. channels = msm_bedais[i].channel;
  1387. else
  1388. channels = msm_bedais[i].adm_override_ch;
  1389. bit_width = msm_routing_get_bit_width(
  1390. msm_bedais[i].format);
  1391. app_type =
  1392. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1393. if (app_type && is_lsm) {
  1394. app_type_idx =
  1395. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1396. sample_rate =
  1397. fe_dai_app_type_cfg[fe_id][session_type][i]
  1398. .sample_rate;
  1399. bit_width =
  1400. lsm_app_type_cfg[app_type_idx].bit_width;
  1401. } else if (app_type) {
  1402. app_type_idx =
  1403. msm_pcm_routing_get_app_type_idx(
  1404. app_type);
  1405. sample_rate =
  1406. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1407. bit_width =
  1408. app_type_cfg[app_type_idx].bit_width;
  1409. } else {
  1410. sample_rate = msm_bedais[i].sample_rate;
  1411. }
  1412. acdb_dev_id =
  1413. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1414. topology = msm_routing_get_adm_topology(fe_id,
  1415. session_type,
  1416. i);
  1417. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1418. || (passthr_mode ==
  1419. COMPRESSED_PASSTHROUGH_GEN)
  1420. || (passthr_mode ==
  1421. COMPRESSED_PASSTHROUGH_IEC61937))
  1422. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1423. pr_debug("%s: Before adm open topology %d\n", __func__,
  1424. topology);
  1425. be_bit_width = msm_routing_get_bit_width(
  1426. msm_bedais[i].format);
  1427. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1428. == 384000 || msm_bedais[i].sample_rate ==
  1429. 352800) && be_bit_width == 32)
  1430. bit_width = msm_routing_get_bit_width(
  1431. SNDRV_PCM_FORMAT_S32_LE);
  1432. copp_idx =
  1433. adm_open(port_id, path_type, sample_rate,
  1434. channels, topology, perf_mode,
  1435. bit_width, app_type, acdb_dev_id,
  1436. session_type);
  1437. if ((copp_idx < 0) ||
  1438. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1439. pr_err("%s:adm open failed coppid:%d\n",
  1440. __func__, copp_idx);
  1441. mutex_unlock(&routing_lock);
  1442. return -EINVAL;
  1443. }
  1444. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1445. __func__, fe_id, session_type, i);
  1446. set_bit(copp_idx,
  1447. &session_copp_map[fe_id][session_type][i]);
  1448. if (msm_is_resample_needed(
  1449. sample_rate,
  1450. msm_bedais[i].sample_rate))
  1451. adm_copp_mfc_cfg(port_id, copp_idx,
  1452. msm_bedais[i].sample_rate);
  1453. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1454. unsigned long copp =
  1455. session_copp_map[fe_id][session_type][i];
  1456. if (test_bit(j, &copp)) {
  1457. payload.port_id[num_copps] = port_id;
  1458. payload.copp_idx[num_copps] = j;
  1459. payload.app_type[num_copps] =
  1460. fe_dai_app_type_cfg
  1461. [fe_id][session_type][i]
  1462. .app_type;
  1463. payload.acdb_dev_id[num_copps] =
  1464. fe_dai_app_type_cfg
  1465. [fe_id][session_type][i]
  1466. .acdb_dev_id;
  1467. payload.sample_rate[num_copps] =
  1468. fe_dai_app_type_cfg
  1469. [fe_id][session_type][i]
  1470. .sample_rate;
  1471. num_copps++;
  1472. }
  1473. }
  1474. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1475. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1476. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1477. msm_routing_send_device_pp_params(port_id,
  1478. copp_idx, fe_id);
  1479. }
  1480. }
  1481. if (num_copps) {
  1482. payload.num_copps = num_copps;
  1483. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1484. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1485. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1486. }
  1487. mutex_unlock(&routing_lock);
  1488. return 0;
  1489. }
  1490. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1491. {
  1492. u32 session_id;
  1493. switch (val) {
  1494. case MSM_FRONTEND_DAI_QCHAT:
  1495. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1496. break;
  1497. case MSM_FRONTEND_DAI_VOIP:
  1498. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1499. break;
  1500. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1501. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1502. break;
  1503. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1504. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1505. break;
  1506. default:
  1507. session_id = 0;
  1508. }
  1509. pr_debug("%s session_id 0x%x", __func__, session_id);
  1510. return session_id;
  1511. }
  1512. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1513. int dspst_id, int stream_type)
  1514. {
  1515. int copp_idx = 0;
  1516. int sess_type = 0;
  1517. int j = 0, be_id = 0;
  1518. int ret = 0;
  1519. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1520. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1521. return 0;
  1522. }
  1523. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1524. sess_type = SESSION_TYPE_RX;
  1525. else
  1526. sess_type = SESSION_TYPE_TX;
  1527. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1528. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1529. __func__, fe_id, sess_type);
  1530. return 0;
  1531. }
  1532. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1533. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1534. channel_mixer_v2[fe_id][sess_type].input_channel;
  1535. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1536. __func__, sess_type, fe_id,
  1537. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1538. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1539. msm_bedais[be_id].active);
  1540. if ((msm_bedais[be_id].active) &&
  1541. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1542. unsigned long copp =
  1543. session_copp_map[fe_id][sess_type][be_id];
  1544. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1545. if (test_bit(j, &copp)) {
  1546. copp_idx = j;
  1547. break;
  1548. }
  1549. }
  1550. ret = adm_programable_channel_mixer(
  1551. msm_bedais[be_id].port_id,
  1552. copp_idx, dspst_id, sess_type,
  1553. &channel_mixer_v2[fe_id][sess_type], 0);
  1554. }
  1555. return ret;
  1556. }
  1557. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1558. int dspst_id, int stream_type)
  1559. {
  1560. int copp_idx = 0;
  1561. int sess_type = 0;
  1562. int i = 0, j = 0, be_id;
  1563. int ret = 0;
  1564. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1565. dspst_id, stream_type);
  1566. if (ret) {
  1567. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1568. fe_id);
  1569. return ret;
  1570. }
  1571. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1572. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1573. return 0;
  1574. }
  1575. if (!(channel_mixer[fe_id].enable)) {
  1576. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1577. __func__, fe_id);
  1578. return 0;
  1579. }
  1580. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1581. sess_type = SESSION_TYPE_RX;
  1582. else
  1583. sess_type = SESSION_TYPE_TX;
  1584. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1585. ++i) {
  1586. be_id = channel_input[fe_id][i] - 1;
  1587. channel_mixer[fe_id].input_channels[i] =
  1588. msm_bedais[be_id].channel;
  1589. if ((msm_bedais[be_id].active) &&
  1590. test_bit(fe_id,
  1591. &msm_bedais[be_id].fe_sessions[0])) {
  1592. unsigned long copp =
  1593. session_copp_map[fe_id][sess_type][be_id];
  1594. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1595. if (test_bit(j, &copp)) {
  1596. copp_idx = j;
  1597. break;
  1598. }
  1599. }
  1600. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1601. __func__,
  1602. fe_id, be_id, msm_bedais[be_id].channel,
  1603. copp_idx);
  1604. ret = adm_programable_channel_mixer(
  1605. get_port_id(msm_bedais[be_id].port_id),
  1606. copp_idx, dspst_id, sess_type,
  1607. channel_mixer + fe_id, i);
  1608. }
  1609. }
  1610. return ret;
  1611. }
  1612. /**
  1613. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1614. * setting during runtime.
  1615. *
  1616. * @be_id: backend index
  1617. * @session_id: session index
  1618. * @session_type: session type
  1619. * @params: parameters for channel mixer
  1620. *
  1621. * Retuen: 0 for success, else error
  1622. */
  1623. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1624. int session_type,
  1625. struct msm_pcm_channel_mixer *params)
  1626. {
  1627. int rc = 0;
  1628. int port_id, copp_idx = 0;
  1629. be_id--;
  1630. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1631. pr_err("%s: invalid backend id %d\n", __func__,
  1632. be_id);
  1633. return -EINVAL;
  1634. }
  1635. port_id = msm_bedais[be_id].port_id;
  1636. copp_idx = adm_get_default_copp_idx(port_id);
  1637. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1638. __func__, port_id, copp_idx, session_id);
  1639. if ((params->input_channel < 0) ||
  1640. (params->input_channel > ADM_MAX_CHANNELS)) {
  1641. pr_err("%s: invalid input channel %d\n", __func__,
  1642. params->input_channel);
  1643. return -EINVAL;
  1644. }
  1645. if ((params->output_channel < 0) ||
  1646. (params->output_channel > ADM_MAX_CHANNELS)) {
  1647. pr_err("%s: invalid output channel %d\n", __func__,
  1648. params->output_channel);
  1649. return -EINVAL;
  1650. }
  1651. params->input_channels[0] = params->input_channel;
  1652. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1653. __func__, session_type,
  1654. params->override_in_ch_map,
  1655. params->override_out_ch_map,
  1656. msm_bedais[be_id].active);
  1657. rc = adm_programable_channel_mixer(port_id,
  1658. copp_idx,
  1659. session_id,
  1660. session_type,
  1661. params,
  1662. 0);
  1663. if (rc) {
  1664. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1665. rc = -EINVAL;
  1666. }
  1667. return rc;
  1668. }
  1669. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1670. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1671. int dspst_id, int stream_type)
  1672. {
  1673. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1674. struct route_payload payload;
  1675. u32 channels, sample_rate;
  1676. uint16_t bits_per_sample = 16, be_bit_width;
  1677. uint32_t passthr_mode = LEGACY_PCM;
  1678. int ret = 0;
  1679. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1680. /* bad ID assigned in machine driver */
  1681. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1682. return -EINVAL;
  1683. }
  1684. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1685. session_type = SESSION_TYPE_RX;
  1686. path_type = ADM_PATH_PLAYBACK;
  1687. port_type = MSM_AFE_PORT_TYPE_RX;
  1688. } else {
  1689. session_type = SESSION_TYPE_TX;
  1690. path_type = ADM_PATH_LIVE_REC;
  1691. port_type = MSM_AFE_PORT_TYPE_TX;
  1692. }
  1693. mutex_lock(&routing_lock);
  1694. payload.num_copps = 0; /* only RX needs to use payload */
  1695. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1696. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1697. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1698. /* re-enable EQ if active */
  1699. msm_qti_pp_send_eq_values(fedai_id);
  1700. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1701. if (!is_be_dai_extproc(i) &&
  1702. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1703. (msm_bedais[i].active) &&
  1704. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1705. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1706. int port_id = get_port_id(msm_bedais[i].port_id);
  1707. /*
  1708. * check if ADM needs to be configured with different
  1709. * channel mapping than backend
  1710. */
  1711. if (!msm_bedais[i].adm_override_ch)
  1712. channels = msm_bedais[i].channel;
  1713. else
  1714. channels = msm_bedais[i].adm_override_ch;
  1715. bits_per_sample = msm_routing_get_bit_width(
  1716. msm_bedais[i].format);
  1717. app_type =
  1718. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1719. if (app_type) {
  1720. app_type_idx =
  1721. msm_pcm_routing_get_app_type_idx(app_type);
  1722. sample_rate =
  1723. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1724. .sample_rate;
  1725. bits_per_sample =
  1726. app_type_cfg[app_type_idx].bit_width;
  1727. } else
  1728. sample_rate = msm_bedais[i].sample_rate;
  1729. acdb_dev_id =
  1730. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1731. .acdb_dev_id;
  1732. topology = msm_routing_get_adm_topology(fedai_id,
  1733. session_type,
  1734. i);
  1735. be_bit_width = msm_routing_get_bit_width(
  1736. msm_bedais[i].format);
  1737. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1738. 384000 ||msm_bedais[i].sample_rate == 352800)
  1739. && be_bit_width == 32)
  1740. bits_per_sample = msm_routing_get_bit_width(
  1741. SNDRV_PCM_FORMAT_S32_LE);
  1742. copp_idx = adm_open(port_id, path_type,
  1743. sample_rate, channels, topology,
  1744. perf_mode, bits_per_sample,
  1745. app_type, acdb_dev_id,
  1746. session_type);
  1747. if ((copp_idx < 0) ||
  1748. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1749. pr_err("%s: adm open failed copp_idx:%d\n",
  1750. __func__, copp_idx);
  1751. mutex_unlock(&routing_lock);
  1752. return -EINVAL;
  1753. }
  1754. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1755. __func__, fedai_id, session_type, i);
  1756. set_bit(copp_idx,
  1757. &session_copp_map[fedai_id][session_type][i]);
  1758. if (msm_is_resample_needed(
  1759. sample_rate,
  1760. msm_bedais[i].sample_rate))
  1761. adm_copp_mfc_cfg(port_id, copp_idx,
  1762. msm_bedais[i].sample_rate);
  1763. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1764. unsigned long copp =
  1765. session_copp_map[fedai_id][session_type][i];
  1766. if (test_bit(j, &copp)) {
  1767. payload.port_id[num_copps] = port_id;
  1768. payload.copp_idx[num_copps] = j;
  1769. payload.app_type[num_copps] =
  1770. fe_dai_app_type_cfg
  1771. [fedai_id][session_type]
  1772. [i].app_type;
  1773. payload.acdb_dev_id[num_copps] =
  1774. fe_dai_app_type_cfg
  1775. [fedai_id][session_type]
  1776. [i].acdb_dev_id;
  1777. payload.sample_rate[num_copps] =
  1778. fe_dai_app_type_cfg
  1779. [fedai_id][session_type]
  1780. [i].sample_rate;
  1781. num_copps++;
  1782. }
  1783. }
  1784. if (perf_mode == LEGACY_PCM_MODE)
  1785. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1786. topology, channels);
  1787. }
  1788. }
  1789. if (num_copps) {
  1790. payload.num_copps = num_copps;
  1791. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1792. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1793. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1794. }
  1795. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1796. dspst_id, stream_type);
  1797. mutex_unlock(&routing_lock);
  1798. return ret;
  1799. }
  1800. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1801. int dspst_id, int stream_type,
  1802. struct msm_pcm_routing_evt event_info)
  1803. {
  1804. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1805. stream_type)) {
  1806. pr_err("%s: failed to reg phy stream\n", __func__);
  1807. return -EINVAL;
  1808. }
  1809. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1810. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1811. else
  1812. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1813. return 0;
  1814. }
  1815. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1816. {
  1817. int i, port_type, session_type, path_type, topology, port_id;
  1818. struct msm_pcm_routing_fdai_data *fdai;
  1819. if (!is_mm_lsm_fe_id(fedai_id)) {
  1820. /* bad ID assigned in machine driver */
  1821. pr_err("%s: bad MM ID\n", __func__);
  1822. return;
  1823. }
  1824. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1825. port_type = MSM_AFE_PORT_TYPE_RX;
  1826. session_type = SESSION_TYPE_RX;
  1827. path_type = ADM_PATH_PLAYBACK;
  1828. } else {
  1829. port_type = MSM_AFE_PORT_TYPE_TX;
  1830. session_type = SESSION_TYPE_TX;
  1831. path_type = ADM_PATH_LIVE_REC;
  1832. }
  1833. mutex_lock(&routing_lock);
  1834. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1835. if (!is_be_dai_extproc(i) &&
  1836. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1837. (msm_bedais[i].active) &&
  1838. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1839. int idx;
  1840. unsigned long copp =
  1841. session_copp_map[fedai_id][session_type][i];
  1842. fdai = &fe_dai_map[fedai_id][session_type];
  1843. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1844. if (test_bit(idx, &copp))
  1845. break;
  1846. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1847. pr_debug("%s: copp idx is invalid, exiting\n",
  1848. __func__);
  1849. continue;
  1850. }
  1851. port_id = get_port_id(msm_bedais[i].port_id);
  1852. topology = adm_get_topology_for_port_copp_idx(
  1853. port_id, idx);
  1854. msm_routing_unload_topology(topology);
  1855. adm_close(port_id, fdai->perf_mode, idx);
  1856. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1857. __func__, copp, fedai_id, session_type, i);
  1858. clear_bit(idx,
  1859. &session_copp_map[fedai_id][session_type][i]);
  1860. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1861. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1862. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1863. (fdai->passthr_mode == LEGACY_PCM))
  1864. msm_pcm_routing_deinit_pp(port_id, topology);
  1865. }
  1866. }
  1867. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1868. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1869. mutex_unlock(&routing_lock);
  1870. }
  1871. /* Check if FE/BE route is set */
  1872. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1873. {
  1874. bool rc = false;
  1875. if (!is_mm_lsm_fe_id(fe_id)) {
  1876. /* recheck FE ID in the mixer control defined in this file */
  1877. pr_err("%s: bad MM ID\n", __func__);
  1878. return rc;
  1879. }
  1880. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1881. rc = true;
  1882. return rc;
  1883. }
  1884. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1885. {
  1886. int session_type, path_type, topology;
  1887. u32 channels, sample_rate;
  1888. uint16_t bits_per_sample = 16, be_bit_width;
  1889. struct msm_pcm_routing_fdai_data *fdai;
  1890. uint32_t passthr_mode;
  1891. bool is_lsm;
  1892. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1893. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1894. afe_get_port_type(msm_bedais[reg].port_id) ==
  1895. MSM_AFE_PORT_TYPE_RX) {
  1896. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1897. __func__, set, msm_bedais[reg].port_id);
  1898. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1899. } else if (!is_mm_lsm_fe_id(val)) {
  1900. /* recheck FE ID in the mixer control defined in this file */
  1901. pr_err("%s: bad MM ID\n", __func__);
  1902. return;
  1903. }
  1904. if (!route_check_fe_id_adm_support(val)) {
  1905. /* ignore adm open if not supported for fe_id */
  1906. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1907. if (set)
  1908. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1909. else
  1910. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1911. return;
  1912. }
  1913. session_type =
  1914. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1915. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1916. fdai = &fe_dai_map[val][session_type];
  1917. passthr_mode = fdai->passthr_mode;
  1918. if (session_type == SESSION_TYPE_RX) {
  1919. if (passthr_mode != LEGACY_PCM)
  1920. path_type = ADM_PATH_COMPRESSED_RX;
  1921. else
  1922. path_type = ADM_PATH_PLAYBACK;
  1923. } else {
  1924. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1925. path_type = ADM_PATH_COMPRESSED_TX;
  1926. else
  1927. path_type = ADM_PATH_LIVE_REC;
  1928. }
  1929. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1930. (val <= MSM_FRONTEND_DAI_LSM8);
  1931. mutex_lock(&routing_lock);
  1932. if (set) {
  1933. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1934. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1935. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1936. voc_start_playback(set, msm_bedais[reg].port_id);
  1937. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1938. if (msm_bedais[reg].active && fdai->strm_id !=
  1939. INVALID_SESSION) {
  1940. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1941. int port_id = get_port_id(msm_bedais[reg].port_id);
  1942. /*
  1943. * check if ADM needs to be configured with different
  1944. * channel mapping than backend
  1945. */
  1946. if (!msm_bedais[reg].adm_override_ch)
  1947. channels = msm_bedais[reg].channel;
  1948. else
  1949. channels = msm_bedais[reg].adm_override_ch;
  1950. if (session_type == SESSION_TYPE_TX &&
  1951. fdai->be_srate &&
  1952. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1953. pr_debug("%s: flush strm %d diff BE rates\n",
  1954. __func__, fdai->strm_id);
  1955. if (fdai->event_info.event_func)
  1956. fdai->event_info.event_func(
  1957. MSM_PCM_RT_EVT_BUF_RECFG,
  1958. fdai->event_info.priv_data);
  1959. fdai->be_srate = 0; /* might not need it */
  1960. }
  1961. bits_per_sample = msm_routing_get_bit_width(
  1962. msm_bedais[reg].format);
  1963. app_type =
  1964. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1965. if (app_type && is_lsm) {
  1966. app_type_idx =
  1967. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1968. sample_rate =
  1969. fe_dai_app_type_cfg[val][session_type][reg]
  1970. .sample_rate;
  1971. bits_per_sample =
  1972. lsm_app_type_cfg[app_type_idx].bit_width;
  1973. } else if (app_type) {
  1974. app_type_idx =
  1975. msm_pcm_routing_get_app_type_idx(app_type);
  1976. sample_rate =
  1977. fe_dai_app_type_cfg[val][session_type][reg]
  1978. .sample_rate;
  1979. bits_per_sample =
  1980. app_type_cfg[app_type_idx].bit_width;
  1981. } else
  1982. sample_rate = msm_bedais[reg].sample_rate;
  1983. topology = msm_routing_get_adm_topology(val,
  1984. session_type,
  1985. reg);
  1986. acdb_dev_id =
  1987. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1988. be_bit_width = msm_routing_get_bit_width(
  1989. msm_bedais[reg].format);
  1990. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1991. == 384000 ||msm_bedais[reg].sample_rate ==
  1992. 352800) && be_bit_width == 32)
  1993. bits_per_sample = msm_routing_get_bit_width(
  1994. SNDRV_PCM_FORMAT_S32_LE);
  1995. copp_idx = adm_open(port_id, path_type,
  1996. sample_rate, channels, topology,
  1997. fdai->perf_mode, bits_per_sample,
  1998. app_type, acdb_dev_id,
  1999. session_type);
  2000. if ((copp_idx < 0) ||
  2001. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2002. pr_err("%s: adm open failed\n", __func__);
  2003. mutex_unlock(&routing_lock);
  2004. return;
  2005. }
  2006. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2007. __func__, val, session_type, reg);
  2008. set_bit(copp_idx,
  2009. &session_copp_map[val][session_type][reg]);
  2010. if (msm_is_resample_needed(
  2011. sample_rate,
  2012. msm_bedais[reg].sample_rate))
  2013. adm_copp_mfc_cfg(port_id, copp_idx,
  2014. msm_bedais[reg].sample_rate);
  2015. if (session_type == SESSION_TYPE_RX &&
  2016. fdai->event_info.event_func)
  2017. fdai->event_info.event_func(
  2018. MSM_PCM_RT_EVT_DEVSWITCH,
  2019. fdai->event_info.priv_data);
  2020. msm_pcm_routing_build_matrix(val, session_type,
  2021. path_type,
  2022. fdai->perf_mode,
  2023. passthr_mode);
  2024. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2025. (passthr_mode == LEGACY_PCM))
  2026. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2027. topology, channels);
  2028. }
  2029. } else {
  2030. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2031. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2032. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2033. voc_start_playback(set, msm_bedais[reg].port_id);
  2034. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2035. if (msm_bedais[reg].active && fdai->strm_id !=
  2036. INVALID_SESSION) {
  2037. int idx;
  2038. int port_id;
  2039. unsigned long copp =
  2040. session_copp_map[val][session_type][reg];
  2041. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2042. if (test_bit(idx, &copp))
  2043. break;
  2044. if (idx >= MAX_COPPS_PER_PORT) {
  2045. pr_debug("%s: copp idx is invalid, exiting\n",
  2046. __func__);
  2047. mutex_unlock(&routing_lock);
  2048. return;
  2049. }
  2050. port_id = get_port_id(msm_bedais[reg].port_id);
  2051. topology = adm_get_topology_for_port_copp_idx(port_id,
  2052. idx);
  2053. msm_routing_unload_topology(topology);
  2054. adm_close(port_id, fdai->perf_mode, idx);
  2055. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2056. __func__, copp, val, session_type, reg,
  2057. topology);
  2058. clear_bit(idx,
  2059. &session_copp_map[val][session_type][reg]);
  2060. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2061. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2062. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2063. (passthr_mode == LEGACY_PCM))
  2064. msm_pcm_routing_deinit_pp(port_id, topology);
  2065. msm_pcm_routing_build_matrix(val, session_type,
  2066. path_type,
  2067. fdai->perf_mode,
  2068. passthr_mode);
  2069. }
  2070. }
  2071. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2072. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2073. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2074. mutex_unlock(&routing_lock);
  2075. }
  2076. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2077. struct snd_ctl_elem_value *ucontrol)
  2078. {
  2079. struct soc_mixer_control *mc =
  2080. (struct soc_mixer_control *)kcontrol->private_value;
  2081. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2082. ucontrol->value.integer.value[0] = 1;
  2083. else
  2084. ucontrol->value.integer.value[0] = 0;
  2085. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2086. ucontrol->value.integer.value[0]);
  2087. return 0;
  2088. }
  2089. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2090. struct snd_ctl_elem_value *ucontrol)
  2091. {
  2092. struct snd_soc_dapm_widget *widget =
  2093. snd_soc_dapm_kcontrol_widget(kcontrol);
  2094. struct soc_mixer_control *mc =
  2095. (struct soc_mixer_control *)kcontrol->private_value;
  2096. struct snd_soc_dapm_update *update = NULL;
  2097. if (ucontrol->value.integer.value[0] &&
  2098. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2099. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2100. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2101. update);
  2102. } else if (!ucontrol->value.integer.value[0] &&
  2103. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2104. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2105. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2106. update);
  2107. }
  2108. return 1;
  2109. }
  2110. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2111. struct snd_ctl_elem_value *ucontrol)
  2112. {
  2113. struct soc_mixer_control *mc =
  2114. (struct soc_mixer_control *)kcontrol->private_value;
  2115. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2116. ucontrol->value.integer.value[0] = 1;
  2117. else
  2118. ucontrol->value.integer.value[0] = 0;
  2119. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2120. ucontrol->value.integer.value[0]);
  2121. return 0;
  2122. }
  2123. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2124. struct snd_ctl_elem_value *ucontrol)
  2125. {
  2126. struct snd_soc_dapm_widget *widget =
  2127. snd_soc_dapm_kcontrol_widget(kcontrol);
  2128. struct soc_mixer_control *mc =
  2129. (struct soc_mixer_control *)kcontrol->private_value;
  2130. struct snd_soc_dapm_update *update = NULL;
  2131. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2132. ucontrol->value.integer.value[0]);
  2133. if (ucontrol->value.integer.value[0]) {
  2134. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2135. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2136. snd_soc_dapm_mixer_update_power(widget->dapm,
  2137. kcontrol, 1, update);
  2138. } else if (!ucontrol->value.integer.value[0]) {
  2139. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2140. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2141. snd_soc_dapm_mixer_update_power(widget->dapm,
  2142. kcontrol, 0, update);
  2143. }
  2144. return 1;
  2145. }
  2146. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2147. {
  2148. u32 session_id = 0;
  2149. u16 path_type;
  2150. struct media_format_info voc_be_media_format;
  2151. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2152. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2153. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2154. __func__, val, session_id);
  2155. mutex_lock(&routing_lock);
  2156. if (set)
  2157. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2158. else
  2159. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2160. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2161. afe_get_port_type(msm_bedais[reg].port_id) ==
  2162. MSM_AFE_PORT_TYPE_RX) {
  2163. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2164. __func__, set, msm_bedais[reg].port_id);
  2165. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2166. }
  2167. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2168. MSM_AFE_PORT_TYPE_RX)
  2169. path_type = RX_PATH;
  2170. else
  2171. path_type = TX_PATH;
  2172. if (set) {
  2173. if (msm_bedais[reg].active) {
  2174. voc_set_route_flag(session_id, path_type, 1);
  2175. memset(&voc_be_media_format, 0,
  2176. sizeof(struct media_format_info));
  2177. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2178. voc_be_media_format.num_channels =
  2179. msm_bedais[reg].channel;
  2180. voc_be_media_format.sample_rate =
  2181. msm_bedais[reg].sample_rate;
  2182. voc_be_media_format.bits_per_sample =
  2183. msm_bedais[reg].format;
  2184. /* Defaulting this to 1 for voice call usecases */
  2185. voc_be_media_format.channel_mapping[0] = 1;
  2186. voc_set_device_config(session_id, path_type,
  2187. &voc_be_media_format);
  2188. if (voc_get_route_flag(session_id, TX_PATH) &&
  2189. voc_get_route_flag(session_id, RX_PATH))
  2190. voc_enable_device(session_id);
  2191. } else {
  2192. pr_debug("%s BE is not active\n", __func__);
  2193. }
  2194. } else {
  2195. voc_set_route_flag(session_id, path_type, 0);
  2196. voc_disable_device(session_id);
  2197. }
  2198. mutex_unlock(&routing_lock);
  2199. }
  2200. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2201. struct snd_ctl_elem_value *ucontrol)
  2202. {
  2203. struct soc_mixer_control *mc =
  2204. (struct soc_mixer_control *)kcontrol->private_value;
  2205. mutex_lock(&routing_lock);
  2206. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2207. ucontrol->value.integer.value[0] = 1;
  2208. else
  2209. ucontrol->value.integer.value[0] = 0;
  2210. mutex_unlock(&routing_lock);
  2211. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2212. ucontrol->value.integer.value[0]);
  2213. return 0;
  2214. }
  2215. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2216. struct snd_ctl_elem_value *ucontrol)
  2217. {
  2218. struct snd_soc_dapm_widget *widget =
  2219. snd_soc_dapm_kcontrol_widget(kcontrol);
  2220. struct soc_mixer_control *mc =
  2221. (struct soc_mixer_control *)kcontrol->private_value;
  2222. struct snd_soc_dapm_update *update = NULL;
  2223. if (ucontrol->value.integer.value[0]) {
  2224. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2225. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2226. update);
  2227. } else {
  2228. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2229. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2230. update);
  2231. }
  2232. return 1;
  2233. }
  2234. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2235. struct snd_ctl_elem_value *ucontrol)
  2236. {
  2237. struct soc_mixer_control *mc =
  2238. (struct soc_mixer_control *)kcontrol->private_value;
  2239. mutex_lock(&routing_lock);
  2240. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2241. ucontrol->value.integer.value[0] = 1;
  2242. else
  2243. ucontrol->value.integer.value[0] = 0;
  2244. mutex_unlock(&routing_lock);
  2245. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2246. ucontrol->value.integer.value[0]);
  2247. return 0;
  2248. }
  2249. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2250. struct snd_ctl_elem_value *ucontrol)
  2251. {
  2252. struct snd_soc_dapm_widget *widget =
  2253. snd_soc_dapm_kcontrol_widget(kcontrol);
  2254. struct soc_mixer_control *mc =
  2255. (struct soc_mixer_control *)kcontrol->private_value;
  2256. struct snd_soc_dapm_update *update = NULL;
  2257. if (ucontrol->value.integer.value[0]) {
  2258. mutex_lock(&routing_lock);
  2259. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2260. mutex_unlock(&routing_lock);
  2261. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2262. update);
  2263. } else {
  2264. mutex_lock(&routing_lock);
  2265. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2266. mutex_unlock(&routing_lock);
  2267. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2268. update);
  2269. }
  2270. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2271. ucontrol->value.integer.value[0]);
  2272. return 1;
  2273. }
  2274. /*
  2275. * Return the mapping between port ID and backend ID to enable the AFE callback
  2276. * to determine the acdb_dev_id from the port id
  2277. */
  2278. int msm_pcm_get_be_id_from_port_id(int port_id)
  2279. {
  2280. int i;
  2281. int be_id = -EINVAL;
  2282. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2283. if (msm_bedais[i].port_id == port_id) {
  2284. be_id = i;
  2285. break;
  2286. }
  2287. }
  2288. return be_id;
  2289. }
  2290. /*
  2291. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2292. * correct AFE calibration information by comparing the header information.
  2293. */
  2294. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2295. {
  2296. int acdb_id = -EINVAL;
  2297. int i = 0;
  2298. int session;
  2299. int port_type = afe_get_port_type(port_id);
  2300. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2301. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2302. __func__, port_id, be_id, port_type);
  2303. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2304. session = SESSION_TYPE_TX;
  2305. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2306. session = SESSION_TYPE_RX;
  2307. } else {
  2308. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2309. acdb_id = -EINVAL;
  2310. goto exit;
  2311. }
  2312. if (be_id < 0) {
  2313. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2314. goto exit;
  2315. }
  2316. mutex_lock(&routing_lock);
  2317. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2318. MSM_FRONTEND_DAI_MAX);
  2319. if (i < MSM_FRONTEND_DAI_MAX)
  2320. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2321. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2322. __func__, i, session, be_id, acdb_id);
  2323. mutex_unlock(&routing_lock);
  2324. exit:
  2325. return acdb_id;
  2326. }
  2327. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2328. struct snd_ctl_elem_value *ucontrol)
  2329. {
  2330. ucontrol->value.integer.value[0] = fm_switch_enable;
  2331. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2332. ucontrol->value.integer.value[0]);
  2333. return 0;
  2334. }
  2335. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2336. struct snd_ctl_elem_value *ucontrol)
  2337. {
  2338. struct snd_soc_dapm_widget *widget =
  2339. snd_soc_dapm_kcontrol_widget(kcontrol);
  2340. struct snd_soc_dapm_update *update = NULL;
  2341. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2342. ucontrol->value.integer.value[0]);
  2343. if (ucontrol->value.integer.value[0])
  2344. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2345. update);
  2346. else
  2347. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2348. update);
  2349. fm_switch_enable = ucontrol->value.integer.value[0];
  2350. return 1;
  2351. }
  2352. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2353. struct snd_ctl_elem_value *ucontrol)
  2354. {
  2355. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2356. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2357. ucontrol->value.integer.value[0]);
  2358. return 0;
  2359. }
  2360. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2361. struct snd_ctl_elem_value *ucontrol)
  2362. {
  2363. struct snd_soc_dapm_widget *widget =
  2364. snd_soc_dapm_kcontrol_widget(kcontrol);
  2365. struct snd_soc_dapm_update *update = NULL;
  2366. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2367. ucontrol->value.integer.value[0]);
  2368. if (ucontrol->value.integer.value[0])
  2369. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2370. 1, update);
  2371. else
  2372. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2373. 0, update);
  2374. hfp_switch_enable = ucontrol->value.integer.value[0];
  2375. return 1;
  2376. }
  2377. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2378. struct snd_ctl_elem_value *ucontrol)
  2379. {
  2380. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2381. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2382. ucontrol->value.integer.value[0]);
  2383. return 0;
  2384. }
  2385. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2386. struct snd_ctl_elem_value *ucontrol)
  2387. {
  2388. struct snd_soc_dapm_widget *widget =
  2389. snd_soc_dapm_kcontrol_widget(kcontrol);
  2390. struct snd_soc_dapm_update *update = NULL;
  2391. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2392. ucontrol->value.integer.value[0]);
  2393. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2394. if (a2dp_switch_enable)
  2395. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2396. 1, update);
  2397. else
  2398. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2399. 0, update);
  2400. return 1;
  2401. }
  2402. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2403. struct snd_ctl_elem_value *ucontrol)
  2404. {
  2405. ucontrol->value.integer.value[0] = sco_switch_enable;
  2406. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2407. ucontrol->value.integer.value[0]);
  2408. return 0;
  2409. }
  2410. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2411. struct snd_ctl_elem_value *ucontrol)
  2412. {
  2413. struct snd_soc_dapm_widget *widget =
  2414. snd_soc_dapm_kcontrol_widget(kcontrol);
  2415. struct snd_soc_dapm_update *update = NULL;
  2416. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2417. ucontrol->value.integer.value[0]);
  2418. sco_switch_enable = ucontrol->value.integer.value[0];
  2419. if (sco_switch_enable)
  2420. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2421. 1, update);
  2422. else
  2423. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2424. 0, update);
  2425. return 1;
  2426. }
  2427. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2428. struct snd_ctl_elem_value *ucontrol)
  2429. {
  2430. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2431. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2432. ucontrol->value.integer.value[0]);
  2433. return 0;
  2434. }
  2435. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2436. struct snd_ctl_elem_value *ucontrol)
  2437. {
  2438. struct snd_soc_dapm_widget *widget =
  2439. snd_soc_dapm_kcontrol_widget(kcontrol);
  2440. struct snd_soc_dapm_update *update = NULL;
  2441. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2442. ucontrol->value.integer.value[0]);
  2443. if (ucontrol->value.integer.value[0])
  2444. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2445. update);
  2446. else
  2447. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2448. update);
  2449. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2450. return 1;
  2451. }
  2452. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2453. struct snd_ctl_elem_value *ucontrol)
  2454. {
  2455. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2456. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2457. ucontrol->value.integer.value[0]);
  2458. return 0;
  2459. }
  2460. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2461. struct snd_ctl_elem_value *ucontrol)
  2462. {
  2463. struct snd_soc_dapm_widget *widget =
  2464. snd_soc_dapm_kcontrol_widget(kcontrol);
  2465. struct snd_soc_dapm_update *update = NULL;
  2466. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2467. ucontrol->value.integer.value[0]);
  2468. if (ucontrol->value.integer.value[0])
  2469. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2470. update);
  2471. else
  2472. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2473. update);
  2474. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2475. return 1;
  2476. }
  2477. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2478. struct snd_ctl_elem_value *ucontrol)
  2479. {
  2480. ucontrol->value.integer.value[0] = usb_switch_enable;
  2481. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2482. ucontrol->value.integer.value[0]);
  2483. return 0;
  2484. }
  2485. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2486. struct snd_ctl_elem_value *ucontrol)
  2487. {
  2488. struct snd_soc_dapm_widget *widget =
  2489. snd_soc_dapm_kcontrol_widget(kcontrol);
  2490. struct snd_soc_dapm_update *update = NULL;
  2491. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2492. ucontrol->value.integer.value[0]);
  2493. if (ucontrol->value.integer.value[0])
  2494. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2495. 1, update);
  2496. else
  2497. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2498. 0, update);
  2499. usb_switch_enable = ucontrol->value.integer.value[0];
  2500. return 1;
  2501. }
  2502. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2503. struct snd_ctl_elem_value *ucontrol)
  2504. {
  2505. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2506. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2507. ucontrol->value.integer.value[0]);
  2508. return 0;
  2509. }
  2510. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2511. struct snd_ctl_elem_value *ucontrol)
  2512. {
  2513. struct snd_soc_dapm_widget *widget =
  2514. snd_soc_dapm_kcontrol_widget(kcontrol);
  2515. struct snd_soc_dapm_update *update = NULL;
  2516. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2517. ucontrol->value.integer.value[0]);
  2518. if (ucontrol->value.integer.value[0])
  2519. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2520. update);
  2521. else
  2522. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2523. update);
  2524. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2525. return 1;
  2526. }
  2527. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2528. struct snd_ctl_elem_value *ucontrol)
  2529. {
  2530. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2531. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2532. ucontrol->value.integer.value[0]);
  2533. return 0;
  2534. }
  2535. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2536. struct snd_ctl_elem_value *ucontrol)
  2537. {
  2538. struct snd_soc_dapm_widget *widget =
  2539. snd_soc_dapm_kcontrol_widget(kcontrol);
  2540. struct snd_soc_dapm_update *update = NULL;
  2541. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2542. ucontrol->value.integer.value[0]);
  2543. if (ucontrol->value.integer.value[0])
  2544. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2545. update);
  2546. else
  2547. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2548. update);
  2549. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2550. return 1;
  2551. }
  2552. static int msm_routing_get_tert_mi2s_switch_mixer(
  2553. struct snd_kcontrol *kcontrol,
  2554. struct snd_ctl_elem_value *ucontrol)
  2555. {
  2556. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2557. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2558. ucontrol->value.integer.value[0]);
  2559. return 0;
  2560. }
  2561. static int msm_routing_put_tert_mi2s_switch_mixer(
  2562. struct snd_kcontrol *kcontrol,
  2563. struct snd_ctl_elem_value *ucontrol)
  2564. {
  2565. struct snd_soc_dapm_widget *widget =
  2566. snd_soc_dapm_kcontrol_widget(kcontrol);
  2567. struct snd_soc_dapm_update *update = NULL;
  2568. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2569. ucontrol->value.integer.value[0]);
  2570. if (ucontrol->value.integer.value[0])
  2571. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2572. update);
  2573. else
  2574. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2575. update);
  2576. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2577. return 1;
  2578. }
  2579. static int msm_routing_get_quat_mi2s_switch_mixer(
  2580. struct snd_kcontrol *kcontrol,
  2581. struct snd_ctl_elem_value *ucontrol)
  2582. {
  2583. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2584. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2585. ucontrol->value.integer.value[0]);
  2586. return 0;
  2587. }
  2588. static int msm_routing_put_quat_mi2s_switch_mixer(
  2589. struct snd_kcontrol *kcontrol,
  2590. struct snd_ctl_elem_value *ucontrol)
  2591. {
  2592. struct snd_soc_dapm_widget *widget =
  2593. snd_soc_dapm_kcontrol_widget(kcontrol);
  2594. struct snd_soc_dapm_update *update = NULL;
  2595. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2596. ucontrol->value.integer.value[0]);
  2597. if (ucontrol->value.integer.value[0])
  2598. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2599. update);
  2600. else
  2601. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2602. update);
  2603. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2604. return 1;
  2605. }
  2606. static int msm_routing_get_quin_mi2s_switch_mixer(
  2607. struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2611. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2612. ucontrol->value.integer.value[0]);
  2613. return 0;
  2614. }
  2615. static int msm_routing_put_quin_mi2s_switch_mixer(
  2616. struct snd_kcontrol *kcontrol,
  2617. struct snd_ctl_elem_value *ucontrol)
  2618. {
  2619. struct snd_soc_dapm_widget *widget =
  2620. snd_soc_dapm_kcontrol_widget(kcontrol);
  2621. struct snd_soc_dapm_update *update = NULL;
  2622. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2623. ucontrol->value.integer.value[0]);
  2624. if (ucontrol->value.integer.value[0])
  2625. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2626. update);
  2627. else
  2628. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2629. update);
  2630. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2631. return 1;
  2632. }
  2633. static int msm_routing_get_sen_mi2s_switch_mixer(
  2634. struct snd_kcontrol *kcontrol,
  2635. struct snd_ctl_elem_value *ucontrol)
  2636. {
  2637. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2638. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2639. ucontrol->value.integer.value[0]);
  2640. return 0;
  2641. }
  2642. static int msm_routing_put_sen_mi2s_switch_mixer(
  2643. struct snd_kcontrol *kcontrol,
  2644. struct snd_ctl_elem_value *ucontrol)
  2645. {
  2646. struct snd_soc_dapm_widget *widget =
  2647. snd_soc_dapm_kcontrol_widget(kcontrol);
  2648. struct snd_soc_dapm_update *update = NULL;
  2649. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2650. ucontrol->value.integer.value[0]);
  2651. if (ucontrol->value.integer.value[0])
  2652. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2653. update);
  2654. else
  2655. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2656. update);
  2657. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2658. return 1;
  2659. }
  2660. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2661. struct snd_ctl_elem_value *ucontrol)
  2662. {
  2663. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2664. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2665. ucontrol->value.integer.value[0]);
  2666. return 0;
  2667. }
  2668. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2669. struct snd_ctl_elem_value *ucontrol)
  2670. {
  2671. struct snd_soc_dapm_widget *widget =
  2672. snd_soc_dapm_kcontrol_widget(kcontrol);
  2673. struct snd_soc_dapm_update *update = NULL;
  2674. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2675. ucontrol->value.integer.value[0]);
  2676. if (ucontrol->value.integer.value[0])
  2677. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2678. update);
  2679. else
  2680. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2681. update);
  2682. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2683. return 1;
  2684. }
  2685. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2686. u8 *fe_idx)
  2687. {
  2688. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2689. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2690. fe_id = MSM_FRONTEND_DAI_LSM1;
  2691. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2692. fe_id = MSM_FRONTEND_DAI_LSM2;
  2693. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2694. fe_id = MSM_FRONTEND_DAI_LSM3;
  2695. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2696. fe_id = MSM_FRONTEND_DAI_LSM4;
  2697. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2698. fe_id = MSM_FRONTEND_DAI_LSM5;
  2699. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2700. fe_id = MSM_FRONTEND_DAI_LSM6;
  2701. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2702. fe_id = MSM_FRONTEND_DAI_LSM7;
  2703. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2704. fe_id = MSM_FRONTEND_DAI_LSM8;
  2705. } else {
  2706. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2707. kcontrol->id.name);
  2708. return;
  2709. }
  2710. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2711. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2712. }
  2713. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2714. struct snd_ctl_elem_value *ucontrol)
  2715. {
  2716. u8 fe_idx = 0;
  2717. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2718. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2719. return 0;
  2720. }
  2721. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2722. struct snd_ctl_elem_value *ucontrol)
  2723. {
  2724. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2725. int mux = ucontrol->value.enumerated.item[0];
  2726. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2727. u8 fe_idx = 0;
  2728. if (mux >= e->items) {
  2729. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2730. return -EINVAL;
  2731. }
  2732. pr_debug("%s: LSM enable %ld\n", __func__,
  2733. ucontrol->value.integer.value[0]);
  2734. switch (ucontrol->value.integer.value[0]) {
  2735. case 1:
  2736. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2737. break;
  2738. case 2:
  2739. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2740. break;
  2741. case 3:
  2742. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2743. break;
  2744. case 4:
  2745. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2746. break;
  2747. case 5:
  2748. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2749. break;
  2750. case 6:
  2751. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2752. break;
  2753. case 7:
  2754. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2755. break;
  2756. case 8:
  2757. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2758. break;
  2759. case 9:
  2760. lsm_port = ADM_LSM_PORT_ID;
  2761. break;
  2762. case 10:
  2763. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2764. break;
  2765. case 11:
  2766. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2767. break;
  2768. case 12:
  2769. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2770. break;
  2771. case 13:
  2772. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2773. break;
  2774. case 14:
  2775. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2776. break;
  2777. case 15:
  2778. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2779. break;
  2780. case 16:
  2781. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2782. break;
  2783. default:
  2784. pr_err("Default lsm port");
  2785. break;
  2786. }
  2787. set_lsm_port(lsm_port);
  2788. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2789. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2790. return 0;
  2791. }
  2792. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2793. struct snd_ctl_elem_value *ucontrol)
  2794. {
  2795. int i;
  2796. u16 port_id;
  2797. enum afe_mad_type mad_type;
  2798. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2799. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2800. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2801. strlen(lsm_port_text[i])))
  2802. break;
  2803. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2804. pr_warn("%s: Invalid id name %s\n", __func__,
  2805. kcontrol->id.name);
  2806. return -EINVAL;
  2807. }
  2808. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2809. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2810. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2811. strlen(lsm_port_text[7])))
  2812. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2813. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2814. strlen(lsm_port_text[8])))
  2815. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2816. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2817. strlen(lsm_port_text[10])))
  2818. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2819. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2820. strlen(lsm_port_text[14])))
  2821. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2822. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2823. strlen(lsm_port_text[15])))
  2824. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2825. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2826. strlen(lsm_port_text[16])))
  2827. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2828. mad_type = afe_port_get_mad_type(port_id);
  2829. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2830. mad_type);
  2831. switch (mad_type) {
  2832. case MAD_HW_NONE:
  2833. ucontrol->value.integer.value[0] = MADNONE;
  2834. break;
  2835. case MAD_HW_AUDIO:
  2836. ucontrol->value.integer.value[0] = MADAUDIO;
  2837. break;
  2838. case MAD_HW_BEACON:
  2839. ucontrol->value.integer.value[0] = MADBEACON;
  2840. break;
  2841. case MAD_HW_ULTRASOUND:
  2842. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2843. break;
  2844. case MAD_SW_AUDIO:
  2845. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2846. break;
  2847. default:
  2848. pr_warn("%s: Unknown\n", __func__);
  2849. return -EINVAL;
  2850. }
  2851. return 0;
  2852. }
  2853. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2854. struct snd_ctl_elem_value *ucontrol)
  2855. {
  2856. int i;
  2857. u16 port_id;
  2858. enum afe_mad_type mad_type;
  2859. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2860. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2861. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2862. strlen(lsm_port_text[i])))
  2863. break;
  2864. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2865. pr_warn("%s: Invalid id name %s\n", __func__,
  2866. kcontrol->id.name);
  2867. return -EINVAL;
  2868. }
  2869. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2870. switch (ucontrol->value.integer.value[0]) {
  2871. case MADNONE:
  2872. mad_type = MAD_HW_NONE;
  2873. break;
  2874. case MADAUDIO:
  2875. mad_type = MAD_HW_AUDIO;
  2876. break;
  2877. case MADBEACON:
  2878. mad_type = MAD_HW_BEACON;
  2879. break;
  2880. case MADULTRASOUND:
  2881. mad_type = MAD_HW_ULTRASOUND;
  2882. break;
  2883. case MADSWAUDIO:
  2884. mad_type = MAD_SW_AUDIO;
  2885. break;
  2886. default:
  2887. pr_warn("%s: Unknown\n", __func__);
  2888. return -EINVAL;
  2889. }
  2890. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2891. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2892. strlen(lsm_port_text[7])))
  2893. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2894. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2895. strlen(lsm_port_text[8])))
  2896. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2897. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2898. strlen(lsm_port_text[10])))
  2899. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2900. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2901. strlen(lsm_port_text[14])))
  2902. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2903. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2904. strlen(lsm_port_text[15])))
  2905. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2906. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2907. strlen(lsm_port_text[16])))
  2908. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2909. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2910. mad_type);
  2911. return afe_port_set_mad_type(port_id, mad_type);
  2912. }
  2913. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2914. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2915. adm_override_chs_text);
  2916. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2917. {
  2918. int backend_id;
  2919. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2920. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2921. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2922. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2923. } else {
  2924. pr_err("%s: unsupported backend id: %s",
  2925. __func__, kcontrol->id.name);
  2926. return -EINVAL;
  2927. }
  2928. return backend_id;
  2929. }
  2930. static int msm_routing_adm_channel_config_get(
  2931. struct snd_kcontrol *kcontrol,
  2932. struct snd_ctl_elem_value *ucontrol)
  2933. {
  2934. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2935. if (backend_id >= 0) {
  2936. mutex_lock(&routing_lock);
  2937. ucontrol->value.integer.value[0] =
  2938. msm_bedais[backend_id].adm_override_ch;
  2939. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2940. ucontrol->value.integer.value[0], backend_id);
  2941. mutex_unlock(&routing_lock);
  2942. }
  2943. return 0;
  2944. }
  2945. static int msm_routing_adm_channel_config_put(
  2946. struct snd_kcontrol *kcontrol,
  2947. struct snd_ctl_elem_value *ucontrol)
  2948. {
  2949. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2950. if (backend_id >= 0) {
  2951. mutex_lock(&routing_lock);
  2952. msm_bedais[backend_id].adm_override_ch =
  2953. ucontrol->value.integer.value[0];
  2954. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2955. __func__, backend_id,
  2956. msm_bedais[backend_id].adm_override_ch);
  2957. mutex_unlock(&routing_lock);
  2958. }
  2959. return 0;
  2960. }
  2961. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2962. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2963. msm_routing_adm_channel_config_get,
  2964. msm_routing_adm_channel_config_put),
  2965. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2966. msm_routing_adm_channel_config_get,
  2967. msm_routing_adm_channel_config_put),
  2968. };
  2969. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2970. struct snd_ctl_elem_value *ucontrol)
  2971. {
  2972. mutex_lock(&routing_lock);
  2973. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2974. mutex_unlock(&routing_lock);
  2975. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2976. ucontrol->value.integer.value[0]);
  2977. return 0;
  2978. };
  2979. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2980. struct snd_ctl_elem_value *ucontrol)
  2981. {
  2982. struct aanc_data aanc_info;
  2983. mutex_lock(&routing_lock);
  2984. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2985. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2986. ucontrol->value.integer.value[0]);
  2987. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2988. if (ucontrol->value.integer.value[0] == 0) {
  2989. aanc_info.aanc_active = false;
  2990. aanc_info.aanc_tx_port = 0;
  2991. aanc_info.aanc_rx_port = 0;
  2992. } else {
  2993. aanc_info.aanc_active = true;
  2994. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2995. aanc_info.aanc_tx_port =
  2996. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2997. }
  2998. afe_set_aanc_info(&aanc_info);
  2999. mutex_unlock(&routing_lock);
  3000. return 0;
  3001. };
  3002. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3003. struct snd_ctl_elem_value *ucontrol)
  3004. {
  3005. int idx = 0, shift = 0;
  3006. struct soc_mixer_control *mc =
  3007. (struct soc_mixer_control *)kcontrol->private_value;
  3008. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3009. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3010. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3011. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3012. return -EINVAL;
  3013. }
  3014. if (test_bit(shift,
  3015. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3016. ucontrol->value.integer.value[0] = 1;
  3017. else
  3018. ucontrol->value.integer.value[0] = 0;
  3019. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3020. ucontrol->value.integer.value[0]);
  3021. return 0;
  3022. }
  3023. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3024. struct snd_ctl_elem_value *ucontrol)
  3025. {
  3026. int idx = 0, shift = 0;
  3027. struct soc_mixer_control *mc =
  3028. (struct soc_mixer_control *)kcontrol->private_value;
  3029. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3030. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3031. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3032. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3033. return -EINVAL;
  3034. }
  3035. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3036. __func__, mc->shift, mc->rshift,
  3037. ucontrol->value.integer.value[0], idx, shift);
  3038. if (ucontrol->value.integer.value[0]) {
  3039. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3040. msm_bedais[mc->rshift].port_id);
  3041. set_bit(shift,
  3042. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3043. } else {
  3044. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3045. msm_bedais[mc->rshift].port_id);
  3046. clear_bit(shift,
  3047. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3048. }
  3049. return 1;
  3050. }
  3051. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3052. struct snd_ctl_elem_value *ucontrol)
  3053. {
  3054. u16 fe_id = 0;
  3055. fe_id = ((struct soc_mixer_control *)
  3056. kcontrol->private_value)->shift;
  3057. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3058. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3059. return -EINVAL;
  3060. }
  3061. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3062. return 0;
  3063. }
  3064. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3065. struct snd_ctl_elem_value *ucontrol)
  3066. {
  3067. u16 fe_id = 0;
  3068. fe_id = ((struct soc_mixer_control *)
  3069. kcontrol->private_value)->shift;
  3070. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3071. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3072. return -EINVAL;
  3073. }
  3074. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3075. return 1;
  3076. }
  3077. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3078. struct snd_ctl_elem_value *ucontrol)
  3079. {
  3080. u16 fe_id = 0;
  3081. fe_id = ((struct soc_multi_mixer_control *)
  3082. kcontrol->private_value)->shift;
  3083. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3084. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3085. return -EINVAL;
  3086. }
  3087. ucontrol->value.integer.value[0] =
  3088. channel_mixer[fe_id].output_channel;
  3089. return 0;
  3090. }
  3091. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3092. struct snd_ctl_elem_value *ucontrol)
  3093. {
  3094. u16 fe_id = 0;
  3095. fe_id = ((struct soc_multi_mixer_control *)
  3096. kcontrol->private_value)->shift;
  3097. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3098. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3099. return -EINVAL;
  3100. }
  3101. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3102. fe_id,
  3103. (unsigned int)(ucontrol->value.integer.value[0]));
  3104. channel_mixer[fe_id].output_channel =
  3105. (unsigned int)(ucontrol->value.integer.value[0]);
  3106. return 1;
  3107. }
  3108. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3109. /* If new backend is added, need update this array */
  3110. static const char *const be_name[] = {
  3111. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3112. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3113. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3114. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3115. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3116. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3117. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3118. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3119. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3120. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3121. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3122. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3123. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3124. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3125. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3126. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3127. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3128. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3129. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3130. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3131. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3132. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3133. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3134. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3135. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3136. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3137. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3138. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3139. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3140. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3141. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3142. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3143. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3144. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3145. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3146. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3147. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3148. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3149. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3150. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3151. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3152. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3153. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3154. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3155. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3156. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3157. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3158. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3159. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3160. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3161. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3162. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3163. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3164. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX"
  3165. };
  3166. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3167. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3168. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3169. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3170. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3171. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3172. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3173. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3174. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3175. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3176. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3177. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3178. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3179. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3180. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3181. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3182. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3183. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3184. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3185. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3186. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3187. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3188. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3189. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3190. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3191. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3192. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3193. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3194. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3195. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3196. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3197. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3198. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3199. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3200. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3201. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3202. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3203. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3204. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3205. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3206. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3207. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3208. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3209. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3210. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3211. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3212. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3213. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3214. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3215. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3216. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3217. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3218. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3219. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3220. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3221. unsigned int channels,
  3222. unsigned int items, const char *const names[])
  3223. {
  3224. if (uinfo->value.enumerated.item >= items)
  3225. uinfo->value.enumerated.item = items - 1;
  3226. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3227. sizeof(uinfo->value.enumerated.name),
  3228. "ALSA: too long item name '%s'\n",
  3229. names[uinfo->value.enumerated.item]);
  3230. strlcpy(uinfo->value.enumerated.name,
  3231. names[uinfo->value.enumerated.item],
  3232. sizeof(uinfo->value.enumerated.name));
  3233. return 0;
  3234. }
  3235. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3236. struct snd_ctl_elem_info *uinfo)
  3237. {
  3238. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3239. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3240. uinfo->count = 1;
  3241. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3242. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3243. return 0;
  3244. }
  3245. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3246. struct snd_ctl_elem_value *ucontrol)
  3247. {
  3248. u16 fe_id = 0;
  3249. fe_id = ((struct soc_enum *)
  3250. kcontrol->private_value)->shift_l;
  3251. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3252. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3253. return -EINVAL;
  3254. }
  3255. pr_debug("%s: FE %d %s\n", __func__,
  3256. fe_id,
  3257. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3258. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3259. return 0;
  3260. }
  3261. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3262. struct snd_ctl_elem_value *ucontrol)
  3263. {
  3264. u16 fe_id = 0;
  3265. fe_id = ((struct soc_enum *)
  3266. kcontrol->private_value)->shift_l;
  3267. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3268. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3269. return -EINVAL;
  3270. }
  3271. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3272. pr_debug("%s: %s FE %d\n", __func__,
  3273. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3274. fe_id);
  3275. return 0;
  3276. }
  3277. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3278. struct snd_ctl_elem_info *uinfo)
  3279. {
  3280. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3281. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3282. uinfo->count = 1;
  3283. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3284. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3285. return 0;
  3286. }
  3287. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3288. struct snd_ctl_elem_value *ucontrol)
  3289. {
  3290. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3291. u16 fe_id = 0, in_ch = 0;
  3292. fe_id = e->shift_l;
  3293. in_ch = e->shift_r;
  3294. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3295. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3296. return -EINVAL;
  3297. }
  3298. if (in_ch >= ADM_MAX_CHANNELS) {
  3299. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3300. return -EINVAL;
  3301. }
  3302. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3303. return 1;
  3304. }
  3305. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3306. struct snd_ctl_elem_value *ucontrol)
  3307. {
  3308. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3309. u16 fe_id = 0, in_ch = 0;
  3310. fe_id = e->shift_l;
  3311. in_ch = e->shift_r;
  3312. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3313. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3314. return -EINVAL;
  3315. }
  3316. if (in_ch >= ADM_MAX_CHANNELS) {
  3317. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3318. return -EINVAL;
  3319. }
  3320. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3321. return 1;
  3322. }
  3323. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3324. struct snd_ctl_elem_info *uinfo)
  3325. {
  3326. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3327. uinfo->count = ADM_MAX_CHANNELS;
  3328. uinfo->value.integer.min = 0;
  3329. uinfo->value.integer.max = WEIGHT_0_DB;
  3330. return 0;
  3331. }
  3332. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3333. struct snd_ctl_elem_value *ucontrol)
  3334. {
  3335. u16 fe_id = 0, out_ch = 0;
  3336. int i, weight;
  3337. fe_id = ((struct soc_multi_mixer_control *)
  3338. kcontrol->private_value)->shift;
  3339. out_ch = ((struct soc_multi_mixer_control *)
  3340. kcontrol->private_value)->rshift;
  3341. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3342. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3343. return -EINVAL;
  3344. }
  3345. if (out_ch >= ADM_MAX_CHANNELS) {
  3346. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3347. return -EINVAL;
  3348. }
  3349. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3350. __func__, fe_id,
  3351. ucontrol->value.integer.value[0],
  3352. ucontrol->value.integer.value[1],
  3353. ucontrol->value.integer.value[2],
  3354. ucontrol->value.integer.value[3],
  3355. ucontrol->value.integer.value[4],
  3356. ucontrol->value.integer.value[5],
  3357. ucontrol->value.integer.value[6],
  3358. ucontrol->value.integer.value[7]);
  3359. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3360. weight = ucontrol->value.integer.value[i];
  3361. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3362. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3363. __func__, fe_id, out_ch, i,
  3364. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3365. }
  3366. return 0;
  3367. }
  3368. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3369. struct snd_ctl_elem_value *ucontrol)
  3370. {
  3371. u16 fe_id = 0, out_ch = 0;
  3372. int i;
  3373. fe_id = ((struct soc_multi_mixer_control *)
  3374. kcontrol->private_value)->shift;
  3375. out_ch = ((struct soc_multi_mixer_control *)
  3376. kcontrol->private_value)->rshift;
  3377. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3378. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3379. return -EINVAL;
  3380. }
  3381. if (out_ch >= ADM_MAX_CHANNELS) {
  3382. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3383. return -EINVAL;
  3384. }
  3385. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3386. ucontrol->value.integer.value[i] =
  3387. channel_mixer[fe_id].channel_weight[out_ch][i];
  3388. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3389. __func__, fe_id,
  3390. ucontrol->value.integer.value[0],
  3391. ucontrol->value.integer.value[1],
  3392. ucontrol->value.integer.value[2],
  3393. ucontrol->value.integer.value[3],
  3394. ucontrol->value.integer.value[4],
  3395. ucontrol->value.integer.value[5],
  3396. ucontrol->value.integer.value[6],
  3397. ucontrol->value.integer.value[7]);
  3398. return 0;
  3399. }
  3400. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3401. struct snd_ctl_elem_info *uinfo)
  3402. {
  3403. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3404. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3405. /* Valid channel map value ranges from 1 to 64 */
  3406. uinfo->value.integer.min = 0;
  3407. uinfo->value.integer.max = 64;
  3408. return 0;
  3409. }
  3410. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3411. struct snd_ctl_elem_value *ucontrol)
  3412. {
  3413. u16 fe_id = 0;
  3414. int i, ch_map;
  3415. fe_id = ((struct soc_multi_mixer_control *)
  3416. kcontrol->private_value)->shift;
  3417. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3418. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3419. return -EINVAL;
  3420. }
  3421. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3422. ch_map = ucontrol->value.integer.value[i];
  3423. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3424. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3425. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3426. }
  3427. /* Make override_out_ch_map false if ch map is reset */
  3428. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3429. channel_mixer[fe_id].override_out_ch_map = false;
  3430. else
  3431. channel_mixer[fe_id].override_out_ch_map = true;
  3432. return 0;
  3433. }
  3434. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3435. struct snd_ctl_elem_value *ucontrol)
  3436. {
  3437. u16 fe_id = 0;
  3438. int i;
  3439. fe_id = ((struct soc_multi_mixer_control *)
  3440. kcontrol->private_value)->shift;
  3441. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3442. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3443. return -EINVAL;
  3444. }
  3445. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3446. ucontrol->value.integer.value[i] =
  3447. channel_mixer[fe_id].out_ch_map[i];
  3448. return 0;
  3449. }
  3450. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3451. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3453. msm_pcm_get_channel_rule_index,
  3454. msm_pcm_put_channel_rule_index),
  3455. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3456. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3457. msm_pcm_get_channel_rule_index,
  3458. msm_pcm_put_channel_rule_index),
  3459. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3460. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3461. msm_pcm_get_channel_rule_index,
  3462. msm_pcm_put_channel_rule_index),
  3463. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3465. msm_pcm_get_channel_rule_index,
  3466. msm_pcm_put_channel_rule_index),
  3467. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3468. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3469. msm_pcm_get_channel_rule_index,
  3470. msm_pcm_put_channel_rule_index),
  3471. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3472. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3473. msm_pcm_get_channel_rule_index,
  3474. msm_pcm_put_channel_rule_index),
  3475. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3476. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3477. msm_pcm_get_channel_rule_index,
  3478. msm_pcm_put_channel_rule_index),
  3479. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3480. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3481. msm_pcm_get_channel_rule_index,
  3482. msm_pcm_put_channel_rule_index),
  3483. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3484. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3485. msm_pcm_get_channel_rule_index,
  3486. msm_pcm_put_channel_rule_index),
  3487. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3488. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3489. msm_pcm_get_channel_rule_index,
  3490. msm_pcm_put_channel_rule_index),
  3491. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3492. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3493. msm_pcm_get_channel_rule_index,
  3494. msm_pcm_put_channel_rule_index),
  3495. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3497. msm_pcm_get_out_chs,
  3498. msm_pcm_put_out_chs),
  3499. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3500. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3501. msm_pcm_get_out_chs,
  3502. msm_pcm_put_out_chs),
  3503. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3504. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3505. msm_pcm_get_out_chs,
  3506. msm_pcm_put_out_chs),
  3507. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3508. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3509. msm_pcm_get_out_chs,
  3510. msm_pcm_put_out_chs),
  3511. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3512. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3513. msm_pcm_get_out_chs,
  3514. msm_pcm_put_out_chs),
  3515. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3516. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3517. msm_pcm_get_out_chs,
  3518. msm_pcm_put_out_chs),
  3519. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3520. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3521. msm_pcm_get_out_chs,
  3522. msm_pcm_put_out_chs),
  3523. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3524. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3525. msm_pcm_get_out_chs,
  3526. msm_pcm_put_out_chs),
  3527. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3528. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3529. msm_pcm_get_out_chs,
  3530. msm_pcm_put_out_chs),
  3531. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3532. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3533. msm_pcm_get_out_chs,
  3534. msm_pcm_put_out_chs),
  3535. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3536. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3537. msm_pcm_get_out_chs,
  3538. msm_pcm_put_out_chs),
  3539. {
  3540. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3542. .name = "MultiMedia1 Channel Mixer",
  3543. .info = msm_pcm_channel_mixer_info,
  3544. .get = msm_pcm_channel_mixer_get,
  3545. .put = msm_pcm_channel_mixer_put,
  3546. .private_value = (unsigned long)&(mm1_channel_mux)
  3547. },
  3548. {
  3549. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3550. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3551. .name = "MultiMedia2 Channel Mixer",
  3552. .info = msm_pcm_channel_mixer_info,
  3553. .get = msm_pcm_channel_mixer_get,
  3554. .put = msm_pcm_channel_mixer_put,
  3555. .private_value = (unsigned long)&(mm2_channel_mux)
  3556. },
  3557. {
  3558. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3559. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3560. .name = "MultiMedia3 Channel Mixer",
  3561. .info = msm_pcm_channel_mixer_info,
  3562. .get = msm_pcm_channel_mixer_get,
  3563. .put = msm_pcm_channel_mixer_put,
  3564. .private_value = (unsigned long)&(mm3_channel_mux)
  3565. },
  3566. {
  3567. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3568. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3569. .name = "MultiMedia4 Channel Mixer",
  3570. .info = msm_pcm_channel_mixer_info,
  3571. .get = msm_pcm_channel_mixer_get,
  3572. .put = msm_pcm_channel_mixer_put,
  3573. .private_value = (unsigned long)&(mm4_channel_mux)
  3574. },
  3575. {
  3576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3577. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3578. .name = "MultiMedia18 Channel Mixer",
  3579. .info = msm_pcm_channel_mixer_info,
  3580. .get = msm_pcm_channel_mixer_get,
  3581. .put = msm_pcm_channel_mixer_put,
  3582. .private_value = (unsigned long)&(mm18_channel_mux)
  3583. },
  3584. {
  3585. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3587. .name = "MultiMedia19 Channel Mixer",
  3588. .info = msm_pcm_channel_mixer_info,
  3589. .get = msm_pcm_channel_mixer_get,
  3590. .put = msm_pcm_channel_mixer_put,
  3591. .private_value = (unsigned long)&(mm19_channel_mux)
  3592. },
  3593. {
  3594. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3595. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3596. .name = "MultiMedia28 Channel Mixer",
  3597. .info = msm_pcm_channel_mixer_info,
  3598. .get = msm_pcm_channel_mixer_get,
  3599. .put = msm_pcm_channel_mixer_put,
  3600. .private_value = (unsigned long)&(mm28_channel_mux)
  3601. },
  3602. {
  3603. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3604. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3605. .name = "MultiMedia29 Channel Mixer",
  3606. .info = msm_pcm_channel_mixer_info,
  3607. .get = msm_pcm_channel_mixer_get,
  3608. .put = msm_pcm_channel_mixer_put,
  3609. .private_value = (unsigned long)&(mm29_channel_mux)
  3610. },
  3611. {
  3612. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3613. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3614. .name = "MultiMedia30 Channel Mixer",
  3615. .info = msm_pcm_channel_mixer_info,
  3616. .get = msm_pcm_channel_mixer_get,
  3617. .put = msm_pcm_channel_mixer_put,
  3618. .private_value = (unsigned long)&(mm30_channel_mux)
  3619. },
  3620. {
  3621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3623. .name = "MultiMedia1 Output Channel1",
  3624. .info = msm_pcm_channel_weight_info,
  3625. .get = msm_pcm_channel_weight_get,
  3626. .put = msm_pcm_channel_weight_put,
  3627. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3628. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3629. },
  3630. {
  3631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3633. .name = "MultiMedia1 Output Channel2",
  3634. .info = msm_pcm_channel_weight_info,
  3635. .get = msm_pcm_channel_weight_get,
  3636. .put = msm_pcm_channel_weight_put,
  3637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3639. },
  3640. {
  3641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3643. .name = "MultiMedia1 Output Channel3",
  3644. .info = msm_pcm_channel_weight_info,
  3645. .get = msm_pcm_channel_weight_get,
  3646. .put = msm_pcm_channel_weight_put,
  3647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3649. },
  3650. {
  3651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3653. .name = "MultiMedia1 Output Channel4",
  3654. .info = msm_pcm_channel_weight_info,
  3655. .get = msm_pcm_channel_weight_get,
  3656. .put = msm_pcm_channel_weight_put,
  3657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3659. },
  3660. {
  3661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3663. .name = "MultiMedia1 Output Channel5",
  3664. .info = msm_pcm_channel_weight_info,
  3665. .get = msm_pcm_channel_weight_get,
  3666. .put = msm_pcm_channel_weight_put,
  3667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3669. },
  3670. {
  3671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3673. .name = "MultiMedia1 Output Channel6",
  3674. .info = msm_pcm_channel_weight_info,
  3675. .get = msm_pcm_channel_weight_get,
  3676. .put = msm_pcm_channel_weight_put,
  3677. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3678. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3679. },
  3680. {
  3681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3683. .name = "MultiMedia1 Output Channel7",
  3684. .info = msm_pcm_channel_weight_info,
  3685. .get = msm_pcm_channel_weight_get,
  3686. .put = msm_pcm_channel_weight_put,
  3687. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3688. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3689. },
  3690. {
  3691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3693. .name = "MultiMedia1 Output Channel8",
  3694. .info = msm_pcm_channel_weight_info,
  3695. .get = msm_pcm_channel_weight_get,
  3696. .put = msm_pcm_channel_weight_put,
  3697. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3698. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3699. },
  3700. {
  3701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3703. .name = "MultiMedia1 Output Channel9",
  3704. .info = msm_pcm_channel_weight_info,
  3705. .get = msm_pcm_channel_weight_get,
  3706. .put = msm_pcm_channel_weight_put,
  3707. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3708. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3709. },
  3710. {
  3711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3713. .name = "MultiMedia1 Output Channel10",
  3714. .info = msm_pcm_channel_weight_info,
  3715. .get = msm_pcm_channel_weight_get,
  3716. .put = msm_pcm_channel_weight_put,
  3717. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3718. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3719. },
  3720. {
  3721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3723. .name = "MultiMedia1 Output Channel11",
  3724. .info = msm_pcm_channel_weight_info,
  3725. .get = msm_pcm_channel_weight_get,
  3726. .put = msm_pcm_channel_weight_put,
  3727. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3728. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3729. },
  3730. {
  3731. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3732. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3733. .name = "MultiMedia1 Output Channel12",
  3734. .info = msm_pcm_channel_weight_info,
  3735. .get = msm_pcm_channel_weight_get,
  3736. .put = msm_pcm_channel_weight_put,
  3737. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3738. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3739. },
  3740. {
  3741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3742. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3743. .name = "MultiMedia1 Output Channel13",
  3744. .info = msm_pcm_channel_weight_info,
  3745. .get = msm_pcm_channel_weight_get,
  3746. .put = msm_pcm_channel_weight_put,
  3747. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3748. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3749. },
  3750. {
  3751. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3752. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3753. .name = "MultiMedia1 Output Channel14",
  3754. .info = msm_pcm_channel_weight_info,
  3755. .get = msm_pcm_channel_weight_get,
  3756. .put = msm_pcm_channel_weight_put,
  3757. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3758. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3759. },
  3760. {
  3761. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3762. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3763. .name = "MultiMedia2 Output Channel1",
  3764. .info = msm_pcm_channel_weight_info,
  3765. .get = msm_pcm_channel_weight_get,
  3766. .put = msm_pcm_channel_weight_put,
  3767. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3768. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3769. },
  3770. {
  3771. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3772. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3773. .name = "MultiMedia2 Output Channel2",
  3774. .info = msm_pcm_channel_weight_info,
  3775. .get = msm_pcm_channel_weight_get,
  3776. .put = msm_pcm_channel_weight_put,
  3777. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3778. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3779. },
  3780. {
  3781. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3782. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3783. .name = "MultiMedia2 Output Channel3",
  3784. .info = msm_pcm_channel_weight_info,
  3785. .get = msm_pcm_channel_weight_get,
  3786. .put = msm_pcm_channel_weight_put,
  3787. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3788. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3789. },
  3790. {
  3791. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3792. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3793. .name = "MultiMedia3 Output Channel1",
  3794. .info = msm_pcm_channel_weight_info,
  3795. .get = msm_pcm_channel_weight_get,
  3796. .put = msm_pcm_channel_weight_put,
  3797. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3798. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3799. },
  3800. {
  3801. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3802. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3803. .name = "MultiMedia3 Output Channel2",
  3804. .info = msm_pcm_channel_weight_info,
  3805. .get = msm_pcm_channel_weight_get,
  3806. .put = msm_pcm_channel_weight_put,
  3807. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3808. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3809. },
  3810. {
  3811. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3812. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3813. .name = "MultiMedia18 Output Channel1",
  3814. .info = msm_pcm_channel_weight_info,
  3815. .get = msm_pcm_channel_weight_get,
  3816. .put = msm_pcm_channel_weight_put,
  3817. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3818. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3819. },
  3820. {
  3821. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3822. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3823. .name = "MultiMedia18 Output Channel2",
  3824. .info = msm_pcm_channel_weight_info,
  3825. .get = msm_pcm_channel_weight_get,
  3826. .put = msm_pcm_channel_weight_put,
  3827. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3828. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3829. },
  3830. {
  3831. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3832. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3833. .name = "MultiMedia18 Output Channel3",
  3834. .info = msm_pcm_channel_weight_info,
  3835. .get = msm_pcm_channel_weight_get,
  3836. .put = msm_pcm_channel_weight_put,
  3837. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3838. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3839. },
  3840. {
  3841. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3842. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3843. .name = "MultiMedia18 Output Channel4",
  3844. .info = msm_pcm_channel_weight_info,
  3845. .get = msm_pcm_channel_weight_get,
  3846. .put = msm_pcm_channel_weight_put,
  3847. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3848. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3849. },
  3850. {
  3851. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3852. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3853. .name = "MultiMedia18 Output Channel5",
  3854. .info = msm_pcm_channel_weight_info,
  3855. .get = msm_pcm_channel_weight_get,
  3856. .put = msm_pcm_channel_weight_put,
  3857. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3858. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3859. },
  3860. {
  3861. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3862. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3863. .name = "MultiMedia18 Output Channel6",
  3864. .info = msm_pcm_channel_weight_info,
  3865. .get = msm_pcm_channel_weight_get,
  3866. .put = msm_pcm_channel_weight_put,
  3867. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3868. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3869. },
  3870. {
  3871. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3872. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3873. .name = "MultiMedia18 Output Channel7",
  3874. .info = msm_pcm_channel_weight_info,
  3875. .get = msm_pcm_channel_weight_get,
  3876. .put = msm_pcm_channel_weight_put,
  3877. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3878. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3879. },
  3880. {
  3881. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3882. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3883. .name = "MultiMedia18 Output Channel8",
  3884. .info = msm_pcm_channel_weight_info,
  3885. .get = msm_pcm_channel_weight_get,
  3886. .put = msm_pcm_channel_weight_put,
  3887. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3888. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3889. },
  3890. {
  3891. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3892. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3893. .name = "MultiMedia18 Output Channel9",
  3894. .info = msm_pcm_channel_weight_info,
  3895. .get = msm_pcm_channel_weight_get,
  3896. .put = msm_pcm_channel_weight_put,
  3897. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3898. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3899. },
  3900. {
  3901. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3902. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3903. .name = "MultiMedia18 Output Channel10",
  3904. .info = msm_pcm_channel_weight_info,
  3905. .get = msm_pcm_channel_weight_get,
  3906. .put = msm_pcm_channel_weight_put,
  3907. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3908. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3909. },
  3910. {
  3911. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3912. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3913. .name = "MultiMedia18 Output Channel11",
  3914. .info = msm_pcm_channel_weight_info,
  3915. .get = msm_pcm_channel_weight_get,
  3916. .put = msm_pcm_channel_weight_put,
  3917. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3918. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3919. },
  3920. {
  3921. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3922. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3923. .name = "MultiMedia18 Output Channel12",
  3924. .info = msm_pcm_channel_weight_info,
  3925. .get = msm_pcm_channel_weight_get,
  3926. .put = msm_pcm_channel_weight_put,
  3927. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3928. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3929. },
  3930. {
  3931. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3932. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3933. .name = "MultiMedia18 Output Channel13",
  3934. .info = msm_pcm_channel_weight_info,
  3935. .get = msm_pcm_channel_weight_get,
  3936. .put = msm_pcm_channel_weight_put,
  3937. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3938. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3939. },
  3940. {
  3941. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3942. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3943. .name = "MultiMedia18 Output Channel14",
  3944. .info = msm_pcm_channel_weight_info,
  3945. .get = msm_pcm_channel_weight_get,
  3946. .put = msm_pcm_channel_weight_put,
  3947. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3948. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3949. },
  3950. {
  3951. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3952. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3953. .name = "MultiMedia19 Output Channel1",
  3954. .info = msm_pcm_channel_weight_info,
  3955. .get = msm_pcm_channel_weight_get,
  3956. .put = msm_pcm_channel_weight_put,
  3957. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3958. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3959. },
  3960. {
  3961. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3962. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3963. .name = "MultiMedia19 Output Channel2",
  3964. .info = msm_pcm_channel_weight_info,
  3965. .get = msm_pcm_channel_weight_get,
  3966. .put = msm_pcm_channel_weight_put,
  3967. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3968. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3969. },
  3970. {
  3971. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3972. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3973. .name = "MultiMedia19 Output Channel3",
  3974. .info = msm_pcm_channel_weight_info,
  3975. .get = msm_pcm_channel_weight_get,
  3976. .put = msm_pcm_channel_weight_put,
  3977. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3978. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3979. },
  3980. {
  3981. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3982. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3983. .name = "MultiMedia19 Output Channel4",
  3984. .info = msm_pcm_channel_weight_info,
  3985. .get = msm_pcm_channel_weight_get,
  3986. .put = msm_pcm_channel_weight_put,
  3987. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3988. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3989. },
  3990. {
  3991. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3992. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3993. .name = "MultiMedia19 Output Channel5",
  3994. .info = msm_pcm_channel_weight_info,
  3995. .get = msm_pcm_channel_weight_get,
  3996. .put = msm_pcm_channel_weight_put,
  3997. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3998. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3999. },
  4000. {
  4001. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4002. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4003. .name = "MultiMedia19 Output Channel6",
  4004. .info = msm_pcm_channel_weight_info,
  4005. .get = msm_pcm_channel_weight_get,
  4006. .put = msm_pcm_channel_weight_put,
  4007. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4008. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4009. },
  4010. {
  4011. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4012. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4013. .name = "MultiMedia19 Output Channel7",
  4014. .info = msm_pcm_channel_weight_info,
  4015. .get = msm_pcm_channel_weight_get,
  4016. .put = msm_pcm_channel_weight_put,
  4017. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4018. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4019. },
  4020. {
  4021. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4022. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4023. .name = "MultiMedia19 Output Channel8",
  4024. .info = msm_pcm_channel_weight_info,
  4025. .get = msm_pcm_channel_weight_get,
  4026. .put = msm_pcm_channel_weight_put,
  4027. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4028. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4029. },
  4030. {
  4031. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4032. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4033. .name = "MultiMedia19 Output Channel9",
  4034. .info = msm_pcm_channel_weight_info,
  4035. .get = msm_pcm_channel_weight_get,
  4036. .put = msm_pcm_channel_weight_put,
  4037. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4038. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4039. },
  4040. {
  4041. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4042. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4043. .name = "MultiMedia19 Output Channel10",
  4044. .info = msm_pcm_channel_weight_info,
  4045. .get = msm_pcm_channel_weight_get,
  4046. .put = msm_pcm_channel_weight_put,
  4047. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4048. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4049. },
  4050. {
  4051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4052. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4053. .name = "MultiMedia19 Output Channel11",
  4054. .info = msm_pcm_channel_weight_info,
  4055. .get = msm_pcm_channel_weight_get,
  4056. .put = msm_pcm_channel_weight_put,
  4057. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4058. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4059. },
  4060. {
  4061. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4062. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4063. .name = "MultiMedia19 Output Channel12",
  4064. .info = msm_pcm_channel_weight_info,
  4065. .get = msm_pcm_channel_weight_get,
  4066. .put = msm_pcm_channel_weight_put,
  4067. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4068. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4069. },
  4070. {
  4071. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4072. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4073. .name = "MultiMedia19 Output Channel13",
  4074. .info = msm_pcm_channel_weight_info,
  4075. .get = msm_pcm_channel_weight_get,
  4076. .put = msm_pcm_channel_weight_put,
  4077. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4078. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4079. },
  4080. {
  4081. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4082. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4083. .name = "MultiMedia19 Output Channel14",
  4084. .info = msm_pcm_channel_weight_info,
  4085. .get = msm_pcm_channel_weight_get,
  4086. .put = msm_pcm_channel_weight_put,
  4087. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4088. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4089. },
  4090. {
  4091. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4092. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4093. .name = "MultiMedia28 Output Channel1",
  4094. .info = msm_pcm_channel_weight_info,
  4095. .get = msm_pcm_channel_weight_get,
  4096. .put = msm_pcm_channel_weight_put,
  4097. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4098. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4099. },
  4100. {
  4101. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4102. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4103. .name = "MultiMedia28 Output Channel2",
  4104. .info = msm_pcm_channel_weight_info,
  4105. .get = msm_pcm_channel_weight_get,
  4106. .put = msm_pcm_channel_weight_put,
  4107. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4108. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4109. },
  4110. {
  4111. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4112. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4113. .name = "MultiMedia28 Output Channel3",
  4114. .info = msm_pcm_channel_weight_info,
  4115. .get = msm_pcm_channel_weight_get,
  4116. .put = msm_pcm_channel_weight_put,
  4117. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4118. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4119. },
  4120. {
  4121. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4122. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4123. .name = "MultiMedia28 Output Channel4",
  4124. .info = msm_pcm_channel_weight_info,
  4125. .get = msm_pcm_channel_weight_get,
  4126. .put = msm_pcm_channel_weight_put,
  4127. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4128. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4129. },
  4130. {
  4131. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4132. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4133. .name = "MultiMedia28 Output Channel5",
  4134. .info = msm_pcm_channel_weight_info,
  4135. .get = msm_pcm_channel_weight_get,
  4136. .put = msm_pcm_channel_weight_put,
  4137. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4138. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4139. },
  4140. {
  4141. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4142. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4143. .name = "MultiMedia28 Output Channel6",
  4144. .info = msm_pcm_channel_weight_info,
  4145. .get = msm_pcm_channel_weight_get,
  4146. .put = msm_pcm_channel_weight_put,
  4147. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4148. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4149. },
  4150. {
  4151. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4152. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4153. .name = "MultiMedia28 Output Channel7",
  4154. .info = msm_pcm_channel_weight_info,
  4155. .get = msm_pcm_channel_weight_get,
  4156. .put = msm_pcm_channel_weight_put,
  4157. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4158. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4159. },
  4160. {
  4161. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4162. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4163. .name = "MultiMedia28 Output Channel8",
  4164. .info = msm_pcm_channel_weight_info,
  4165. .get = msm_pcm_channel_weight_get,
  4166. .put = msm_pcm_channel_weight_put,
  4167. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4168. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4169. },
  4170. {
  4171. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4172. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4173. .name = "MultiMedia28 Output Channel9",
  4174. .info = msm_pcm_channel_weight_info,
  4175. .get = msm_pcm_channel_weight_get,
  4176. .put = msm_pcm_channel_weight_put,
  4177. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4178. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4179. },
  4180. {
  4181. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4182. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4183. .name = "MultiMedia28 Output Channel10",
  4184. .info = msm_pcm_channel_weight_info,
  4185. .get = msm_pcm_channel_weight_get,
  4186. .put = msm_pcm_channel_weight_put,
  4187. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4188. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4189. },
  4190. {
  4191. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4192. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4193. .name = "MultiMedia28 Output Channel11",
  4194. .info = msm_pcm_channel_weight_info,
  4195. .get = msm_pcm_channel_weight_get,
  4196. .put = msm_pcm_channel_weight_put,
  4197. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4198. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4199. },
  4200. {
  4201. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4202. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4203. .name = "MultiMedia28 Output Channel12",
  4204. .info = msm_pcm_channel_weight_info,
  4205. .get = msm_pcm_channel_weight_get,
  4206. .put = msm_pcm_channel_weight_put,
  4207. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4208. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4209. },
  4210. {
  4211. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4212. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4213. .name = "MultiMedia28 Output Channel13",
  4214. .info = msm_pcm_channel_weight_info,
  4215. .get = msm_pcm_channel_weight_get,
  4216. .put = msm_pcm_channel_weight_put,
  4217. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4218. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4219. },
  4220. {
  4221. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4222. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4223. .name = "MultiMedia28 Output Channel14",
  4224. .info = msm_pcm_channel_weight_info,
  4225. .get = msm_pcm_channel_weight_get,
  4226. .put = msm_pcm_channel_weight_put,
  4227. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4228. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4229. },
  4230. {
  4231. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4232. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4233. .name = "MultiMedia29 Output Channel1",
  4234. .info = msm_pcm_channel_weight_info,
  4235. .get = msm_pcm_channel_weight_get,
  4236. .put = msm_pcm_channel_weight_put,
  4237. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4238. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4239. },
  4240. {
  4241. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4242. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4243. .name = "MultiMedia29 Output Channel2",
  4244. .info = msm_pcm_channel_weight_info,
  4245. .get = msm_pcm_channel_weight_get,
  4246. .put = msm_pcm_channel_weight_put,
  4247. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4248. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4249. },
  4250. {
  4251. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4252. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4253. .name = "MultiMedia29 Output Channel3",
  4254. .info = msm_pcm_channel_weight_info,
  4255. .get = msm_pcm_channel_weight_get,
  4256. .put = msm_pcm_channel_weight_put,
  4257. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4258. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4259. },
  4260. {
  4261. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4262. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4263. .name = "MultiMedia29 Output Channel4",
  4264. .info = msm_pcm_channel_weight_info,
  4265. .get = msm_pcm_channel_weight_get,
  4266. .put = msm_pcm_channel_weight_put,
  4267. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4268. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4269. },
  4270. {
  4271. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4272. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4273. .name = "MultiMedia29 Output Channel5",
  4274. .info = msm_pcm_channel_weight_info,
  4275. .get = msm_pcm_channel_weight_get,
  4276. .put = msm_pcm_channel_weight_put,
  4277. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4278. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4279. },
  4280. {
  4281. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4282. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4283. .name = "MultiMedia29 Output Channel6",
  4284. .info = msm_pcm_channel_weight_info,
  4285. .get = msm_pcm_channel_weight_get,
  4286. .put = msm_pcm_channel_weight_put,
  4287. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4288. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4289. },
  4290. {
  4291. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4292. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4293. .name = "MultiMedia29 Output Channel7",
  4294. .info = msm_pcm_channel_weight_info,
  4295. .get = msm_pcm_channel_weight_get,
  4296. .put = msm_pcm_channel_weight_put,
  4297. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4298. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4299. },
  4300. {
  4301. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4302. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4303. .name = "MultiMedia29 Output Channel8",
  4304. .info = msm_pcm_channel_weight_info,
  4305. .get = msm_pcm_channel_weight_get,
  4306. .put = msm_pcm_channel_weight_put,
  4307. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4308. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4309. },
  4310. {
  4311. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4312. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4313. .name = "MultiMedia29 Output Channel9",
  4314. .info = msm_pcm_channel_weight_info,
  4315. .get = msm_pcm_channel_weight_get,
  4316. .put = msm_pcm_channel_weight_put,
  4317. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4318. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4319. },
  4320. {
  4321. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4322. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4323. .name = "MultiMedia29 Output Channel10",
  4324. .info = msm_pcm_channel_weight_info,
  4325. .get = msm_pcm_channel_weight_get,
  4326. .put = msm_pcm_channel_weight_put,
  4327. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4328. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4329. },
  4330. {
  4331. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4332. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4333. .name = "MultiMedia29 Output Channel11",
  4334. .info = msm_pcm_channel_weight_info,
  4335. .get = msm_pcm_channel_weight_get,
  4336. .put = msm_pcm_channel_weight_put,
  4337. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4338. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4339. },
  4340. {
  4341. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4342. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4343. .name = "MultiMedia29 Output Channel12",
  4344. .info = msm_pcm_channel_weight_info,
  4345. .get = msm_pcm_channel_weight_get,
  4346. .put = msm_pcm_channel_weight_put,
  4347. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4348. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4349. },
  4350. {
  4351. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4352. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4353. .name = "MultiMedia29 Output Channel13",
  4354. .info = msm_pcm_channel_weight_info,
  4355. .get = msm_pcm_channel_weight_get,
  4356. .put = msm_pcm_channel_weight_put,
  4357. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4358. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4359. },
  4360. {
  4361. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4362. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4363. .name = "MultiMedia29 Output Channel14",
  4364. .info = msm_pcm_channel_weight_info,
  4365. .get = msm_pcm_channel_weight_get,
  4366. .put = msm_pcm_channel_weight_put,
  4367. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4368. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4369. },
  4370. {
  4371. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4372. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4373. .name = "MultiMedia30 Output Channel1",
  4374. .info = msm_pcm_channel_weight_info,
  4375. .get = msm_pcm_channel_weight_get,
  4376. .put = msm_pcm_channel_weight_put,
  4377. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4378. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4379. },
  4380. {
  4381. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4382. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4383. .name = "MultiMedia30 Output Channel2",
  4384. .info = msm_pcm_channel_weight_info,
  4385. .get = msm_pcm_channel_weight_get,
  4386. .put = msm_pcm_channel_weight_put,
  4387. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4388. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4389. },
  4390. {
  4391. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4392. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4393. .name = "MultiMedia30 Output Channel3",
  4394. .info = msm_pcm_channel_weight_info,
  4395. .get = msm_pcm_channel_weight_get,
  4396. .put = msm_pcm_channel_weight_put,
  4397. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4398. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4399. },
  4400. {
  4401. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4402. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4403. .name = "MultiMedia30 Output Channel4",
  4404. .info = msm_pcm_channel_weight_info,
  4405. .get = msm_pcm_channel_weight_get,
  4406. .put = msm_pcm_channel_weight_put,
  4407. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4408. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4409. },
  4410. {
  4411. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4412. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4413. .name = "MultiMedia30 Output Channel5",
  4414. .info = msm_pcm_channel_weight_info,
  4415. .get = msm_pcm_channel_weight_get,
  4416. .put = msm_pcm_channel_weight_put,
  4417. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4418. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4419. },
  4420. {
  4421. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4422. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4423. .name = "MultiMedia30 Output Channel6",
  4424. .info = msm_pcm_channel_weight_info,
  4425. .get = msm_pcm_channel_weight_get,
  4426. .put = msm_pcm_channel_weight_put,
  4427. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4428. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4429. },
  4430. {
  4431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4432. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4433. .name = "MultiMedia30 Output Channel7",
  4434. .info = msm_pcm_channel_weight_info,
  4435. .get = msm_pcm_channel_weight_get,
  4436. .put = msm_pcm_channel_weight_put,
  4437. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4438. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4439. },
  4440. {
  4441. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4442. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4443. .name = "MultiMedia30 Output Channel8",
  4444. .info = msm_pcm_channel_weight_info,
  4445. .get = msm_pcm_channel_weight_get,
  4446. .put = msm_pcm_channel_weight_put,
  4447. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4448. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4449. },
  4450. {
  4451. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4452. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4453. .name = "MultiMedia30 Output Channel9",
  4454. .info = msm_pcm_channel_weight_info,
  4455. .get = msm_pcm_channel_weight_get,
  4456. .put = msm_pcm_channel_weight_put,
  4457. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4458. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4459. },
  4460. {
  4461. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4462. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4463. .name = "MultiMedia30 Output Channel10",
  4464. .info = msm_pcm_channel_weight_info,
  4465. .get = msm_pcm_channel_weight_get,
  4466. .put = msm_pcm_channel_weight_put,
  4467. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4468. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4469. },
  4470. {
  4471. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4472. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4473. .name = "MultiMedia30 Output Channel11",
  4474. .info = msm_pcm_channel_weight_info,
  4475. .get = msm_pcm_channel_weight_get,
  4476. .put = msm_pcm_channel_weight_put,
  4477. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4478. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4479. },
  4480. {
  4481. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4482. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4483. .name = "MultiMedia30 Output Channel12",
  4484. .info = msm_pcm_channel_weight_info,
  4485. .get = msm_pcm_channel_weight_get,
  4486. .put = msm_pcm_channel_weight_put,
  4487. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4488. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4489. },
  4490. {
  4491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4493. .name = "MultiMedia30 Output Channel13",
  4494. .info = msm_pcm_channel_weight_info,
  4495. .get = msm_pcm_channel_weight_get,
  4496. .put = msm_pcm_channel_weight_put,
  4497. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4498. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4499. },
  4500. {
  4501. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4502. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4503. .name = "MultiMedia30 Output Channel14",
  4504. .info = msm_pcm_channel_weight_info,
  4505. .get = msm_pcm_channel_weight_get,
  4506. .put = msm_pcm_channel_weight_put,
  4507. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4508. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4509. },
  4510. {
  4511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4513. .name = "MultiMedia1 Channel1",
  4514. .info = msm_pcm_channel_input_be_info,
  4515. .get = msm_pcm_channel_input_be_get,
  4516. .put = msm_pcm_channel_input_be_put,
  4517. .private_value = (unsigned long)&(mm1_ch1_enum)
  4518. },
  4519. {
  4520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4522. .name = "MultiMedia1 Channel2",
  4523. .info = msm_pcm_channel_input_be_info,
  4524. .get = msm_pcm_channel_input_be_get,
  4525. .put = msm_pcm_channel_input_be_put,
  4526. .private_value = (unsigned long)&(mm1_ch2_enum)
  4527. },
  4528. {
  4529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4531. .name = "MultiMedia1 Channel3",
  4532. .info = msm_pcm_channel_input_be_info,
  4533. .get = msm_pcm_channel_input_be_get,
  4534. .put = msm_pcm_channel_input_be_put,
  4535. .private_value = (unsigned long)&(mm1_ch3_enum)
  4536. },
  4537. {
  4538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4540. .name = "MultiMedia1 Channel4",
  4541. .info = msm_pcm_channel_input_be_info,
  4542. .get = msm_pcm_channel_input_be_get,
  4543. .put = msm_pcm_channel_input_be_put,
  4544. .private_value = (unsigned long)&(mm1_ch4_enum)
  4545. },
  4546. {
  4547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4548. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4549. .name = "MultiMedia1 Channel5",
  4550. .info = msm_pcm_channel_input_be_info,
  4551. .get = msm_pcm_channel_input_be_get,
  4552. .put = msm_pcm_channel_input_be_put,
  4553. .private_value = (unsigned long)&(mm1_ch5_enum)
  4554. },
  4555. {
  4556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4558. .name = "MultiMedia1 Channel6",
  4559. .info = msm_pcm_channel_input_be_info,
  4560. .get = msm_pcm_channel_input_be_get,
  4561. .put = msm_pcm_channel_input_be_put,
  4562. .private_value = (unsigned long)&(mm1_ch6_enum)
  4563. },
  4564. {
  4565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4567. .name = "MultiMedia1 Channel7",
  4568. .info = msm_pcm_channel_input_be_info,
  4569. .get = msm_pcm_channel_input_be_get,
  4570. .put = msm_pcm_channel_input_be_put,
  4571. .private_value = (unsigned long)&(mm1_ch7_enum)
  4572. },
  4573. {
  4574. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4575. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4576. .name = "MultiMedia1 Channel8",
  4577. .info = msm_pcm_channel_input_be_info,
  4578. .get = msm_pcm_channel_input_be_get,
  4579. .put = msm_pcm_channel_input_be_put,
  4580. .private_value = (unsigned long)&(mm1_ch8_enum)
  4581. },
  4582. {
  4583. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4584. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4585. .name = "MultiMedia18 Channel1",
  4586. .info = msm_pcm_channel_input_be_info,
  4587. .get = msm_pcm_channel_input_be_get,
  4588. .put = msm_pcm_channel_input_be_put,
  4589. .private_value = (unsigned long)&(mm18_ch1_enum)
  4590. },
  4591. {
  4592. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4593. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4594. .name = "MultiMedia18 Channel2",
  4595. .info = msm_pcm_channel_input_be_info,
  4596. .get = msm_pcm_channel_input_be_get,
  4597. .put = msm_pcm_channel_input_be_put,
  4598. .private_value = (unsigned long)&(mm18_ch2_enum)
  4599. },
  4600. {
  4601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4602. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4603. .name = "MultiMedia19 Channel1",
  4604. .info = msm_pcm_channel_input_be_info,
  4605. .get = msm_pcm_channel_input_be_get,
  4606. .put = msm_pcm_channel_input_be_put,
  4607. .private_value = (unsigned long)&(mm19_ch1_enum)
  4608. },
  4609. {
  4610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4611. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4612. .name = "MultiMedia19 Channel2",
  4613. .info = msm_pcm_channel_input_be_info,
  4614. .get = msm_pcm_channel_input_be_get,
  4615. .put = msm_pcm_channel_input_be_put,
  4616. .private_value = (unsigned long)&(mm19_ch2_enum)
  4617. },
  4618. {
  4619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4621. .name = "MultiMedia28 Channel1",
  4622. .info = msm_pcm_channel_input_be_info,
  4623. .get = msm_pcm_channel_input_be_get,
  4624. .put = msm_pcm_channel_input_be_put,
  4625. .private_value = (unsigned long)&(mm28_ch1_enum)
  4626. },
  4627. {
  4628. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4629. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4630. .name = "MultiMedia28 Channel2",
  4631. .info = msm_pcm_channel_input_be_info,
  4632. .get = msm_pcm_channel_input_be_get,
  4633. .put = msm_pcm_channel_input_be_put,
  4634. .private_value = (unsigned long)&(mm28_ch2_enum)
  4635. },
  4636. {
  4637. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4638. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4639. .name = "MultiMedia29 Channel1",
  4640. .info = msm_pcm_channel_input_be_info,
  4641. .get = msm_pcm_channel_input_be_get,
  4642. .put = msm_pcm_channel_input_be_put,
  4643. .private_value = (unsigned long)&(mm29_ch1_enum)
  4644. },
  4645. {
  4646. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4647. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4648. .name = "MultiMedia29 Channel2",
  4649. .info = msm_pcm_channel_input_be_info,
  4650. .get = msm_pcm_channel_input_be_get,
  4651. .put = msm_pcm_channel_input_be_put,
  4652. .private_value = (unsigned long)&(mm29_ch2_enum)
  4653. },
  4654. {
  4655. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4656. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4657. .name = "MultiMedia30 Channel1",
  4658. .info = msm_pcm_channel_input_be_info,
  4659. .get = msm_pcm_channel_input_be_get,
  4660. .put = msm_pcm_channel_input_be_put,
  4661. .private_value = (unsigned long)&(mm30_ch1_enum)
  4662. },
  4663. {
  4664. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4665. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4666. .name = "MultiMedia30 Channel2",
  4667. .info = msm_pcm_channel_input_be_info,
  4668. .get = msm_pcm_channel_input_be_get,
  4669. .put = msm_pcm_channel_input_be_put,
  4670. .private_value = (unsigned long)&(mm30_ch2_enum)
  4671. },
  4672. {
  4673. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4674. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4675. .name = "MultiMedia1 Output Channel Map",
  4676. .info = msm_pcm_channel_output_map_info,
  4677. .get = msm_pcm_channel_output_map_get,
  4678. .put = msm_pcm_channel_output_map_put,
  4679. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4680. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4681. },
  4682. {
  4683. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4684. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4685. .name = "MultiMedia2 Output Channel Map",
  4686. .info = msm_pcm_channel_output_map_info,
  4687. .get = msm_pcm_channel_output_map_get,
  4688. .put = msm_pcm_channel_output_map_put,
  4689. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4690. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4691. },
  4692. {
  4693. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4694. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4695. .name = "MultiMedia3 Output Channel Map",
  4696. .info = msm_pcm_channel_output_map_info,
  4697. .get = msm_pcm_channel_output_map_get,
  4698. .put = msm_pcm_channel_output_map_put,
  4699. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4700. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4701. },
  4702. {
  4703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4704. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4705. .name = "MultiMedia4 Output Channel Map",
  4706. .info = msm_pcm_channel_output_map_info,
  4707. .get = msm_pcm_channel_output_map_get,
  4708. .put = msm_pcm_channel_output_map_put,
  4709. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4710. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4711. },
  4712. {
  4713. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4714. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4715. .name = "MultiMedia5 Output Channel Map",
  4716. .info = msm_pcm_channel_output_map_info,
  4717. .get = msm_pcm_channel_output_map_get,
  4718. .put = msm_pcm_channel_output_map_put,
  4719. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4720. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4721. },
  4722. {
  4723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4725. .name = "MultiMedia6 Output Channel Map",
  4726. .info = msm_pcm_channel_output_map_info,
  4727. .get = msm_pcm_channel_output_map_get,
  4728. .put = msm_pcm_channel_output_map_put,
  4729. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4730. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4731. },
  4732. {
  4733. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4734. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4735. .name = "MultiMedia18 Output Channel Map",
  4736. .info = msm_pcm_channel_output_map_info,
  4737. .get = msm_pcm_channel_output_map_get,
  4738. .put = msm_pcm_channel_output_map_put,
  4739. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4740. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4741. },
  4742. {
  4743. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4744. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4745. .name = "MultiMedia19 Output Channel Map",
  4746. .info = msm_pcm_channel_output_map_info,
  4747. .get = msm_pcm_channel_output_map_get,
  4748. .put = msm_pcm_channel_output_map_put,
  4749. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4750. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4751. },
  4752. {
  4753. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4754. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4755. .name = "MultiMedia28 Output Channel Map",
  4756. .info = msm_pcm_channel_output_map_info,
  4757. .get = msm_pcm_channel_output_map_get,
  4758. .put = msm_pcm_channel_output_map_put,
  4759. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4760. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4761. },
  4762. {
  4763. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4764. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4765. .name = "MultiMedia29 Output Channel Map",
  4766. .info = msm_pcm_channel_output_map_info,
  4767. .get = msm_pcm_channel_output_map_get,
  4768. .put = msm_pcm_channel_output_map_put,
  4769. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4770. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4771. },
  4772. {
  4773. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4774. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4775. .name = "MultiMedia30 Output Channel Map",
  4776. .info = msm_pcm_channel_output_map_info,
  4777. .get = msm_pcm_channel_output_map_get,
  4778. .put = msm_pcm_channel_output_map_put,
  4779. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4780. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4781. },
  4782. };
  4783. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4784. struct snd_ctl_elem_value *ucontrol)
  4785. {
  4786. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4787. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4788. ucontrol->value.integer.value[0]);
  4789. return 0;
  4790. }
  4791. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4792. struct snd_ctl_elem_value *ucontrol)
  4793. {
  4794. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4795. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4796. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4797. return 0;
  4798. }
  4799. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4800. struct snd_ctl_elem_value *ucontrol)
  4801. {
  4802. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4803. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4804. ucontrol->value.integer.value[0]);
  4805. return 0;
  4806. }
  4807. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4808. struct snd_ctl_elem_value *ucontrol)
  4809. {
  4810. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4811. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4812. __func__, msm_ec_ref_ch_downmixed);
  4813. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4814. return 0;
  4815. }
  4816. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4817. struct snd_ctl_elem_value *ucontrol)
  4818. {
  4819. int i = 0, ret = 0;
  4820. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4821. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4822. kcontrol->private_value)->shift;
  4823. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4824. weights[i] = ucontrol->value.integer.value[i];
  4825. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4826. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4827. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4828. return ret;
  4829. }
  4830. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4831. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4832. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4833. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4834. struct snd_ctl_elem_value *ucontrol)
  4835. {
  4836. switch (msm_ec_ref_bit_format) {
  4837. case SNDRV_PCM_FORMAT_S24_LE:
  4838. ucontrol->value.integer.value[0] = 2;
  4839. break;
  4840. case SNDRV_PCM_FORMAT_S16_LE:
  4841. ucontrol->value.integer.value[0] = 1;
  4842. break;
  4843. default:
  4844. ucontrol->value.integer.value[0] = 0;
  4845. break;
  4846. }
  4847. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4848. __func__, ucontrol->value.integer.value[0]);
  4849. return 0;
  4850. }
  4851. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4852. struct snd_ctl_elem_value *ucontrol)
  4853. {
  4854. u16 bit_width = 0;
  4855. switch (ucontrol->value.integer.value[0]) {
  4856. case 2:
  4857. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4858. break;
  4859. case 1:
  4860. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4861. break;
  4862. default:
  4863. msm_ec_ref_bit_format = 0;
  4864. break;
  4865. }
  4866. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4867. bit_width = 16;
  4868. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4869. bit_width = 24;
  4870. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4871. __func__, msm_ec_ref_bit_format);
  4872. adm_ec_ref_rx_bit_width(bit_width);
  4873. return 0;
  4874. }
  4875. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4876. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4877. struct snd_ctl_elem_value *ucontrol)
  4878. {
  4879. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4880. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4881. __func__, ucontrol->value.integer.value[0]);
  4882. return 0;
  4883. }
  4884. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4885. struct snd_ctl_elem_value *ucontrol)
  4886. {
  4887. switch (ucontrol->value.integer.value[0]) {
  4888. case 0:
  4889. msm_ec_ref_sampling_rate = 0;
  4890. break;
  4891. case 1:
  4892. msm_ec_ref_sampling_rate = 8000;
  4893. break;
  4894. case 2:
  4895. msm_ec_ref_sampling_rate = 16000;
  4896. break;
  4897. case 3:
  4898. msm_ec_ref_sampling_rate = 32000;
  4899. break;
  4900. case 4:
  4901. msm_ec_ref_sampling_rate = 44100;
  4902. break;
  4903. case 5:
  4904. msm_ec_ref_sampling_rate = 48000;
  4905. break;
  4906. case 6:
  4907. msm_ec_ref_sampling_rate = 96000;
  4908. break;
  4909. case 7:
  4910. msm_ec_ref_sampling_rate = 192000;
  4911. break;
  4912. case 8:
  4913. msm_ec_ref_sampling_rate = 384000;
  4914. break;
  4915. default:
  4916. msm_ec_ref_sampling_rate = 48000;
  4917. break;
  4918. }
  4919. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4920. __func__, msm_ec_ref_sampling_rate);
  4921. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4922. return 0;
  4923. }
  4924. static int get_ec_ref_port_id(int value, int *index)
  4925. {
  4926. int port_id;
  4927. switch (value) {
  4928. case 0:
  4929. *index = 0;
  4930. port_id = AFE_PORT_INVALID;
  4931. break;
  4932. case 1:
  4933. *index = 1;
  4934. port_id = SLIMBUS_0_RX;
  4935. break;
  4936. case 2:
  4937. *index = 2;
  4938. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4939. break;
  4940. case 3:
  4941. *index = 3;
  4942. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4943. break;
  4944. case 4:
  4945. *index = 4;
  4946. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4947. break;
  4948. case 5:
  4949. *index = 5;
  4950. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4951. break;
  4952. case 6:
  4953. *index = 6;
  4954. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4955. break;
  4956. case 7:
  4957. *index = 7;
  4958. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4959. break;
  4960. case 9:
  4961. *index = 9;
  4962. port_id = SLIMBUS_5_RX;
  4963. break;
  4964. case 10:
  4965. *index = 10;
  4966. port_id = SLIMBUS_1_TX;
  4967. break;
  4968. case 11:
  4969. *index = 11;
  4970. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4971. break;
  4972. case 12:
  4973. *index = 12;
  4974. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4975. break;
  4976. case 13:
  4977. *index = 13;
  4978. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4979. break;
  4980. case 14:
  4981. *index = 14;
  4982. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4983. break;
  4984. case 15:
  4985. *index = 15;
  4986. port_id = SLIMBUS_6_RX;
  4987. break;
  4988. case 16:
  4989. *index = 16;
  4990. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4991. break;
  4992. case 17:
  4993. *index = 17;
  4994. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4995. break;
  4996. case 18:
  4997. *index = 18;
  4998. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4999. break;
  5000. case 19:
  5001. *index = 19;
  5002. port_id = AFE_PORT_ID_USB_RX;
  5003. break;
  5004. case 20:
  5005. *index = 20;
  5006. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5007. break;
  5008. case 21:
  5009. *index = 21;
  5010. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5011. break;
  5012. case 22:
  5013. *index = 22;
  5014. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5015. break;
  5016. case 23:
  5017. *index = 23;
  5018. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5019. break;
  5020. case 24:
  5021. *index = 24;
  5022. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5023. break;
  5024. case 25:
  5025. *index = 25;
  5026. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5027. break;
  5028. case 26:
  5029. *index = 26;
  5030. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5031. break;
  5032. case 27:
  5033. *index = 27;
  5034. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5035. break;
  5036. case 28:
  5037. *index = 28;
  5038. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5039. break;
  5040. case 29:
  5041. *index = 29;
  5042. port_id = SLIMBUS_7_RX;
  5043. break;
  5044. case 30:
  5045. *index = 30;
  5046. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5047. break;
  5048. case 31:
  5049. *index = 31;
  5050. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5051. break;
  5052. case 32:
  5053. *index = 32;
  5054. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5055. break;
  5056. case 33:
  5057. *index = 33;
  5058. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5059. break;
  5060. case 34:
  5061. *index = 34;
  5062. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5063. break;
  5064. case 35:
  5065. *index = 35;
  5066. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5067. break;
  5068. case 36:
  5069. *index = 36;
  5070. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5071. break;
  5072. case 37:
  5073. *index = 37;
  5074. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5075. break;
  5076. case 38:
  5077. *index = 38;
  5078. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5079. break;
  5080. case 39:
  5081. *index = 39;
  5082. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5083. break;
  5084. case 40:
  5085. *index = 40;
  5086. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5087. break;
  5088. default:
  5089. *index = 0; /* NONE */
  5090. pr_err("%s: Invalid value %d\n", __func__, value);
  5091. port_id = AFE_PORT_INVALID;
  5092. break;
  5093. }
  5094. return port_id;
  5095. }
  5096. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5097. struct snd_ctl_elem_value *ucontrol)
  5098. {
  5099. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5100. mutex_lock(&routing_lock);
  5101. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5102. mutex_unlock(&routing_lock);
  5103. return 0;
  5104. }
  5105. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5106. struct snd_ctl_elem_value *ucontrol)
  5107. {
  5108. int value = ucontrol->value.integer.value[0];
  5109. mutex_lock(&routing_lock);
  5110. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5111. &afe_loopback_tx_port_index);
  5112. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5113. __func__, afe_loopback_tx_port_index);
  5114. mutex_unlock(&routing_lock);
  5115. return 0;
  5116. }
  5117. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5118. "32000", "44100", "48000", "96000", "192000", "384000"};
  5119. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5120. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5121. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5122. ec_ref_bit_format_text),
  5123. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5124. };
  5125. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5126. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5127. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5128. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5129. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5130. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5131. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5132. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5133. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5134. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5135. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5136. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5137. };
  5138. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5139. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5140. };
  5141. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5142. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5143. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5144. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5145. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5146. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5147. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5148. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5149. msm_route_ec_ref_params_enum[0],
  5150. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5151. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5152. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5153. msm_ec_ref_chmixer_weights_put),
  5154. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5155. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5156. msm_ec_ref_chmixer_weights_put),
  5157. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5158. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5159. msm_ec_ref_chmixer_weights_put),
  5160. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5161. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5162. msm_ec_ref_chmixer_weights_put),
  5163. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5164. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5165. msm_ec_ref_chmixer_weights_put),
  5166. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5167. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5168. msm_ec_ref_chmixer_weights_put),
  5169. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5170. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5171. msm_ec_ref_chmixer_weights_put),
  5172. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5173. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5174. msm_ec_ref_chmixer_weights_put),
  5175. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5177. };
  5178. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5179. struct snd_ctl_elem_value *ucontrol)
  5180. {
  5181. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5182. mutex_lock(&routing_lock);
  5183. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5184. mutex_unlock(&routing_lock);
  5185. return 0;
  5186. }
  5187. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5188. struct snd_ctl_elem_value *ucontrol)
  5189. {
  5190. int value = ucontrol->value.integer.value[0];
  5191. struct snd_soc_dapm_widget *widget =
  5192. snd_soc_dapm_kcontrol_widget(kcontrol);
  5193. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5194. struct snd_soc_dapm_update *update = NULL;
  5195. mutex_lock(&routing_lock);
  5196. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5197. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5198. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5199. __func__, msm_route_ec_ref_rx);
  5200. mutex_unlock(&routing_lock);
  5201. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5202. msm_route_ec_ref_rx, e, update);
  5203. return 0;
  5204. }
  5205. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5206. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5207. msm_route_ec_ref_rx_enum[0],
  5208. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5209. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5210. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5211. msm_route_ec_ref_rx_enum[0],
  5212. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5213. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5214. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5215. msm_route_ec_ref_rx_enum[0],
  5216. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5217. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5218. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5219. msm_route_ec_ref_rx_enum[0],
  5220. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5221. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5222. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5223. msm_route_ec_ref_rx_enum[0],
  5224. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5225. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5226. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5227. msm_route_ec_ref_rx_enum[0],
  5228. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5229. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5230. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5231. msm_route_ec_ref_rx_enum[0],
  5232. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5233. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5234. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5235. msm_route_ec_ref_rx_enum[0],
  5236. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5237. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5238. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5239. msm_route_ec_ref_rx_enum[0],
  5240. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5241. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5242. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5243. msm_route_ec_ref_rx_enum[0],
  5244. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5245. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5246. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5247. msm_route_ec_ref_rx_enum[0],
  5248. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5249. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5250. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5251. msm_route_ec_ref_rx_enum[0],
  5252. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5253. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5254. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5255. msm_route_ec_ref_rx_enum[0],
  5256. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5257. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5258. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5259. msm_route_ec_ref_rx_enum[0],
  5260. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5261. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5262. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5263. msm_route_ec_ref_rx_enum[0],
  5264. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5265. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5266. struct snd_ctl_elem_value *ucontrol)
  5267. {
  5268. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5269. mutex_lock(&routing_lock);
  5270. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5271. mutex_unlock(&routing_lock);
  5272. return 0;
  5273. }
  5274. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5275. struct snd_ctl_elem_value *ucontrol)
  5276. {
  5277. struct snd_soc_dapm_widget *widget =
  5278. snd_soc_dapm_kcontrol_widget(kcontrol);
  5279. int mux = ucontrol->value.enumerated.item[0];
  5280. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5281. int ret = 1;
  5282. bool state = true;
  5283. uint16_t ext_ec_ref_port_id;
  5284. struct snd_soc_dapm_update *update = NULL;
  5285. if (mux >= e->items) {
  5286. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5287. return -EINVAL;
  5288. }
  5289. mutex_lock(&routing_lock);
  5290. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5291. switch (msm_route_ext_ec_ref) {
  5292. case EXT_EC_REF_PRI_MI2S_TX:
  5293. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5294. break;
  5295. case EXT_EC_REF_SEC_MI2S_TX:
  5296. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5297. break;
  5298. case EXT_EC_REF_TERT_MI2S_TX:
  5299. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5300. break;
  5301. case EXT_EC_REF_QUAT_MI2S_TX:
  5302. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5303. break;
  5304. case EXT_EC_REF_QUIN_MI2S_TX:
  5305. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5306. break;
  5307. case EXT_EC_REF_SLIM_1_TX:
  5308. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5309. break;
  5310. case EXT_EC_REF_PRI_TDM_TX:
  5311. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5312. break;
  5313. case EXT_EC_REF_SEC_TDM_TX:
  5314. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5315. break;
  5316. case EXT_EC_REF_NONE:
  5317. default:
  5318. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5319. state = false;
  5320. break;
  5321. }
  5322. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5323. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5324. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5325. mutex_unlock(&routing_lock);
  5326. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5327. update);
  5328. } else {
  5329. ret = -EINVAL;
  5330. mutex_unlock(&routing_lock);
  5331. }
  5332. return ret;
  5333. }
  5334. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5335. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5336. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5337. "SLIM_1_TX", "PRI_TDM_TX",
  5338. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5339. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5340. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5341. };
  5342. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5343. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5344. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5345. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5346. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_PRI_I2S_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_PRI_I2S_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_PRI_I2S_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_PRI_I2S_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_PRI_I2S_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_PRI_I2S_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_PRI_I2S_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_PRI_I2S_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_PRI_I2S_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_PRI_I2S_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_PRI_I2S_RX,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_PRI_I2S_RX,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_PRI_I2S_RX,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_PRI_I2S_RX,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_PRI_I2S_RX,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_PRI_I2S_RX,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_PRI_I2S_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_PRI_I2S_RX,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_PRI_I2S_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_PRI_I2S_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. };
  5439. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5440. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_SEC_I2S_RX,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_SEC_I2S_RX,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_SEC_I2S_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_SEC_I2S_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_SEC_I2S_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_SEC_I2S_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_SEC_I2S_RX,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_SEC_I2S_RX,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_SEC_I2S_RX,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_SEC_I2S_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_SEC_I2S_RX,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_SEC_I2S_RX,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_SEC_I2S_RX,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_SEC_I2S_RX,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_SEC_I2S_RX,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_SEC_I2S_RX,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_SEC_I2S_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_SEC_I2S_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_SEC_I2S_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_SEC_I2S_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. };
  5533. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5534. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5587. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5591. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5595. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5599. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. };
  5627. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5628. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5665. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. };
  5721. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5722. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5735. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5739. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5751. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5755. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. };
  5791. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5792. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5845. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5849. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. };
  5885. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5886. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. };
  5979. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5980. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_MI2S_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_MI2S_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_MI2S_RX,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_MI2S_RX,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_MI2S_RX,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_MI2S_RX,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_MI2S_RX,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_MI2S_RX,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_MI2S_RX,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_MI2S_RX,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_MI2S_RX,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_MI2S_RX,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_MI2S_RX,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_MI2S_RX,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_MI2S_RX,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_MI2S_RX,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_MI2S_RX,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_MI2S_RX,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_MI2S_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_MI2S_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. };
  6073. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6074. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6139. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. };
  6171. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6172. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. };
  6265. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6327. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6331. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6332. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6333. msm_routing_put_audio_mixer),
  6334. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6335. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6339. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6343. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6344. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6345. msm_routing_put_audio_mixer),
  6346. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6351. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. };
  6355. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6356. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. };
  6441. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6442. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. };
  6447. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6448. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. };
  6541. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6542. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6636. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. };
  6639. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6640. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. };
  6705. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6706. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. };
  6771. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6772. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. };
  6861. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6862. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. };
  6951. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6952. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_HDMI_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_HDMI_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_HDMI_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_HDMI_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_HDMI_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_HDMI_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_HDMI_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_HDMI_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_HDMI_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_HDMI_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_HDMI_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_HDMI_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_HDMI_RX,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_HDMI_RX,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_HDMI_RX,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_HDMI_RX,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_HDMI_RX,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_HDMI_RX,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_HDMI_RX,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_HDMI_RX,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_HDMI_RX,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_HDMI_RX,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. };
  7045. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7046. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7111. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. };
  7115. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7116. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7157. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7181. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. };
  7185. /* incall music delivery mixer */
  7186. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. };
  7208. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7209. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. };
  7226. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. };
  7244. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7245. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. };
  7314. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7315. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. };
  7392. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7393. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. };
  7470. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7471. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. };
  7548. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7549. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. };
  7626. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7627. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. };
  7704. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA32, 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_4_mixer_controls[] = {
  7783. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. };
  7860. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7861. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. };
  7938. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7939. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. };
  8016. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8017. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. };
  8094. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8095. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. };
  8164. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8165. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. };
  8234. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8235. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_USB_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_USB_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_USB_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_USB_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_USB_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_USB_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_USB_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_USB_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_USB_RX,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_USB_RX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_USB_RX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_USB_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_USB_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_USB_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_USB_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_USB_RX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_USB_RX,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. };
  8304. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8305. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. };
  8398. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8399. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. };
  8468. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8469. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_INT_FM_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_INT_FM_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_INT_FM_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_INT_FM_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_INT_FM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_INT_FM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_INT_FM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_INT_FM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_INT_FM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_INT_FM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_INT_FM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_INT_FM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_INT_FM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_INT_FM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_INT_FM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_INT_FM_RX,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_INT_FM_RX,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_INT_FM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_INT_FM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_INT_FM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_INT_FM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_INT_FM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_INT_FM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. };
  8562. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8563. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_AFE_PCM_RX,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_AFE_PCM_RX,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_AFE_PCM_RX,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_AFE_PCM_RX,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_AFE_PCM_RX,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_AFE_PCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_AFE_PCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_AFE_PCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_AFE_PCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_AFE_PCM_RX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_AFE_PCM_RX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_AFE_PCM_RX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_AFE_PCM_RX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_AFE_PCM_RX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_AFE_PCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_AFE_PCM_RX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_AFE_PCM_RX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_AFE_PCM_RX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_AFE_PCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_AFE_PCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_AFE_PCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_AFE_PCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_AFE_PCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. };
  8656. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_AUXPCM_RX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_AUXPCM_RX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_AUXPCM_RX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_AUXPCM_RX,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_AUXPCM_RX,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_AUXPCM_RX,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_AUXPCM_RX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_AUXPCM_RX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_AUXPCM_RX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_AUXPCM_RX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_AUXPCM_RX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_AUXPCM_RX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_AUXPCM_RX,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_AUXPCM_RX,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_AUXPCM_RX,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_AUXPCM_RX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_AUXPCM_RX,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_AUXPCM_RX,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_AUXPCM_RX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_AUXPCM_RX,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. };
  8754. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8755. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. };
  8852. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8853. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. };
  8922. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. };
  8992. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. };
  9062. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. };
  9132. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9133. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. };
  9218. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9219. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. };
  9304. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9305. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. };
  9390. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9391. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. };
  9476. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9477. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9502. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9503. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9504. msm_routing_put_audio_mixer),
  9505. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9506. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9507. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9508. msm_routing_put_audio_mixer),
  9509. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9510. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9511. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9512. msm_routing_put_audio_mixer),
  9513. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. };
  9554. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9555. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. };
  9640. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9641. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. };
  9726. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9727. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. };
  9812. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9813. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. };
  9898. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9899. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. };
  9976. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9977. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. };
  10062. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10126. msm_routing_put_audio_mixer),
  10127. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10129. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10130. msm_routing_put_audio_mixer),
  10131. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10133. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10134. msm_routing_put_audio_mixer),
  10135. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10136. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10137. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10138. msm_routing_put_audio_mixer),
  10139. };
  10140. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10141. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. };
  10226. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10268. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10270. msm_routing_put_audio_mixer),
  10271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10274. msm_routing_put_audio_mixer),
  10275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10278. msm_routing_put_audio_mixer),
  10279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. };
  10312. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10313. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10343. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10344. msm_routing_put_audio_mixer),
  10345. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10347. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10348. msm_routing_put_audio_mixer),
  10349. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10352. msm_routing_put_audio_mixer),
  10353. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10355. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10356. msm_routing_put_audio_mixer),
  10357. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10359. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10360. msm_routing_put_audio_mixer),
  10361. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10363. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10364. msm_routing_put_audio_mixer),
  10365. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. };
  10398. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10399. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10442. msm_routing_put_audio_mixer),
  10443. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10445. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10446. msm_routing_put_audio_mixer),
  10447. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10449. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10450. msm_routing_put_audio_mixer),
  10451. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10453. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. };
  10484. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10485. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10500. msm_routing_put_audio_mixer),
  10501. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10504. msm_routing_put_audio_mixer),
  10505. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10508. msm_routing_put_audio_mixer),
  10509. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10511. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10512. msm_routing_put_audio_mixer),
  10513. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. };
  10574. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10575. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10580. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10581. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10582. msm_routing_put_audio_mixer),
  10583. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10585. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10586. msm_routing_put_audio_mixer),
  10587. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10589. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10590. msm_routing_put_audio_mixer),
  10591. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10594. msm_routing_put_audio_mixer),
  10595. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. };
  10652. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10653. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10656. msm_routing_put_audio_mixer),
  10657. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10668. msm_routing_put_audio_mixer),
  10669. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10684. msm_routing_put_audio_mixer),
  10685. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10687. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10688. msm_routing_put_audio_mixer),
  10689. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10692. msm_routing_put_audio_mixer),
  10693. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10695. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10696. msm_routing_put_audio_mixer),
  10697. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10699. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10700. msm_routing_put_audio_mixer),
  10701. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10703. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10704. msm_routing_put_audio_mixer),
  10705. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10706. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10707. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10708. msm_routing_put_audio_mixer),
  10709. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. };
  10742. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10743. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10753. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10754. msm_routing_put_audio_mixer),
  10755. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10758. msm_routing_put_audio_mixer),
  10759. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10761. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10766. msm_routing_put_audio_mixer),
  10767. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10769. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10770. msm_routing_put_audio_mixer),
  10771. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. };
  10832. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10833. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. };
  10922. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10934. msm_routing_put_audio_mixer),
  10935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10938. msm_routing_put_audio_mixer),
  10939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. };
  11012. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11013. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. };
  11090. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11091. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  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_QUIN_TDM_TX_1,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. };
  11156. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11157. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. };
  11234. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11235. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. };
  11312. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11313. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. };
  11402. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11403. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11429. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11430. msm_routing_put_audio_mixer),
  11431. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. };
  11468. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11469. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11504. msm_routing_put_audio_mixer),
  11505. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11508. msm_routing_put_audio_mixer),
  11509. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11512. msm_routing_put_audio_mixer),
  11513. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. };
  11558. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11559. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. };
  11632. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. };
  11698. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11699. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. };
  11772. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11773. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. };
  11846. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11847. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. };
  11920. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11921. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_PRI_I2S_TX,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_MI2S_TX,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_AUXPCM_TX,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_INT_FM_TX,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_AFE_PCM_TX,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_USB_TX,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. };
  12194. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12195. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_INT_FM_TX,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_MI2S_TX,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_USB_TX,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. };
  12420. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12421. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_INT_FM_TX,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_MI2S_TX,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_AFE_PCM_TX,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_AUXPCM_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 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_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. };
  12642. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12643. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA4, 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_MULTIMEDIA4, 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_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_INT_FM_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_AFE_PCM_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_USB_TX,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. };
  12856. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12857. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_INT_FM_TX,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_MI2S_TX,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_AFE_PCM_TX,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_AUXPCM_TX,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_USB_TX,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13040. msm_routing_put_audio_mixer),
  13041. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13043. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13044. msm_routing_put_audio_mixer),
  13045. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13046. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13048. msm_routing_put_audio_mixer),
  13049. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13051. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13052. msm_routing_put_audio_mixer),
  13053. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13055. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13060. msm_routing_put_audio_mixer),
  13061. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13063. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13064. msm_routing_put_audio_mixer),
  13065. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13066. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13068. msm_routing_put_audio_mixer),
  13069. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13071. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13072. msm_routing_put_audio_mixer),
  13073. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13075. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13076. msm_routing_put_audio_mixer),
  13077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13080. msm_routing_put_audio_mixer),
  13081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13084. msm_routing_put_audio_mixer),
  13085. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. };
  13102. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13103. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_INT_FM_TX,
  13105. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13106. msm_routing_put_audio_mixer),
  13107. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13110. msm_routing_put_audio_mixer),
  13111. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13114. msm_routing_put_audio_mixer),
  13115. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13118. msm_routing_put_audio_mixer),
  13119. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13125. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13126. msm_routing_put_audio_mixer),
  13127. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13130. msm_routing_put_audio_mixer),
  13131. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13133. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13134. msm_routing_put_audio_mixer),
  13135. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13138. msm_routing_put_audio_mixer),
  13139. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13142. msm_routing_put_audio_mixer),
  13143. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13146. msm_routing_put_audio_mixer),
  13147. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_AUXPCM_TX,
  13149. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13150. msm_routing_put_audio_mixer),
  13151. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13154. msm_routing_put_audio_mixer),
  13155. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13158. msm_routing_put_audio_mixer),
  13159. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13166. msm_routing_put_audio_mixer),
  13167. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13169. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13170. msm_routing_put_audio_mixer),
  13171. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13173. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13174. msm_routing_put_audio_mixer),
  13175. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13177. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13178. msm_routing_put_audio_mixer),
  13179. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13190. msm_routing_put_audio_mixer),
  13191. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13194. msm_routing_put_audio_mixer),
  13195. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13198. msm_routing_put_audio_mixer),
  13199. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13200. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13202. msm_routing_put_audio_mixer),
  13203. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13206. msm_routing_put_audio_mixer),
  13207. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13210. msm_routing_put_audio_mixer),
  13211. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13214. msm_routing_put_audio_mixer),
  13215. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13218. msm_routing_put_audio_mixer),
  13219. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13222. msm_routing_put_audio_mixer),
  13223. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13226. msm_routing_put_audio_mixer),
  13227. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13229. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13230. msm_routing_put_audio_mixer),
  13231. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13234. msm_routing_put_audio_mixer),
  13235. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13238. msm_routing_put_audio_mixer),
  13239. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13242. msm_routing_put_audio_mixer),
  13243. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13246. msm_routing_put_audio_mixer),
  13247. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_USB_TX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. };
  13324. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13325. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_INT_FM_TX,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_AFE_PCM_TX,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13372. msm_routing_put_audio_mixer),
  13373. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13376. msm_routing_put_audio_mixer),
  13377. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13380. msm_routing_put_audio_mixer),
  13381. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13384. msm_routing_put_audio_mixer),
  13385. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13388. msm_routing_put_audio_mixer),
  13389. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13392. msm_routing_put_audio_mixer),
  13393. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13396. msm_routing_put_audio_mixer),
  13397. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13400. msm_routing_put_audio_mixer),
  13401. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13404. msm_routing_put_audio_mixer),
  13405. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13428. msm_routing_put_audio_mixer),
  13429. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13430. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13432. msm_routing_put_audio_mixer),
  13433. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13434. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13436. msm_routing_put_audio_mixer),
  13437. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13440. msm_routing_put_audio_mixer),
  13441. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13443. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13444. msm_routing_put_audio_mixer),
  13445. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13448. msm_routing_put_audio_mixer),
  13449. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13452. msm_routing_put_audio_mixer),
  13453. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13456. msm_routing_put_audio_mixer),
  13457. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13460. msm_routing_put_audio_mixer),
  13461. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13464. msm_routing_put_audio_mixer),
  13465. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13466. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13467. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13468. msm_routing_put_audio_mixer),
  13469. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13470. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13471. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13472. msm_routing_put_audio_mixer),
  13473. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13474. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13476. msm_routing_put_audio_mixer),
  13477. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13479. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13480. msm_routing_put_audio_mixer),
  13481. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_USB_TX,
  13483. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13484. msm_routing_put_audio_mixer),
  13485. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13488. msm_routing_put_audio_mixer),
  13489. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13492. msm_routing_put_audio_mixer),
  13493. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13495. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13496. msm_routing_put_audio_mixer),
  13497. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13500. msm_routing_put_audio_mixer),
  13501. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13504. msm_routing_put_audio_mixer),
  13505. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13507. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13508. msm_routing_put_audio_mixer),
  13509. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13511. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13512. msm_routing_put_audio_mixer),
  13513. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13516. msm_routing_put_audio_mixer),
  13517. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13520. msm_routing_put_audio_mixer),
  13521. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13524. msm_routing_put_audio_mixer),
  13525. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13527. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13528. msm_routing_put_audio_mixer),
  13529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13531. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13532. msm_routing_put_audio_mixer),
  13533. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13535. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13536. msm_routing_put_audio_mixer),
  13537. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13540. msm_routing_put_audio_mixer),
  13541. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13544. msm_routing_put_audio_mixer),
  13545. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13548. msm_routing_put_audio_mixer),
  13549. };
  13550. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13551. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_INT_FM_TX,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_AFE_PCM_TX,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13602. msm_routing_put_audio_mixer),
  13603. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13614. msm_routing_put_audio_mixer),
  13615. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13622. msm_routing_put_audio_mixer),
  13623. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13626. msm_routing_put_audio_mixer),
  13627. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13629. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13630. msm_routing_put_audio_mixer),
  13631. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13633. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13634. msm_routing_put_audio_mixer),
  13635. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13637. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13638. msm_routing_put_audio_mixer),
  13639. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13642. msm_routing_put_audio_mixer),
  13643. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13646. msm_routing_put_audio_mixer),
  13647. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13650. msm_routing_put_audio_mixer),
  13651. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_USB_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_MI2S_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_AUXPCM_TX,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13718. msm_routing_put_audio_mixer),
  13719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13722. msm_routing_get_audio_mixer,
  13723. msm_routing_put_audio_mixer),
  13724. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13726. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13727. msm_routing_get_audio_mixer,
  13728. msm_routing_put_audio_mixer),
  13729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13731. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13732. msm_routing_get_audio_mixer,
  13733. msm_routing_put_audio_mixer),
  13734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13736. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13737. msm_routing_get_audio_mixer,
  13738. msm_routing_put_audio_mixer),
  13739. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13740. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13741. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13742. msm_routing_get_audio_mixer,
  13743. msm_routing_put_audio_mixer),
  13744. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13745. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13747. msm_routing_get_audio_mixer,
  13748. msm_routing_put_audio_mixer),
  13749. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13752. msm_routing_put_audio_mixer),
  13753. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. };
  13766. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13767. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13770. msm_routing_put_audio_mixer),
  13771. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_INT_FM_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_AFE_PCM_TX,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13809. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. };
  13928. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13929. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13932. msm_routing_put_audio_mixer),
  13933. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13936. msm_routing_put_audio_mixer),
  13937. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13940. msm_routing_put_audio_mixer),
  13941. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_INT_FM_TX,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13944. msm_routing_put_audio_mixer),
  13945. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13947. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13948. msm_routing_put_audio_mixer),
  13949. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13950. MSM_BACKEND_DAI_AFE_PCM_TX,
  13951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13952. msm_routing_put_audio_mixer),
  13953. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13955. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13956. msm_routing_put_audio_mixer),
  13957. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13964. msm_routing_put_audio_mixer),
  13965. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13966. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13967. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13968. msm_routing_put_audio_mixer),
  13969. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13972. msm_routing_put_audio_mixer),
  13973. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13976. msm_routing_put_audio_mixer),
  13977. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13979. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13980. msm_routing_put_audio_mixer),
  13981. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13983. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13984. msm_routing_put_audio_mixer),
  13985. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_USB_TX,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_MI2S_TX,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_AUXPCM_TX,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14064. msm_routing_get_audio_mixer,
  14065. msm_routing_put_audio_mixer),
  14066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14068. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14069. msm_routing_get_audio_mixer,
  14070. msm_routing_put_audio_mixer),
  14071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14074. msm_routing_get_audio_mixer,
  14075. msm_routing_put_audio_mixer),
  14076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14078. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14079. msm_routing_get_audio_mixer,
  14080. msm_routing_put_audio_mixer),
  14081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14083. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14084. msm_routing_get_audio_mixer,
  14085. msm_routing_put_audio_mixer),
  14086. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14087. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14088. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14089. msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14105. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14106. msm_routing_put_audio_mixer),
  14107. };
  14108. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14109. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_INT_FM_TX,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_AFE_PCM_TX,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14160. msm_routing_put_audio_mixer),
  14161. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14163. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14164. msm_routing_put_audio_mixer),
  14165. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14172. msm_routing_put_audio_mixer),
  14173. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14175. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14176. msm_routing_put_audio_mixer),
  14177. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14179. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14180. msm_routing_get_audio_mixer,
  14181. msm_routing_put_audio_mixer),
  14182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14184. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14185. msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14190. msm_routing_get_audio_mixer,
  14191. msm_routing_put_audio_mixer),
  14192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14194. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14195. msm_routing_get_audio_mixer,
  14196. msm_routing_put_audio_mixer),
  14197. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14200. msm_routing_get_audio_mixer,
  14201. msm_routing_put_audio_mixer),
  14202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14204. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14205. msm_routing_get_audio_mixer,
  14206. msm_routing_put_audio_mixer),
  14207. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14209. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14210. msm_routing_put_audio_mixer),
  14211. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14212. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14213. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14214. msm_routing_put_audio_mixer),
  14215. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14217. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14218. msm_routing_put_audio_mixer),
  14219. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14220. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14221. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14222. msm_routing_put_audio_mixer),
  14223. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_USB_TX,
  14225. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14226. msm_routing_put_audio_mixer),
  14227. };
  14228. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14229. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_INT_FM_TX,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_AFE_PCM_TX,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14291. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14295. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14296. msm_routing_put_audio_mixer),
  14297. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14299. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14300. msm_routing_put_audio_mixer),
  14301. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14303. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14304. msm_routing_get_audio_mixer,
  14305. msm_routing_put_audio_mixer),
  14306. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14307. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14308. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14309. msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14314. msm_routing_get_audio_mixer,
  14315. msm_routing_put_audio_mixer),
  14316. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14317. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14318. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14319. msm_routing_get_audio_mixer,
  14320. msm_routing_put_audio_mixer),
  14321. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14322. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14323. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14324. msm_routing_get_audio_mixer,
  14325. msm_routing_put_audio_mixer),
  14326. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14327. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14328. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14329. msm_routing_get_audio_mixer,
  14330. msm_routing_put_audio_mixer),
  14331. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14334. msm_routing_put_audio_mixer),
  14335. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14337. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14338. msm_routing_put_audio_mixer),
  14339. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14341. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14342. msm_routing_put_audio_mixer),
  14343. };
  14344. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14345. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14352. msm_routing_put_audio_mixer),
  14353. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14355. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14356. msm_routing_put_audio_mixer),
  14357. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14359. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_INT_FM_TX,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_AFE_PCM_TX,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14374. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14375. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14376. msm_routing_put_audio_mixer),
  14377. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14380. msm_routing_put_audio_mixer),
  14381. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14383. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14384. msm_routing_put_audio_mixer),
  14385. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14387. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14388. msm_routing_put_audio_mixer),
  14389. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14399. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14400. msm_routing_put_audio_mixer),
  14401. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14403. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14404. msm_routing_put_audio_mixer),
  14405. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14407. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14408. msm_routing_put_audio_mixer),
  14409. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14411. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14412. msm_routing_put_audio_mixer),
  14413. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14415. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14420. msm_routing_get_audio_mixer,
  14421. msm_routing_put_audio_mixer),
  14422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14423. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14424. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14425. msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14430. msm_routing_get_audio_mixer,
  14431. msm_routing_put_audio_mixer),
  14432. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14434. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14435. msm_routing_get_audio_mixer,
  14436. msm_routing_put_audio_mixer),
  14437. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14439. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14440. msm_routing_get_audio_mixer,
  14441. msm_routing_put_audio_mixer),
  14442. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14443. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14444. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14445. msm_routing_get_audio_mixer,
  14446. msm_routing_put_audio_mixer),
  14447. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14449. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14450. msm_routing_put_audio_mixer),
  14451. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14452. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14453. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14454. msm_routing_put_audio_mixer),
  14455. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14456. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14457. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14458. msm_routing_put_audio_mixer),
  14459. };
  14460. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14461. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14471. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14496. msm_routing_put_audio_mixer),
  14497. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14519. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14520. msm_routing_put_audio_mixer),
  14521. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14523. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14524. msm_routing_put_audio_mixer),
  14525. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14527. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14528. msm_routing_put_audio_mixer),
  14529. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14531. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14532. msm_routing_put_audio_mixer),
  14533. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14535. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14536. msm_routing_put_audio_mixer),
  14537. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14539. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14540. msm_routing_put_audio_mixer),
  14541. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14543. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14544. msm_routing_put_audio_mixer),
  14545. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14546. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14547. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14548. msm_routing_put_audio_mixer),
  14549. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14551. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14552. msm_routing_put_audio_mixer),
  14553. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14555. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14556. msm_routing_put_audio_mixer),
  14557. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14560. msm_routing_put_audio_mixer),
  14561. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14564. msm_routing_put_audio_mixer),
  14565. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14572. msm_routing_put_audio_mixer),
  14573. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14576. msm_routing_put_audio_mixer),
  14577. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14580. msm_routing_put_audio_mixer),
  14581. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14583. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14584. msm_routing_put_audio_mixer),
  14585. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14586. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14591. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14592. msm_routing_put_audio_mixer),
  14593. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14595. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14596. msm_routing_put_audio_mixer),
  14597. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14600. msm_routing_put_audio_mixer),
  14601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14604. msm_routing_put_audio_mixer),
  14605. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14607. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14608. msm_routing_put_audio_mixer),
  14609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14611. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14612. msm_routing_put_audio_mixer),
  14613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14615. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14616. msm_routing_put_audio_mixer),
  14617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14619. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14620. msm_routing_put_audio_mixer),
  14621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14623. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14624. msm_routing_put_audio_mixer),
  14625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14627. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14628. msm_routing_put_audio_mixer),
  14629. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14632. msm_routing_put_audio_mixer),
  14633. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14635. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14636. msm_routing_put_audio_mixer),
  14637. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14639. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14640. msm_routing_put_audio_mixer),
  14641. };
  14642. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14643. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_AUXPCM_TX,
  14645. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14646. msm_routing_put_audio_mixer),
  14647. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14650. msm_routing_put_audio_mixer),
  14651. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14653. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14654. msm_routing_put_audio_mixer),
  14655. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14657. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14658. msm_routing_put_audio_mixer),
  14659. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14662. msm_routing_put_audio_mixer),
  14663. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14666. msm_routing_put_audio_mixer),
  14667. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14668. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14669. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14670. msm_routing_put_audio_mixer),
  14671. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14672. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14674. msm_routing_put_audio_mixer),
  14675. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14677. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14678. msm_routing_put_audio_mixer),
  14679. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14681. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14682. msm_routing_put_audio_mixer),
  14683. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14685. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14686. msm_routing_put_audio_mixer),
  14687. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14688. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14689. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14690. msm_routing_put_audio_mixer),
  14691. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14693. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14694. msm_routing_put_audio_mixer),
  14695. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14698. msm_routing_put_audio_mixer),
  14699. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14701. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14702. msm_routing_put_audio_mixer),
  14703. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14705. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14706. msm_routing_put_audio_mixer),
  14707. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14709. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14710. msm_routing_put_audio_mixer),
  14711. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14714. msm_routing_put_audio_mixer),
  14715. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14717. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14718. msm_routing_put_audio_mixer),
  14719. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14721. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14722. msm_routing_put_audio_mixer),
  14723. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14725. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14726. msm_routing_put_audio_mixer),
  14727. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14729. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14730. msm_routing_put_audio_mixer),
  14731. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14733. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14734. msm_routing_put_audio_mixer),
  14735. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14737. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14738. msm_routing_put_audio_mixer),
  14739. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14741. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14742. msm_routing_put_audio_mixer),
  14743. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14745. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14746. msm_routing_put_audio_mixer),
  14747. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14749. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14750. msm_routing_put_audio_mixer),
  14751. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14753. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14754. msm_routing_put_audio_mixer),
  14755. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14757. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14758. msm_routing_put_audio_mixer),
  14759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14761. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14762. msm_routing_put_audio_mixer),
  14763. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14764. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14765. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14766. msm_routing_put_audio_mixer),
  14767. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14769. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14770. msm_routing_put_audio_mixer),
  14771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14773. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14774. msm_routing_put_audio_mixer),
  14775. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14777. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14778. msm_routing_put_audio_mixer),
  14779. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14781. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14782. msm_routing_put_audio_mixer),
  14783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14785. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14786. msm_routing_put_audio_mixer),
  14787. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14789. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14790. msm_routing_put_audio_mixer),
  14791. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14793. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14794. msm_routing_put_audio_mixer),
  14795. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14797. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14798. msm_routing_put_audio_mixer),
  14799. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14801. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14802. msm_routing_put_audio_mixer),
  14803. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14805. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14806. msm_routing_put_audio_mixer),
  14807. };
  14808. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14809. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14811. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14812. msm_routing_put_audio_mixer),
  14813. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14815. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14816. msm_routing_put_audio_mixer),
  14817. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14819. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14820. msm_routing_put_audio_mixer),
  14821. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14823. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14824. msm_routing_put_audio_mixer),
  14825. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14827. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14828. msm_routing_put_audio_mixer),
  14829. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14830. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14831. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14832. msm_routing_put_audio_mixer),
  14833. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14834. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14835. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14836. msm_routing_put_audio_mixer),
  14837. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14839. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14840. msm_routing_put_audio_mixer),
  14841. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14843. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14844. msm_routing_put_audio_mixer),
  14845. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14847. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14848. msm_routing_put_audio_mixer),
  14849. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14851. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14852. msm_routing_put_audio_mixer),
  14853. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14855. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14856. msm_routing_put_audio_mixer),
  14857. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14859. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14860. msm_routing_put_audio_mixer),
  14861. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14863. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14864. msm_routing_put_audio_mixer),
  14865. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14867. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14868. msm_routing_put_audio_mixer),
  14869. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14871. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14872. msm_routing_put_audio_mixer),
  14873. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14875. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14876. msm_routing_put_audio_mixer),
  14877. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14879. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14880. msm_routing_put_audio_mixer),
  14881. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14883. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14884. msm_routing_put_audio_mixer),
  14885. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14887. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14888. msm_routing_put_audio_mixer),
  14889. };
  14890. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14891. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14892. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14893. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14894. msm_routing_put_audio_mixer),
  14895. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14897. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14898. msm_routing_put_audio_mixer),
  14899. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14901. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14902. msm_routing_put_audio_mixer),
  14903. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14905. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14906. msm_routing_put_audio_mixer),
  14907. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14909. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14910. msm_routing_put_audio_mixer),
  14911. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14913. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14914. msm_routing_put_audio_mixer),
  14915. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14917. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14918. msm_routing_put_audio_mixer),
  14919. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14921. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14922. msm_routing_put_audio_mixer),
  14923. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14925. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14926. msm_routing_put_audio_mixer),
  14927. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14929. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14930. msm_routing_put_audio_mixer),
  14931. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14933. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14934. msm_routing_put_audio_mixer),
  14935. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14937. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14938. msm_routing_put_audio_mixer),
  14939. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14941. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14942. msm_routing_put_audio_mixer),
  14943. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14945. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14946. msm_routing_put_audio_mixer),
  14947. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14949. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14950. msm_routing_put_audio_mixer),
  14951. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14953. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14954. msm_routing_put_audio_mixer),
  14955. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14957. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14958. msm_routing_put_audio_mixer),
  14959. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14961. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14962. msm_routing_put_audio_mixer),
  14963. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14965. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14966. msm_routing_put_audio_mixer),
  14967. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14969. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14970. msm_routing_put_audio_mixer),
  14971. };
  14972. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  14973. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14975. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14976. msm_routing_put_audio_mixer),
  14977. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14979. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14980. msm_routing_put_audio_mixer),
  14981. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14983. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14984. msm_routing_put_audio_mixer),
  14985. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14987. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14988. msm_routing_put_audio_mixer),
  14989. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14991. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14992. msm_routing_put_audio_mixer),
  14993. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14994. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14995. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14996. msm_routing_put_audio_mixer),
  14997. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14998. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14999. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15000. msm_routing_put_audio_mixer),
  15001. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15002. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15003. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15004. msm_routing_put_audio_mixer),
  15005. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15006. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15007. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15008. msm_routing_put_audio_mixer),
  15009. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15011. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15012. msm_routing_put_audio_mixer),
  15013. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15015. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15016. msm_routing_put_audio_mixer),
  15017. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15019. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15020. msm_routing_put_audio_mixer),
  15021. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15023. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15024. msm_routing_put_audio_mixer),
  15025. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15027. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15028. msm_routing_put_audio_mixer),
  15029. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15031. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15032. msm_routing_put_audio_mixer),
  15033. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15035. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15036. msm_routing_put_audio_mixer),
  15037. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15039. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15040. msm_routing_put_audio_mixer),
  15041. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15043. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15044. msm_routing_put_audio_mixer),
  15045. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15046. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15047. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15048. msm_routing_put_audio_mixer),
  15049. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15051. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15052. msm_routing_put_audio_mixer),
  15053. };
  15054. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15055. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15057. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15058. msm_routing_put_audio_mixer),
  15059. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15061. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15062. msm_routing_put_audio_mixer),
  15063. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15065. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15066. msm_routing_put_audio_mixer),
  15067. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15069. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15070. msm_routing_put_audio_mixer),
  15071. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15073. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15074. msm_routing_put_audio_mixer),
  15075. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15077. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15078. msm_routing_put_audio_mixer),
  15079. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15081. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15082. msm_routing_put_audio_mixer),
  15083. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15085. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15086. msm_routing_put_audio_mixer),
  15087. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15089. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15090. msm_routing_put_audio_mixer),
  15091. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15093. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15094. msm_routing_put_audio_mixer),
  15095. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15097. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15098. msm_routing_put_audio_mixer),
  15099. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15101. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15102. msm_routing_put_audio_mixer),
  15103. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15105. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15106. msm_routing_put_audio_mixer),
  15107. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15109. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15110. msm_routing_put_audio_mixer),
  15111. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15113. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15114. msm_routing_put_audio_mixer),
  15115. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15117. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15118. msm_routing_put_audio_mixer),
  15119. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15121. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15122. msm_routing_put_audio_mixer),
  15123. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15125. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15126. msm_routing_put_audio_mixer),
  15127. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15129. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15130. msm_routing_put_audio_mixer),
  15131. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15133. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15134. msm_routing_put_audio_mixer),
  15135. };
  15136. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15137. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15139. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15140. msm_routing_put_audio_mixer),
  15141. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15143. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15144. msm_routing_put_audio_mixer),
  15145. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15147. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15148. msm_routing_put_audio_mixer),
  15149. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15151. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15152. msm_routing_put_audio_mixer),
  15153. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15155. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15156. msm_routing_put_audio_mixer),
  15157. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15158. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15159. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15160. msm_routing_put_audio_mixer),
  15161. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15162. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15163. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15164. msm_routing_put_audio_mixer),
  15165. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15166. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15167. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15168. msm_routing_put_audio_mixer),
  15169. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15170. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15171. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15172. msm_routing_put_audio_mixer),
  15173. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15175. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15176. msm_routing_put_audio_mixer),
  15177. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15179. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15180. msm_routing_put_audio_mixer),
  15181. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15183. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15184. msm_routing_put_audio_mixer),
  15185. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15187. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15188. msm_routing_put_audio_mixer),
  15189. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15191. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15192. msm_routing_put_audio_mixer),
  15193. };
  15194. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15195. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15197. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15198. msm_routing_put_audio_mixer),
  15199. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15201. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15202. msm_routing_put_audio_mixer),
  15203. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15205. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15206. msm_routing_put_audio_mixer),
  15207. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15209. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15210. msm_routing_put_audio_mixer),
  15211. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_INT_FM_TX,
  15213. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15214. msm_routing_put_audio_mixer),
  15215. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15217. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15218. msm_routing_put_audio_mixer),
  15219. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_AFE_PCM_TX,
  15221. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15222. msm_routing_put_audio_mixer),
  15223. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15225. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15226. msm_routing_put_audio_mixer),
  15227. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15229. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15230. msm_routing_put_audio_mixer),
  15231. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15233. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15234. msm_routing_put_audio_mixer),
  15235. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15237. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15238. msm_routing_put_audio_mixer),
  15239. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15240. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15241. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15242. msm_routing_put_audio_mixer),
  15243. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15244. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15245. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15246. msm_routing_put_audio_mixer),
  15247. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15249. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15250. msm_routing_put_audio_mixer),
  15251. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15253. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15254. msm_routing_put_audio_mixer),
  15255. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15257. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15258. msm_routing_put_audio_mixer),
  15259. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15261. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15262. msm_routing_put_audio_mixer),
  15263. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15265. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15266. msm_routing_put_audio_mixer),
  15267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15269. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15270. msm_routing_get_audio_mixer,
  15271. msm_routing_put_audio_mixer),
  15272. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15273. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15274. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15275. msm_routing_get_audio_mixer,
  15276. msm_routing_put_audio_mixer),
  15277. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15279. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15280. msm_routing_get_audio_mixer,
  15281. msm_routing_put_audio_mixer),
  15282. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15283. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15284. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15285. msm_routing_get_audio_mixer,
  15286. msm_routing_put_audio_mixer),
  15287. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15288. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15289. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15290. msm_routing_get_audio_mixer,
  15291. msm_routing_put_audio_mixer),
  15292. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15294. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15295. msm_routing_get_audio_mixer,
  15296. msm_routing_put_audio_mixer),
  15297. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15299. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15300. msm_routing_put_audio_mixer),
  15301. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15303. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15304. msm_routing_put_audio_mixer),
  15305. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15307. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15308. msm_routing_put_audio_mixer),
  15309. };
  15310. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15311. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15313. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15314. msm_routing_put_audio_mixer),
  15315. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15317. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15318. msm_routing_put_audio_mixer),
  15319. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15321. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15322. msm_routing_put_audio_mixer),
  15323. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15325. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15326. msm_routing_put_audio_mixer),
  15327. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_INT_FM_TX,
  15329. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15330. msm_routing_put_audio_mixer),
  15331. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15333. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15334. msm_routing_put_audio_mixer),
  15335. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_AFE_PCM_TX,
  15337. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15338. msm_routing_put_audio_mixer),
  15339. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15341. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15342. msm_routing_put_audio_mixer),
  15343. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15345. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15346. msm_routing_put_audio_mixer),
  15347. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15349. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15350. msm_routing_put_audio_mixer),
  15351. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15353. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15354. msm_routing_put_audio_mixer),
  15355. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15357. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15358. msm_routing_put_audio_mixer),
  15359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15361. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15362. msm_routing_put_audio_mixer),
  15363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15365. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15366. msm_routing_put_audio_mixer),
  15367. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15369. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15370. msm_routing_put_audio_mixer),
  15371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15373. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15374. msm_routing_put_audio_mixer),
  15375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15377. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15378. msm_routing_put_audio_mixer),
  15379. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15381. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15382. msm_routing_put_audio_mixer),
  15383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15385. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15386. msm_routing_get_audio_mixer,
  15387. msm_routing_put_audio_mixer),
  15388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15390. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15391. msm_routing_get_audio_mixer,
  15392. msm_routing_put_audio_mixer),
  15393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15395. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15396. msm_routing_get_audio_mixer,
  15397. msm_routing_put_audio_mixer),
  15398. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15400. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15401. msm_routing_get_audio_mixer,
  15402. msm_routing_put_audio_mixer),
  15403. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15405. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15406. msm_routing_get_audio_mixer,
  15407. msm_routing_put_audio_mixer),
  15408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15410. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15411. msm_routing_get_audio_mixer,
  15412. msm_routing_put_audio_mixer),
  15413. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15415. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15416. msm_routing_put_audio_mixer),
  15417. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15419. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15420. msm_routing_put_audio_mixer),
  15421. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15423. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15424. msm_routing_put_audio_mixer),
  15425. };
  15426. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15427. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15429. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15430. msm_routing_put_audio_mixer),
  15431. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15432. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15433. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15434. msm_routing_put_audio_mixer),
  15435. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15436. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15437. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15438. msm_routing_put_audio_mixer),
  15439. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15441. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15442. msm_routing_put_audio_mixer),
  15443. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15444. MSM_BACKEND_DAI_INT_FM_TX,
  15445. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15446. msm_routing_put_audio_mixer),
  15447. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15448. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15449. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15450. msm_routing_put_audio_mixer),
  15451. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15452. MSM_BACKEND_DAI_AFE_PCM_TX,
  15453. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15454. msm_routing_put_audio_mixer),
  15455. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15457. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15458. msm_routing_put_audio_mixer),
  15459. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15461. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15462. msm_routing_put_audio_mixer),
  15463. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15465. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15466. msm_routing_put_audio_mixer),
  15467. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15469. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15470. msm_routing_put_audio_mixer),
  15471. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15473. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15474. msm_routing_put_audio_mixer),
  15475. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15477. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15478. msm_routing_put_audio_mixer),
  15479. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15481. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15482. msm_routing_put_audio_mixer),
  15483. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15484. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15485. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15486. msm_routing_put_audio_mixer),
  15487. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15488. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15489. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15490. msm_routing_put_audio_mixer),
  15491. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15492. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15493. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15494. msm_routing_put_audio_mixer),
  15495. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15497. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15498. msm_routing_get_audio_mixer,
  15499. msm_routing_put_audio_mixer),
  15500. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15501. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15502. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15503. msm_routing_get_audio_mixer,
  15504. msm_routing_put_audio_mixer),
  15505. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15506. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15507. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15508. msm_routing_get_audio_mixer,
  15509. msm_routing_put_audio_mixer),
  15510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15512. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15513. msm_routing_get_audio_mixer,
  15514. msm_routing_put_audio_mixer),
  15515. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15517. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15518. msm_routing_get_audio_mixer,
  15519. msm_routing_put_audio_mixer),
  15520. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15522. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15523. msm_routing_get_audio_mixer,
  15524. msm_routing_put_audio_mixer),
  15525. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15527. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15528. msm_routing_put_audio_mixer),
  15529. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15531. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15532. msm_routing_put_audio_mixer),
  15533. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15534. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15535. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15536. msm_routing_put_audio_mixer),
  15537. };
  15538. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15539. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15540. MSM_BACKEND_DAI_PRI_I2S_RX,
  15541. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15542. msm_routing_put_voice_mixer),
  15543. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15544. MSM_BACKEND_DAI_PRI_I2S_RX,
  15545. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15546. msm_routing_put_voice_mixer),
  15547. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_PRI_I2S_RX,
  15549. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15550. msm_routing_put_voice_mixer),
  15551. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_PRI_I2S_RX,
  15553. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15554. msm_routing_put_voice_mixer),
  15555. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_PRI_I2S_RX,
  15557. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15558. msm_routing_put_voice_mixer),
  15559. };
  15560. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15561. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_SEC_I2S_RX,
  15563. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15564. msm_routing_put_voice_mixer),
  15565. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15566. MSM_BACKEND_DAI_SEC_I2S_RX,
  15567. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15568. msm_routing_put_voice_mixer),
  15569. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15570. MSM_BACKEND_DAI_SEC_I2S_RX,
  15571. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15572. msm_routing_put_voice_mixer),
  15573. };
  15574. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15575. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15576. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15577. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15578. msm_routing_put_voice_mixer),
  15579. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15580. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15581. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15582. msm_routing_put_voice_mixer),
  15583. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15585. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15586. msm_routing_put_voice_mixer),
  15587. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15589. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15590. msm_routing_put_voice_mixer),
  15591. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15594. msm_routing_put_voice_mixer),
  15595. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15597. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15598. msm_routing_put_voice_mixer),
  15599. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15601. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15602. msm_routing_put_voice_mixer),
  15603. };
  15604. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15605. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15606. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15607. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15608. msm_routing_put_voice_mixer),
  15609. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15610. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15611. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15612. msm_routing_put_voice_mixer),
  15613. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15614. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15615. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15616. msm_routing_put_voice_mixer),
  15617. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15619. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15620. msm_routing_put_voice_mixer),
  15621. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15623. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15624. msm_routing_put_voice_mixer),
  15625. };
  15626. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15627. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15628. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15629. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15630. msm_routing_put_voice_mixer),
  15631. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15632. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15633. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15634. msm_routing_put_voice_mixer),
  15635. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15636. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15637. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15638. msm_routing_put_voice_mixer),
  15639. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15640. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15641. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15642. msm_routing_put_voice_mixer),
  15643. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15645. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15646. msm_routing_put_voice_mixer),
  15647. };
  15648. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15649. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_USB_RX,
  15651. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15652. msm_routing_put_voice_mixer),
  15653. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15654. MSM_BACKEND_DAI_USB_RX,
  15655. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15656. msm_routing_put_voice_mixer),
  15657. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15658. MSM_BACKEND_DAI_USB_RX,
  15659. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15660. msm_routing_put_voice_mixer),
  15661. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_USB_RX,
  15663. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15664. msm_routing_put_voice_mixer),
  15665. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15666. MSM_BACKEND_DAI_USB_RX,
  15667. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15668. msm_routing_put_voice_mixer),
  15669. };
  15670. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15671. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15673. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15674. msm_routing_put_voice_mixer),
  15675. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15677. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15678. msm_routing_put_voice_mixer),
  15679. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15681. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15682. msm_routing_put_voice_mixer),
  15683. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15685. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15686. msm_routing_put_voice_mixer),
  15687. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15689. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15690. msm_routing_put_voice_mixer),
  15691. };
  15692. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15693. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15695. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15696. msm_routing_put_voice_mixer),
  15697. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15698. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15699. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15700. msm_routing_put_voice_mixer),
  15701. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15703. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15704. msm_routing_put_voice_mixer),
  15705. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15707. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15708. msm_routing_put_voice_mixer),
  15709. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15710. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15711. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15712. msm_routing_put_voice_mixer),
  15713. };
  15714. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15715. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15717. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15718. msm_routing_put_voice_mixer),
  15719. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15721. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15722. msm_routing_put_voice_mixer),
  15723. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15725. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15726. msm_routing_put_voice_mixer),
  15727. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15729. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15730. msm_routing_put_voice_mixer),
  15731. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15733. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15734. msm_routing_put_voice_mixer),
  15735. };
  15736. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15737. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15738. MSM_BACKEND_DAI_MI2S_RX,
  15739. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15740. msm_routing_put_voice_mixer),
  15741. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_MI2S_RX,
  15743. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15744. msm_routing_put_voice_mixer),
  15745. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15746. MSM_BACKEND_DAI_MI2S_RX,
  15747. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15748. msm_routing_put_voice_mixer),
  15749. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15750. MSM_BACKEND_DAI_MI2S_RX,
  15751. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15752. msm_routing_put_voice_mixer),
  15753. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15754. MSM_BACKEND_DAI_MI2S_RX,
  15755. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15756. msm_routing_put_voice_mixer),
  15757. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15758. MSM_BACKEND_DAI_MI2S_RX,
  15759. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15760. msm_routing_put_voice_mixer),
  15761. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15762. MSM_BACKEND_DAI_MI2S_RX,
  15763. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15764. msm_routing_put_voice_mixer),
  15765. };
  15766. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15767. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15769. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15770. msm_routing_put_voice_mixer),
  15771. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15773. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15774. msm_routing_put_voice_mixer),
  15775. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15776. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15777. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15778. msm_routing_put_voice_mixer),
  15779. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15780. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15781. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15782. msm_routing_put_voice_mixer),
  15783. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15785. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15786. msm_routing_put_voice_mixer),
  15787. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15788. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15789. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15790. msm_routing_put_voice_mixer),
  15791. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15792. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15793. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15794. msm_routing_put_voice_mixer),
  15795. };
  15796. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15797. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15799. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15800. msm_routing_put_voice_mixer),
  15801. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15803. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15804. msm_routing_put_voice_mixer),
  15805. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15806. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15807. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15808. msm_routing_put_voice_mixer),
  15809. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15810. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15811. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15812. msm_routing_put_voice_mixer),
  15813. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15814. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15815. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15816. msm_routing_put_voice_mixer),
  15817. };
  15818. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15819. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15821. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15822. msm_routing_put_voice_mixer),
  15823. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15825. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15826. msm_routing_put_voice_mixer),
  15827. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15829. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15830. msm_routing_put_voice_mixer),
  15831. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15832. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15833. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15834. msm_routing_put_voice_mixer),
  15835. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15836. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15837. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15838. msm_routing_put_voice_mixer),
  15839. };
  15840. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15841. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15843. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15844. msm_routing_put_voice_mixer),
  15845. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15847. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15848. msm_routing_put_voice_mixer),
  15849. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15850. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15851. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15852. msm_routing_put_voice_mixer),
  15853. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15855. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15856. msm_routing_put_voice_mixer),
  15857. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15858. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15859. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15860. msm_routing_put_voice_mixer),
  15861. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15862. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15863. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15864. msm_routing_put_voice_mixer),
  15865. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15866. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15867. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15868. msm_routing_put_voice_mixer),
  15869. };
  15870. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15871. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15873. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15874. msm_routing_put_voice_mixer),
  15875. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15876. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15877. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15878. msm_routing_put_voice_mixer),
  15879. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15881. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15882. msm_routing_put_voice_mixer),
  15883. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15884. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15885. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15886. msm_routing_put_voice_mixer),
  15887. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15889. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15890. msm_routing_put_voice_mixer),
  15891. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15892. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15893. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15894. msm_routing_put_voice_mixer),
  15895. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15896. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15897. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15898. msm_routing_put_voice_mixer),
  15899. };
  15900. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15901. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15902. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15903. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15904. msm_routing_put_voice_mixer),
  15905. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15906. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15907. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15908. msm_routing_put_voice_stub_mixer),
  15909. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15910. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15911. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15912. msm_routing_put_voice_stub_mixer),
  15913. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15914. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15915. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15916. msm_routing_put_voice_mixer),
  15917. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15918. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15919. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15920. msm_routing_put_voice_mixer),
  15921. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15922. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15923. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15924. msm_routing_put_voice_mixer),
  15925. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15927. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15928. msm_routing_put_voice_mixer),
  15929. };
  15930. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15931. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15932. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15933. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15934. msm_routing_put_voice_mixer),
  15935. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15936. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15937. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15938. msm_routing_put_voice_mixer),
  15939. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15941. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15942. msm_routing_put_voice_mixer),
  15943. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15945. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15946. msm_routing_put_voice_mixer),
  15947. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15949. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15950. msm_routing_put_voice_mixer),
  15951. };
  15952. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15953. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_AFE_PCM_RX,
  15955. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15956. msm_routing_put_voice_mixer),
  15957. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_AFE_PCM_RX,
  15959. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15960. msm_routing_put_voice_mixer),
  15961. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_AFE_PCM_RX,
  15963. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15964. msm_routing_put_voice_mixer),
  15965. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_AFE_PCM_RX,
  15967. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15968. msm_routing_put_voice_mixer),
  15969. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_AFE_PCM_RX,
  15971. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15972. msm_routing_put_voice_mixer),
  15973. };
  15974. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15975. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15976. MSM_BACKEND_DAI_AUXPCM_RX,
  15977. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15978. msm_routing_put_voice_mixer),
  15979. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15980. MSM_BACKEND_DAI_AUXPCM_RX,
  15981. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15982. msm_routing_put_voice_mixer),
  15983. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_AUXPCM_RX,
  15985. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15986. msm_routing_put_voice_mixer),
  15987. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_AUXPCM_RX,
  15989. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15990. msm_routing_put_voice_mixer),
  15991. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_AUXPCM_RX,
  15993. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15994. msm_routing_put_voice_mixer),
  15995. };
  15996. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15997. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15998. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15999. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16000. msm_routing_put_voice_mixer),
  16001. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16002. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16003. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16004. msm_routing_put_voice_mixer),
  16005. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16007. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16008. msm_routing_put_voice_mixer),
  16009. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16010. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16011. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16012. msm_routing_put_voice_mixer),
  16013. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16015. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16016. msm_routing_put_voice_mixer),
  16017. };
  16018. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16019. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16020. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16021. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16022. msm_routing_put_voice_mixer),
  16023. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16024. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16025. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16026. msm_routing_put_voice_mixer),
  16027. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16028. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16029. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16030. msm_routing_put_voice_mixer),
  16031. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16032. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16033. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16034. msm_routing_put_voice_mixer),
  16035. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16037. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16038. msm_routing_put_voice_mixer),
  16039. };
  16040. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16041. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16042. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16043. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16044. msm_routing_put_voice_mixer),
  16045. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16046. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16047. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16048. msm_routing_put_voice_mixer),
  16049. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16050. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16051. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16052. msm_routing_put_voice_mixer),
  16053. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16055. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16056. msm_routing_put_voice_mixer),
  16057. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16058. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16059. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16060. msm_routing_put_voice_mixer),
  16061. };
  16062. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16063. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16065. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16066. msm_routing_put_voice_mixer),
  16067. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16068. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16069. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16070. msm_routing_put_voice_mixer),
  16071. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16072. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16073. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16074. msm_routing_put_voice_mixer),
  16075. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16077. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16078. msm_routing_put_voice_mixer),
  16079. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16080. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16081. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16082. msm_routing_put_voice_mixer),
  16083. };
  16084. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16085. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16087. msm_routing_put_voice_mixer),
  16088. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16089. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16090. msm_routing_put_voice_mixer),
  16091. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16092. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16093. msm_routing_put_voice_mixer),
  16094. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16096. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16097. msm_routing_put_voice_mixer),
  16098. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16100. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16101. msm_routing_put_voice_mixer),
  16102. };
  16103. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16104. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_HDMI_RX,
  16106. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16107. msm_routing_put_voice_mixer),
  16108. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_HDMI_RX,
  16110. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16111. msm_routing_put_voice_mixer),
  16112. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_HDMI_RX,
  16114. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16115. msm_routing_put_voice_mixer),
  16116. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_HDMI_RX,
  16118. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16119. msm_routing_put_voice_mixer),
  16120. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_HDMI_RX,
  16122. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16123. msm_routing_put_voice_mixer),
  16124. };
  16125. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16126. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16127. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16128. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16129. msm_routing_put_voice_mixer),
  16130. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16131. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16132. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16133. msm_routing_put_voice_mixer),
  16134. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16136. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16137. msm_routing_put_voice_mixer),
  16138. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16139. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16140. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16141. msm_routing_put_voice_mixer),
  16142. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16143. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16144. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16145. msm_routing_put_voice_mixer),
  16146. };
  16147. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16148. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16149. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16150. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16151. msm_routing_put_voice_mixer),
  16152. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16153. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16154. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16155. msm_routing_put_voice_mixer),
  16156. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16157. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16158. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16159. msm_routing_put_voice_mixer),
  16160. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16161. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16162. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16163. msm_routing_put_voice_mixer),
  16164. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16166. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16167. msm_routing_put_voice_mixer),
  16168. };
  16169. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16170. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16172. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16173. msm_routing_put_voice_mixer),
  16174. };
  16175. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16176. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16178. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16179. msm_routing_put_voice_mixer),
  16180. };
  16181. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16182. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16184. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16185. msm_routing_put_voice_mixer),
  16186. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16188. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16189. msm_routing_put_voice_mixer),
  16190. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16192. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16193. msm_routing_put_voice_mixer),
  16194. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16196. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16197. msm_routing_put_voice_mixer),
  16198. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16200. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16201. msm_routing_put_voice_mixer),
  16202. };
  16203. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16204. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16206. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16207. msm_routing_put_voice_mixer),
  16208. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16209. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16210. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16211. msm_routing_put_voice_mixer),
  16212. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16214. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16215. msm_routing_put_voice_mixer),
  16216. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16218. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16219. msm_routing_put_voice_mixer),
  16220. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16221. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16222. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16223. msm_routing_put_voice_mixer),
  16224. };
  16225. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16226. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16228. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16229. msm_routing_put_voice_mixer),
  16230. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16232. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16233. msm_routing_put_voice_mixer),
  16234. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16236. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16237. msm_routing_put_voice_mixer),
  16238. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16240. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16241. msm_routing_put_voice_mixer),
  16242. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16244. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16245. msm_routing_put_voice_mixer),
  16246. };
  16247. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16248. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16250. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16254. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16258. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16259. msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16262. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16266. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. };
  16269. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16270. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16271. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16272. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16273. msm_routing_put_voice_mixer),
  16274. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16276. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16277. msm_routing_put_voice_mixer),
  16278. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16279. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16280. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16281. msm_routing_put_voice_mixer),
  16282. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16284. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16285. msm_routing_put_voice_mixer),
  16286. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16288. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16289. msm_routing_put_voice_mixer),
  16290. };
  16291. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16292. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16294. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16298. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16299. msm_routing_put_voice_mixer),
  16300. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16302. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16306. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16307. msm_routing_put_voice_mixer),
  16308. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16309. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16310. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16311. msm_routing_put_voice_mixer),
  16312. };
  16313. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16314. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16316. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16317. msm_routing_put_voice_mixer),
  16318. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16320. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16321. msm_routing_put_voice_mixer),
  16322. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16324. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16325. msm_routing_put_voice_mixer),
  16326. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16328. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16329. msm_routing_put_voice_mixer),
  16330. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16331. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16332. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16333. msm_routing_put_voice_mixer),
  16334. };
  16335. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16336. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16338. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16339. msm_routing_put_voice_mixer),
  16340. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16342. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16343. msm_routing_put_voice_mixer),
  16344. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16346. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16347. msm_routing_put_voice_mixer),
  16348. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16350. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16351. msm_routing_put_voice_mixer),
  16352. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16353. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16354. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16355. msm_routing_put_voice_mixer),
  16356. };
  16357. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16358. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16360. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16361. msm_routing_put_voice_mixer),
  16362. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16364. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16365. msm_routing_put_voice_mixer),
  16366. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16368. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16369. msm_routing_put_voice_mixer),
  16370. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16372. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16373. msm_routing_put_voice_mixer),
  16374. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16375. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16376. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16377. msm_routing_put_voice_mixer),
  16378. };
  16379. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16380. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16382. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16383. msm_routing_put_voice_mixer),
  16384. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16386. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16387. msm_routing_put_voice_mixer),
  16388. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16390. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16391. msm_routing_put_voice_mixer),
  16392. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16393. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16394. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16395. msm_routing_put_voice_mixer),
  16396. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16398. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16399. msm_routing_put_voice_mixer),
  16400. };
  16401. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16402. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16403. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16404. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16405. msm_routing_put_voice_mixer),
  16406. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16407. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16408. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16409. msm_routing_put_voice_stub_mixer),
  16410. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16412. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16413. msm_routing_put_voice_stub_mixer),
  16414. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16415. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16416. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16417. msm_routing_put_voice_mixer),
  16418. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16420. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16421. msm_routing_put_voice_mixer),
  16422. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16423. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16424. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16425. msm_routing_put_voice_mixer),
  16426. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16427. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16428. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16429. msm_routing_put_voice_mixer),
  16430. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16431. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16432. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16433. msm_routing_put_voice_mixer),
  16434. };
  16435. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16436. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16437. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16438. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16439. msm_routing_put_voice_mixer),
  16440. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16441. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16442. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16443. msm_routing_put_voice_stub_mixer),
  16444. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16446. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16447. msm_routing_put_voice_stub_mixer),
  16448. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16450. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16451. msm_routing_put_voice_mixer),
  16452. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16454. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16455. msm_routing_put_voice_mixer),
  16456. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16457. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16458. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16459. msm_routing_put_voice_mixer),
  16460. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16461. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16462. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16463. msm_routing_put_voice_mixer),
  16464. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16465. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16466. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16467. msm_routing_put_voice_mixer),
  16468. };
  16469. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16470. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16472. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16473. msm_routing_put_voice_mixer),
  16474. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16475. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16476. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16477. msm_routing_put_voice_stub_mixer),
  16478. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16479. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16480. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16481. msm_routing_put_voice_stub_mixer),
  16482. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16483. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16484. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16485. msm_routing_put_voice_mixer),
  16486. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16487. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16488. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16489. msm_routing_put_voice_mixer),
  16490. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16492. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16493. msm_routing_put_voice_mixer),
  16494. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16496. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16497. msm_routing_put_voice_mixer),
  16498. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16500. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16501. msm_routing_put_voice_mixer),
  16502. };
  16503. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16504. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16505. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16506. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16507. msm_routing_put_voice_mixer),
  16508. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16509. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16510. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16511. msm_routing_put_voice_stub_mixer),
  16512. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16513. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16514. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16515. msm_routing_put_voice_stub_mixer),
  16516. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16517. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16518. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16519. msm_routing_put_voice_mixer),
  16520. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16522. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16523. msm_routing_put_voice_mixer),
  16524. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16525. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16526. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16527. msm_routing_put_voice_mixer),
  16528. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16529. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16530. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16531. msm_routing_put_voice_mixer),
  16532. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16534. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16535. msm_routing_put_voice_mixer),
  16536. };
  16537. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16538. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16539. MSM_BACKEND_DAI_EXTPROC_RX,
  16540. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16541. msm_routing_put_voice_mixer),
  16542. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16543. MSM_BACKEND_DAI_EXTPROC_RX,
  16544. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16545. msm_routing_put_voice_mixer),
  16546. };
  16547. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16548. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16549. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16550. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16551. msm_routing_put_voice_mixer),
  16552. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16553. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16554. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16555. msm_routing_put_voice_mixer),
  16556. };
  16557. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16558. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16559. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16560. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16561. msm_routing_put_voice_mixer),
  16562. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16563. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16565. msm_routing_put_voice_mixer),
  16566. };
  16567. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  16568. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16569. MSM_BACKEND_DAI_PROXY_RX,
  16570. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16571. msm_routing_put_voice_mixer),
  16572. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_PROXY_RX,
  16574. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16575. msm_routing_put_voice_mixer),
  16576. };
  16577. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16578. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16579. MSM_BACKEND_DAI_PRI_I2S_TX,
  16580. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16581. msm_routing_put_voice_mixer),
  16582. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16583. MSM_BACKEND_DAI_MI2S_TX,
  16584. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16585. msm_routing_put_voice_mixer),
  16586. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16588. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16589. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16591. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16592. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16593. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16594. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16595. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16597. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16598. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16599. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16600. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16601. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16603. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16604. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16606. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16607. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16609. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16610. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16611. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16612. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16613. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16615. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16616. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16617. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16618. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16619. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16621. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16622. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16623. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16624. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16625. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16627. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16628. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16629. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16630. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16631. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16632. MSM_BACKEND_DAI_USB_TX,
  16633. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16634. msm_routing_put_voice_mixer),
  16635. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16637. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16638. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16639. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16640. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16641. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16642. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16643. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16644. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16646. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16649. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16652. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16655. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16658. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16661. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16662. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16663. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16664. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16665. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16666. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16667. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16668. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16670. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16671. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16673. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16674. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16676. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16677. };
  16678. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16679. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16680. MSM_BACKEND_DAI_PRI_I2S_TX,
  16681. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16682. msm_routing_put_voice_mixer),
  16683. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16684. MSM_BACKEND_DAI_MI2S_TX,
  16685. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16686. msm_routing_put_voice_mixer),
  16687. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16688. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16689. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16690. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16691. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16692. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16693. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16694. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16695. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16696. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16697. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16698. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16699. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16701. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16702. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16703. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16704. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16705. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16707. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16708. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16709. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16710. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16711. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16713. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16714. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16716. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16717. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16719. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16720. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16721. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16722. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16723. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16724. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16725. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16726. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16727. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16728. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16729. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16731. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16732. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16733. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16734. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16735. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16737. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16738. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16739. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16740. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16741. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16742. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16743. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16744. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16745. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16746. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16747. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16749. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16750. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16751. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16752. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16753. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16754. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16755. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16756. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16757. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16758. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16759. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16761. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16762. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16763. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16764. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16765. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16766. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16767. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16768. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16769. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16770. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16771. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16773. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16774. };
  16775. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16776. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_PRI_I2S_TX,
  16778. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16779. msm_routing_put_voice_mixer),
  16780. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16781. MSM_BACKEND_DAI_MI2S_TX,
  16782. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16783. msm_routing_put_voice_mixer),
  16784. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16786. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16787. msm_routing_put_voice_mixer),
  16788. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16789. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16790. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16791. msm_routing_put_voice_mixer),
  16792. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16793. MSM_BACKEND_DAI_AFE_PCM_TX,
  16794. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16795. msm_routing_put_voice_mixer),
  16796. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16797. MSM_BACKEND_DAI_AUXPCM_TX,
  16798. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16799. msm_routing_put_voice_mixer),
  16800. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16801. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16802. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16803. msm_routing_put_voice_mixer),
  16804. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16805. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16806. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16807. msm_routing_put_voice_mixer),
  16808. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16809. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16810. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16811. msm_routing_put_voice_mixer),
  16812. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16813. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16814. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16815. msm_routing_put_voice_mixer),
  16816. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16818. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16819. msm_routing_put_voice_mixer),
  16820. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16821. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16822. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16823. msm_routing_put_voice_mixer),
  16824. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16825. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16826. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16827. msm_routing_put_voice_mixer),
  16828. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16829. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16830. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16831. msm_routing_put_voice_mixer),
  16832. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16833. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16834. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16835. msm_routing_put_voice_mixer),
  16836. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16838. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16839. msm_routing_put_voice_mixer),
  16840. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16841. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16842. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16843. msm_routing_put_voice_mixer),
  16844. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16845. MSM_BACKEND_DAI_USB_TX,
  16846. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16847. msm_routing_put_voice_mixer),
  16848. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16849. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16850. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16851. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16853. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16854. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16855. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16856. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16857. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16859. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16860. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16861. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16862. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16863. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16865. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16866. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16868. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16869. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16871. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16872. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16873. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16874. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16875. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16877. msm_routing_put_voice_mixer),
  16878. };
  16879. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16880. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16881. MSM_BACKEND_DAI_EXTPROC_TX,
  16882. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16883. msm_routing_put_voice_stub_mixer),
  16884. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16885. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16886. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16887. msm_routing_put_voice_stub_mixer),
  16888. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16889. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16890. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16891. msm_routing_put_voice_stub_mixer),
  16892. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16893. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16894. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16895. msm_routing_put_voice_stub_mixer),
  16896. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16897. MSM_BACKEND_DAI_MI2S_TX,
  16898. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16899. msm_routing_put_voice_stub_mixer),
  16900. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16901. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16902. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16903. msm_routing_put_voice_stub_mixer),
  16904. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16905. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16906. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16907. msm_routing_put_voice_stub_mixer),
  16908. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16909. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16910. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16911. msm_routing_put_voice_stub_mixer),
  16912. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16913. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16914. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16915. msm_routing_put_voice_stub_mixer),
  16916. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16917. MSM_BACKEND_DAI_AUXPCM_TX,
  16918. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16919. msm_routing_put_voice_stub_mixer),
  16920. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16921. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16922. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16923. msm_routing_put_voice_stub_mixer),
  16924. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16925. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16926. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16927. msm_routing_put_voice_stub_mixer),
  16928. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16929. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16930. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16931. msm_routing_put_voice_stub_mixer),
  16932. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16933. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16934. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16935. msm_routing_put_voice_stub_mixer),
  16936. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16937. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16938. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16939. msm_routing_put_voice_stub_mixer),
  16940. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16941. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16942. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16943. msm_routing_put_voice_stub_mixer),
  16944. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16945. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16946. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16947. msm_routing_put_voice_stub_mixer),
  16948. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16949. MSM_BACKEND_DAI_AFE_PCM_TX,
  16950. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16951. msm_routing_put_voice_stub_mixer),
  16952. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16953. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16954. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16955. msm_routing_put_voice_stub_mixer),
  16956. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16957. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16958. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16959. msm_routing_put_voice_stub_mixer),
  16960. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16961. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16962. 1, 0, msm_routing_get_voice_stub_mixer,
  16963. msm_routing_put_voice_stub_mixer),
  16964. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16965. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16966. 1, 0, msm_routing_get_voice_stub_mixer,
  16967. msm_routing_put_voice_stub_mixer),
  16968. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16970. 1, 0, msm_routing_get_voice_stub_mixer,
  16971. msm_routing_put_voice_stub_mixer),
  16972. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16973. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16974. 1, 0, msm_routing_get_voice_stub_mixer,
  16975. msm_routing_put_voice_stub_mixer),
  16976. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16977. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16978. 1, 0, msm_routing_get_voice_stub_mixer,
  16979. msm_routing_put_voice_stub_mixer),
  16980. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16981. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16982. 1, 0, msm_routing_get_voice_stub_mixer,
  16983. msm_routing_put_voice_stub_mixer),
  16984. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16985. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16986. 1, 0, msm_routing_get_voice_stub_mixer,
  16987. msm_routing_put_voice_stub_mixer),
  16988. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16990. 1, 0, msm_routing_get_voice_stub_mixer,
  16991. msm_routing_put_voice_stub_mixer),
  16992. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16993. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16994. 1, 0, msm_routing_get_voice_stub_mixer,
  16995. msm_routing_put_voice_stub_mixer),
  16996. };
  16997. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16998. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16999. MSM_BACKEND_DAI_EXTPROC_TX,
  17000. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17001. msm_routing_put_voice_stub_mixer),
  17002. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17003. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17004. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17005. msm_routing_put_voice_stub_mixer),
  17006. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17007. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17008. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17009. msm_routing_put_voice_stub_mixer),
  17010. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17011. MSM_BACKEND_DAI_AUXPCM_TX,
  17012. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17013. msm_routing_put_voice_stub_mixer),
  17014. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17015. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17016. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17017. msm_routing_put_voice_stub_mixer),
  17018. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17019. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17020. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17021. msm_routing_put_voice_stub_mixer),
  17022. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17023. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17024. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17025. msm_routing_put_voice_stub_mixer),
  17026. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17027. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17028. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17029. msm_routing_put_voice_stub_mixer),
  17030. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17031. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17032. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17033. msm_routing_put_voice_stub_mixer),
  17034. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17035. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17036. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17037. msm_routing_put_voice_stub_mixer),
  17038. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17039. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17040. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17041. msm_routing_put_voice_stub_mixer),
  17042. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17043. MSM_BACKEND_DAI_AFE_PCM_TX,
  17044. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17045. msm_routing_put_voice_stub_mixer),
  17046. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17047. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17048. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17049. msm_routing_put_voice_stub_mixer),
  17050. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17051. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17052. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17053. msm_routing_put_voice_stub_mixer),
  17054. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17055. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17056. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17057. msm_routing_put_voice_stub_mixer),
  17058. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17059. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17060. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17061. msm_routing_put_voice_stub_mixer),
  17062. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17063. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17064. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17065. msm_routing_put_voice_stub_mixer),
  17066. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17067. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17068. 1, 0, msm_routing_get_voice_stub_mixer,
  17069. msm_routing_put_voice_stub_mixer),
  17070. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17071. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17072. 1, 0, msm_routing_get_voice_stub_mixer,
  17073. msm_routing_put_voice_stub_mixer),
  17074. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17075. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17076. 1, 0, msm_routing_get_voice_stub_mixer,
  17077. msm_routing_put_voice_stub_mixer),
  17078. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17079. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17080. 1, 0, msm_routing_get_voice_stub_mixer,
  17081. msm_routing_put_voice_stub_mixer),
  17082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17084. 1, 0, msm_routing_get_voice_stub_mixer,
  17085. msm_routing_put_voice_stub_mixer),
  17086. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17087. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17088. 1, 0, msm_routing_get_voice_stub_mixer,
  17089. msm_routing_put_voice_stub_mixer),
  17090. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17092. 1, 0, msm_routing_get_voice_stub_mixer,
  17093. msm_routing_put_voice_stub_mixer),
  17094. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17095. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17096. 1, 0, msm_routing_get_voice_stub_mixer,
  17097. msm_routing_put_voice_stub_mixer),
  17098. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17099. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17100. 1, 0, msm_routing_get_voice_stub_mixer,
  17101. msm_routing_put_voice_stub_mixer),
  17102. };
  17103. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17104. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17105. MSM_BACKEND_DAI_EXTPROC_TX,
  17106. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17107. msm_routing_put_voice_stub_mixer),
  17108. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17109. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17110. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17111. msm_routing_put_voice_stub_mixer),
  17112. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17113. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17114. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17115. msm_routing_put_voice_stub_mixer),
  17116. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17117. MSM_BACKEND_DAI_AUXPCM_TX,
  17118. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17119. msm_routing_put_voice_stub_mixer),
  17120. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17121. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17122. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17123. msm_routing_put_voice_stub_mixer),
  17124. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17125. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17126. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17127. msm_routing_put_voice_stub_mixer),
  17128. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17129. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17130. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17131. msm_routing_put_voice_stub_mixer),
  17132. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17133. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17134. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17135. msm_routing_put_voice_stub_mixer),
  17136. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17137. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17138. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17139. msm_routing_put_voice_stub_mixer),
  17140. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17141. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17142. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17143. msm_routing_put_voice_stub_mixer),
  17144. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17145. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17146. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17147. msm_routing_put_voice_stub_mixer),
  17148. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17149. MSM_BACKEND_DAI_AFE_PCM_TX,
  17150. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17151. msm_routing_put_voice_stub_mixer),
  17152. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17153. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17154. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17155. msm_routing_put_voice_stub_mixer),
  17156. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17157. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17158. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17159. msm_routing_put_voice_stub_mixer),
  17160. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17162. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17163. msm_routing_put_voice_stub_mixer),
  17164. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17165. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17166. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17167. msm_routing_put_voice_stub_mixer),
  17168. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17169. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17170. 1, 0, msm_routing_get_voice_stub_mixer,
  17171. msm_routing_put_voice_stub_mixer),
  17172. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17173. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17174. 1, 0, msm_routing_get_voice_stub_mixer,
  17175. msm_routing_put_voice_stub_mixer),
  17176. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17177. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17178. 1, 0, msm_routing_get_voice_stub_mixer,
  17179. msm_routing_put_voice_stub_mixer),
  17180. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17182. 1, 0, msm_routing_get_voice_stub_mixer,
  17183. msm_routing_put_voice_stub_mixer),
  17184. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17185. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17186. 1, 0, msm_routing_get_voice_stub_mixer,
  17187. msm_routing_put_voice_stub_mixer),
  17188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17190. 1, 0, msm_routing_get_voice_stub_mixer,
  17191. msm_routing_put_voice_stub_mixer),
  17192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17194. 1, 0, msm_routing_get_voice_stub_mixer,
  17195. msm_routing_put_voice_stub_mixer),
  17196. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17197. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17198. 1, 0, msm_routing_get_voice_stub_mixer,
  17199. msm_routing_put_voice_stub_mixer),
  17200. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17202. 1, 0, msm_routing_get_voice_stub_mixer,
  17203. msm_routing_put_voice_stub_mixer),
  17204. };
  17205. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17206. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17207. MSM_BACKEND_DAI_PRI_I2S_TX,
  17208. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17209. msm_routing_put_voice_mixer),
  17210. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17211. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17212. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17213. msm_routing_put_voice_mixer),
  17214. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17215. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17216. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17217. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17218. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17219. MSM_BACKEND_DAI_AFE_PCM_TX,
  17220. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17221. msm_routing_put_voice_mixer),
  17222. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17223. MSM_BACKEND_DAI_AUXPCM_TX,
  17224. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17225. msm_routing_put_voice_mixer),
  17226. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17227. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17228. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17229. msm_routing_put_voice_mixer),
  17230. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17231. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17232. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17233. msm_routing_put_voice_mixer),
  17234. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17235. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17236. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17237. msm_routing_put_voice_mixer),
  17238. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17239. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17240. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17241. msm_routing_put_voice_mixer),
  17242. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17243. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17244. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17245. msm_routing_put_voice_mixer),
  17246. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17247. MSM_BACKEND_DAI_MI2S_TX,
  17248. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17249. msm_routing_put_voice_mixer),
  17250. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17251. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17252. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17253. msm_routing_put_voice_mixer),
  17254. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17255. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17256. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17257. msm_routing_put_voice_mixer),
  17258. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17259. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17260. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17261. msm_routing_put_voice_mixer),
  17262. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17263. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17265. msm_routing_put_voice_mixer),
  17266. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17267. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17268. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17269. msm_routing_put_voice_mixer),
  17270. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17271. MSM_BACKEND_DAI_USB_TX,
  17272. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17273. msm_routing_put_voice_mixer),
  17274. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17276. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17277. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17278. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17279. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17280. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17281. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17282. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17285. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17286. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17287. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17288. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17289. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17291. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17292. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17293. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17294. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17295. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17296. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17297. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17298. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17299. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17300. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17301. };
  17302. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17303. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17305. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17306. msm_routing_put_port_mixer),
  17307. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17308. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17309. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17310. msm_routing_put_port_mixer),
  17311. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17312. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17313. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17314. msm_routing_put_port_mixer),
  17315. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17316. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17317. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17321. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17322. msm_routing_put_port_mixer),
  17323. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17324. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17325. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17326. msm_routing_put_port_mixer),
  17327. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17328. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17329. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17330. msm_routing_put_port_mixer),
  17331. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17332. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17333. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17334. msm_routing_put_port_mixer),
  17335. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17336. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17337. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17338. msm_routing_put_port_mixer),
  17339. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17340. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17341. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17342. msm_routing_put_port_mixer),
  17343. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17344. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17345. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17346. msm_routing_put_port_mixer),
  17347. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17348. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17349. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17350. msm_routing_put_port_mixer),
  17351. };
  17352. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17353. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17355. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17356. msm_routing_put_port_mixer),
  17357. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17360. msm_routing_put_port_mixer),
  17361. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17363. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17364. msm_routing_put_port_mixer),
  17365. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17366. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17367. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17368. msm_routing_put_port_mixer),
  17369. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17371. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17372. msm_routing_put_port_mixer),
  17373. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17375. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17376. msm_routing_put_port_mixer),
  17377. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17378. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17379. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17380. msm_routing_put_port_mixer),
  17381. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17382. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17383. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17384. msm_routing_put_port_mixer),
  17385. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17387. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17391. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17395. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17396. msm_routing_put_port_mixer),
  17397. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17398. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17399. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. };
  17402. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17403. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17404. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17405. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17406. msm_routing_put_port_mixer),
  17407. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17408. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17410. msm_routing_put_port_mixer),
  17411. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17413. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17417. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17418. msm_routing_put_port_mixer),
  17419. };
  17420. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17421. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17423. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17424. msm_routing_put_port_mixer),
  17425. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17426. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17427. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17428. msm_routing_put_port_mixer),
  17429. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17431. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17432. msm_routing_put_port_mixer),
  17433. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17435. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17436. msm_routing_put_port_mixer),
  17437. };
  17438. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17439. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17446. msm_routing_put_port_mixer),
  17447. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17449. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17453. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. };
  17456. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17457. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17458. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17459. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17460. msm_routing_put_port_mixer),
  17461. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17462. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17463. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17464. msm_routing_put_port_mixer),
  17465. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17466. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17467. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17468. msm_routing_put_port_mixer),
  17469. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17470. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17471. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17475. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17476. msm_routing_put_port_mixer),
  17477. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17478. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17479. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17480. msm_routing_put_port_mixer),
  17481. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17482. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17483. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17484. msm_routing_put_port_mixer),
  17485. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17486. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17487. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17488. msm_routing_put_port_mixer),
  17489. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17490. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17491. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17495. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17496. msm_routing_put_port_mixer),
  17497. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17499. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17500. msm_routing_put_port_mixer),
  17501. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17502. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17503. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17504. msm_routing_put_port_mixer),
  17505. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17506. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17507. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17508. msm_routing_put_port_mixer),
  17509. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17510. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17511. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17512. msm_routing_put_port_mixer),
  17513. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17515. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17516. msm_routing_put_port_mixer),
  17517. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17519. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17520. msm_routing_put_port_mixer),
  17521. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17523. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17524. msm_routing_put_port_mixer),
  17525. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17526. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17527. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17528. msm_routing_put_port_mixer),
  17529. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17530. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17531. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17535. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17536. msm_routing_put_port_mixer),
  17537. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17539. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17540. msm_routing_put_port_mixer),
  17541. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17542. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17543. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17544. msm_routing_put_port_mixer),
  17545. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17547. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17548. msm_routing_put_port_mixer),
  17549. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17550. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17551. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17555. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17559. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17560. msm_routing_put_port_mixer),
  17561. };
  17562. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17563. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_AUXPCM_RX,
  17565. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17566. msm_routing_put_port_mixer),
  17567. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17568. MSM_BACKEND_DAI_AUXPCM_RX,
  17569. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17570. msm_routing_put_port_mixer),
  17571. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17572. MSM_BACKEND_DAI_AUXPCM_RX,
  17573. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17574. msm_routing_put_port_mixer),
  17575. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_AUXPCM_RX,
  17577. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17578. msm_routing_put_port_mixer),
  17579. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_AUXPCM_RX,
  17581. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_AUXPCM_RX,
  17585. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_AUXPCM_RX,
  17589. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. };
  17592. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17593. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17594. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17595. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17596. msm_routing_put_port_mixer),
  17597. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17598. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17599. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17600. msm_routing_put_port_mixer),
  17601. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17602. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17603. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17606. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17607. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17608. msm_routing_put_port_mixer),
  17609. };
  17610. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17611. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17612. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17613. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17617. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17620. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17621. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17622. msm_routing_put_port_mixer),
  17623. };
  17624. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17625. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17627. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17631. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17635. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. };
  17638. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17639. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17640. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17641. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17642. msm_routing_put_port_mixer),
  17643. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17644. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17645. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17648. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17649. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17650. msm_routing_put_port_mixer),
  17651. };
  17652. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17653. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17655. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17658. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17659. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17660. msm_routing_put_port_mixer),
  17661. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17662. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17663. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. };
  17666. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17667. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17668. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17669. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17670. msm_routing_put_port_mixer),
  17671. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17672. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17673. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17677. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17681. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17685. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17689. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17690. msm_routing_put_port_mixer),
  17691. };
  17692. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17693. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17694. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17695. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17699. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17700. msm_routing_put_port_mixer),
  17701. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17702. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17703. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17704. msm_routing_put_port_mixer),
  17705. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17706. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17707. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17708. msm_routing_put_port_mixer),
  17709. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17710. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17711. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17712. msm_routing_put_port_mixer),
  17713. };
  17714. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17715. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17716. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17717. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17721. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17722. msm_routing_put_port_mixer),
  17723. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17724. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17725. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17728. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17729. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17730. msm_routing_put_port_mixer),
  17731. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17732. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17733. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17734. msm_routing_put_port_mixer),
  17735. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17736. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17737. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17740. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17741. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17742. msm_routing_put_port_mixer),
  17743. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17744. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17745. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17748. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17749. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17750. msm_routing_put_port_mixer),
  17751. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17753. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17754. msm_routing_put_port_mixer),
  17755. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17757. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17758. msm_routing_put_port_mixer),
  17759. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17760. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17761. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17762. msm_routing_put_port_mixer),
  17763. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17764. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17765. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. };
  17768. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17769. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17770. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17771. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17772. msm_routing_put_port_mixer),
  17773. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17774. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17775. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17776. msm_routing_put_port_mixer),
  17777. };
  17778. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17779. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17780. MSM_BACKEND_DAI_AFE_PCM_RX,
  17781. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17782. msm_routing_put_port_mixer),
  17783. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17784. MSM_BACKEND_DAI_AFE_PCM_RX,
  17785. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17786. msm_routing_put_port_mixer),
  17787. };
  17788. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17789. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_HDMI_RX,
  17791. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17792. msm_routing_put_port_mixer),
  17793. };
  17794. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17795. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17796. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17797. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17798. msm_routing_put_port_mixer),
  17799. };
  17800. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17801. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17803. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. };
  17806. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17807. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17808. MSM_BACKEND_DAI_SEC_I2S_RX,
  17809. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17810. msm_routing_put_port_mixer),
  17811. };
  17812. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17813. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17814. MSM_BACKEND_DAI_MI2S_RX,
  17815. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17816. msm_routing_put_port_mixer),
  17817. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17818. MSM_BACKEND_DAI_MI2S_RX,
  17819. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. };
  17822. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17823. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17824. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17825. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17826. msm_routing_put_port_mixer),
  17827. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17828. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17829. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17830. msm_routing_put_port_mixer),
  17831. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17833. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17837. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17841. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17842. msm_routing_put_port_mixer),
  17843. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17844. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17845. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17846. msm_routing_put_port_mixer),
  17847. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17848. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17849. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17853. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17854. msm_routing_put_port_mixer),
  17855. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17857. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17860. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17861. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17862. msm_routing_put_port_mixer),
  17863. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17864. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17865. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17866. msm_routing_put_port_mixer),
  17867. };
  17868. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17869. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_USB_RX,
  17871. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. };
  17874. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17875. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17876. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17877. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17878. msm_routing_put_port_mixer),
  17879. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17881. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17884. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17885. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17886. msm_routing_put_port_mixer),
  17887. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17888. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17889. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17890. msm_routing_put_port_mixer),
  17891. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17892. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17893. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17894. msm_routing_put_port_mixer),
  17895. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17896. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17897. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17898. msm_routing_put_port_mixer),
  17899. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17900. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17901. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17905. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17906. msm_routing_put_port_mixer),
  17907. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17908. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17909. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17910. msm_routing_put_port_mixer),
  17911. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17912. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17913. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17914. msm_routing_put_port_mixer),
  17915. };
  17916. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17917. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17918. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17919. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17920. msm_routing_put_port_mixer),
  17921. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17922. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17923. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17924. msm_routing_put_port_mixer),
  17925. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17926. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17927. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17931. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17935. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17936. msm_routing_put_port_mixer),
  17937. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17938. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17939. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17940. msm_routing_put_port_mixer),
  17941. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17943. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17944. msm_routing_put_port_mixer),
  17945. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17946. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17947. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17948. msm_routing_put_port_mixer),
  17949. };
  17950. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17951. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17953. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17954. msm_routing_put_port_mixer),
  17955. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17956. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17957. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17958. msm_routing_put_port_mixer),
  17959. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17960. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17961. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17962. msm_routing_put_port_mixer),
  17963. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17964. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17965. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17966. msm_routing_put_port_mixer),
  17967. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17968. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17969. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17970. msm_routing_put_port_mixer),
  17971. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17972. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17973. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17974. msm_routing_put_port_mixer),
  17975. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17976. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17977. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17978. msm_routing_put_port_mixer),
  17979. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17980. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17981. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17982. msm_routing_put_port_mixer),
  17983. };
  17984. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17986. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17987. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17988. msm_routing_get_port_mixer,
  17989. msm_routing_put_port_mixer),
  17990. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17991. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17992. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17993. msm_routing_get_port_mixer,
  17994. msm_routing_put_port_mixer),
  17995. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17996. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17997. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17998. msm_routing_get_port_mixer,
  17999. msm_routing_put_port_mixer),
  18000. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18001. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18002. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18003. msm_routing_get_port_mixer,
  18004. msm_routing_put_port_mixer),
  18005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18006. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18007. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18008. msm_routing_get_port_mixer,
  18009. msm_routing_put_port_mixer),
  18010. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18011. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18012. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18013. msm_routing_get_port_mixer,
  18014. msm_routing_put_port_mixer),
  18015. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18017. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18018. msm_routing_get_port_mixer,
  18019. msm_routing_put_port_mixer),
  18020. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18021. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18022. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18023. msm_routing_get_port_mixer,
  18024. msm_routing_put_port_mixer),
  18025. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18027. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18028. msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18032. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18033. msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18036. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18037. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18038. msm_routing_get_port_mixer,
  18039. msm_routing_put_port_mixer),
  18040. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18041. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18042. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18043. msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18046. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18047. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18048. msm_routing_get_port_mixer,
  18049. msm_routing_put_port_mixer),
  18050. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18052. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18053. msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18056. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18057. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18058. msm_routing_get_port_mixer,
  18059. msm_routing_put_port_mixer),
  18060. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18061. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18062. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18063. msm_routing_get_port_mixer,
  18064. msm_routing_put_port_mixer),
  18065. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18066. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18067. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18068. msm_routing_get_port_mixer,
  18069. msm_routing_put_port_mixer),
  18070. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18071. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18072. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18073. msm_routing_get_port_mixer,
  18074. msm_routing_put_port_mixer),
  18075. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18076. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18077. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18078. msm_routing_get_port_mixer,
  18079. msm_routing_put_port_mixer),
  18080. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18081. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18082. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18083. msm_routing_get_port_mixer,
  18084. msm_routing_put_port_mixer),
  18085. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18086. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18087. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18088. msm_routing_get_port_mixer,
  18089. msm_routing_put_port_mixer),
  18090. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18091. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18092. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18093. msm_routing_get_port_mixer,
  18094. msm_routing_put_port_mixer),
  18095. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18096. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18097. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18098. msm_routing_get_port_mixer,
  18099. msm_routing_put_port_mixer),
  18100. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18101. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18102. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18103. msm_routing_get_port_mixer,
  18104. msm_routing_put_port_mixer),
  18105. };
  18106. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18107. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18108. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18109. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18110. msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18114. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18115. msm_routing_get_port_mixer,
  18116. msm_routing_put_port_mixer),
  18117. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18118. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18119. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18120. msm_routing_get_port_mixer,
  18121. msm_routing_put_port_mixer),
  18122. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18123. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18124. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18125. msm_routing_get_port_mixer,
  18126. msm_routing_put_port_mixer),
  18127. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18128. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18129. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18130. msm_routing_get_port_mixer,
  18131. msm_routing_put_port_mixer),
  18132. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18134. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18135. msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18140. msm_routing_get_port_mixer,
  18141. msm_routing_put_port_mixer),
  18142. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18143. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18144. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18145. msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18148. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18149. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18150. msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18154. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18155. msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18159. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18160. msm_routing_get_port_mixer,
  18161. msm_routing_put_port_mixer),
  18162. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18164. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18165. msm_routing_get_port_mixer,
  18166. msm_routing_put_port_mixer),
  18167. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18168. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18169. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18170. msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18174. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18175. msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18179. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18180. msm_routing_get_port_mixer,
  18181. msm_routing_put_port_mixer),
  18182. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18183. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18184. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18185. msm_routing_get_port_mixer,
  18186. msm_routing_put_port_mixer),
  18187. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18188. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18189. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18190. msm_routing_get_port_mixer,
  18191. msm_routing_put_port_mixer),
  18192. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18193. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18194. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18195. msm_routing_get_port_mixer,
  18196. msm_routing_put_port_mixer),
  18197. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18198. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18199. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18200. msm_routing_get_port_mixer,
  18201. msm_routing_put_port_mixer),
  18202. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18203. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18204. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18205. msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18209. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18210. msm_routing_get_port_mixer,
  18211. msm_routing_put_port_mixer),
  18212. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18213. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18214. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18215. msm_routing_get_port_mixer,
  18216. msm_routing_put_port_mixer),
  18217. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18218. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18219. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18220. msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18223. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18224. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18225. msm_routing_get_port_mixer,
  18226. msm_routing_put_port_mixer),
  18227. };
  18228. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18229. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18230. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18231. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18232. msm_routing_get_port_mixer,
  18233. msm_routing_put_port_mixer),
  18234. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18235. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18236. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18237. msm_routing_get_port_mixer,
  18238. msm_routing_put_port_mixer),
  18239. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18240. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18241. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18242. msm_routing_get_port_mixer,
  18243. msm_routing_put_port_mixer),
  18244. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18245. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18246. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18247. msm_routing_get_port_mixer,
  18248. msm_routing_put_port_mixer),
  18249. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18250. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18251. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18252. msm_routing_get_port_mixer,
  18253. msm_routing_put_port_mixer),
  18254. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18255. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18256. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18257. msm_routing_get_port_mixer,
  18258. msm_routing_put_port_mixer),
  18259. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18261. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18262. msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18266. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18267. msm_routing_get_port_mixer,
  18268. msm_routing_put_port_mixer),
  18269. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18270. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18271. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18272. msm_routing_get_port_mixer,
  18273. msm_routing_put_port_mixer),
  18274. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18275. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18276. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18277. msm_routing_get_port_mixer,
  18278. msm_routing_put_port_mixer),
  18279. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18281. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18282. msm_routing_get_port_mixer,
  18283. msm_routing_put_port_mixer),
  18284. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18285. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18286. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18287. msm_routing_get_port_mixer,
  18288. msm_routing_put_port_mixer),
  18289. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18290. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18291. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18292. msm_routing_get_port_mixer,
  18293. msm_routing_put_port_mixer),
  18294. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18295. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18296. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18297. msm_routing_get_port_mixer,
  18298. msm_routing_put_port_mixer),
  18299. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18300. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18301. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18302. msm_routing_get_port_mixer,
  18303. msm_routing_put_port_mixer),
  18304. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18306. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18307. msm_routing_get_port_mixer,
  18308. msm_routing_put_port_mixer),
  18309. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18310. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18311. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18312. msm_routing_get_port_mixer,
  18313. msm_routing_put_port_mixer),
  18314. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18315. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18316. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18317. msm_routing_get_port_mixer,
  18318. msm_routing_put_port_mixer),
  18319. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18320. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18321. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18322. msm_routing_get_port_mixer,
  18323. msm_routing_put_port_mixer),
  18324. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18325. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18326. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18327. msm_routing_get_port_mixer,
  18328. msm_routing_put_port_mixer),
  18329. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18330. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18331. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18332. msm_routing_get_port_mixer,
  18333. msm_routing_put_port_mixer),
  18334. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18336. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18337. msm_routing_get_port_mixer,
  18338. msm_routing_put_port_mixer),
  18339. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18341. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18342. msm_routing_get_port_mixer,
  18343. msm_routing_put_port_mixer),
  18344. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18345. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18346. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18347. msm_routing_get_port_mixer,
  18348. msm_routing_put_port_mixer),
  18349. };
  18350. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18351. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18352. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18353. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18354. msm_routing_get_port_mixer,
  18355. msm_routing_put_port_mixer),
  18356. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18357. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18358. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18359. msm_routing_get_port_mixer,
  18360. msm_routing_put_port_mixer),
  18361. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18362. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18363. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18364. msm_routing_get_port_mixer,
  18365. msm_routing_put_port_mixer),
  18366. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18367. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18368. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18369. msm_routing_get_port_mixer,
  18370. msm_routing_put_port_mixer),
  18371. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18372. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18373. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18374. msm_routing_get_port_mixer,
  18375. msm_routing_put_port_mixer),
  18376. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18377. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18378. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18379. msm_routing_get_port_mixer,
  18380. msm_routing_put_port_mixer),
  18381. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18383. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18384. msm_routing_get_port_mixer,
  18385. msm_routing_put_port_mixer),
  18386. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18387. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18388. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18389. msm_routing_get_port_mixer,
  18390. msm_routing_put_port_mixer),
  18391. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18392. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18393. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18394. msm_routing_get_port_mixer,
  18395. msm_routing_put_port_mixer),
  18396. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18397. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18398. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18399. msm_routing_get_port_mixer,
  18400. msm_routing_put_port_mixer),
  18401. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18403. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18404. msm_routing_get_port_mixer,
  18405. msm_routing_put_port_mixer),
  18406. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18407. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18408. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18409. msm_routing_get_port_mixer,
  18410. msm_routing_put_port_mixer),
  18411. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18412. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18413. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18414. msm_routing_get_port_mixer,
  18415. msm_routing_put_port_mixer),
  18416. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18417. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18418. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18419. msm_routing_get_port_mixer,
  18420. msm_routing_put_port_mixer),
  18421. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18423. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18424. msm_routing_get_port_mixer,
  18425. msm_routing_put_port_mixer),
  18426. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18427. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18428. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18429. msm_routing_get_port_mixer,
  18430. msm_routing_put_port_mixer),
  18431. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18432. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18433. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18434. msm_routing_get_port_mixer,
  18435. msm_routing_put_port_mixer),
  18436. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18437. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18438. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18439. msm_routing_get_port_mixer,
  18440. msm_routing_put_port_mixer),
  18441. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18443. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18444. msm_routing_get_port_mixer,
  18445. msm_routing_put_port_mixer),
  18446. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18448. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18453. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18454. msm_routing_get_port_mixer,
  18455. msm_routing_put_port_mixer),
  18456. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18458. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18463. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18468. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. };
  18472. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18473. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18474. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18475. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18476. msm_routing_get_port_mixer,
  18477. msm_routing_put_port_mixer),
  18478. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18479. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18480. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18481. msm_routing_get_port_mixer,
  18482. msm_routing_put_port_mixer),
  18483. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18484. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18485. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18486. msm_routing_get_port_mixer,
  18487. msm_routing_put_port_mixer),
  18488. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18489. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18490. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18491. msm_routing_get_port_mixer,
  18492. msm_routing_put_port_mixer),
  18493. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18494. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18495. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18496. msm_routing_get_port_mixer,
  18497. msm_routing_put_port_mixer),
  18498. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18499. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18500. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18501. msm_routing_get_port_mixer,
  18502. msm_routing_put_port_mixer),
  18503. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18504. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18505. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18506. msm_routing_get_port_mixer,
  18507. msm_routing_put_port_mixer),
  18508. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18509. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18510. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18511. msm_routing_get_port_mixer,
  18512. msm_routing_put_port_mixer),
  18513. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18514. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18515. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18516. msm_routing_get_port_mixer,
  18517. msm_routing_put_port_mixer),
  18518. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18519. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18520. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18521. msm_routing_get_port_mixer,
  18522. msm_routing_put_port_mixer),
  18523. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18524. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18525. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18526. msm_routing_get_port_mixer,
  18527. msm_routing_put_port_mixer),
  18528. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18529. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18530. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18531. msm_routing_get_port_mixer,
  18532. msm_routing_put_port_mixer),
  18533. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18534. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18535. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18536. msm_routing_get_port_mixer,
  18537. msm_routing_put_port_mixer),
  18538. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18539. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18540. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18541. msm_routing_get_port_mixer,
  18542. msm_routing_put_port_mixer),
  18543. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18544. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18545. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18546. msm_routing_get_port_mixer,
  18547. msm_routing_put_port_mixer),
  18548. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18549. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18550. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18551. msm_routing_get_port_mixer,
  18552. msm_routing_put_port_mixer),
  18553. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18554. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18555. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18556. msm_routing_get_port_mixer,
  18557. msm_routing_put_port_mixer),
  18558. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18559. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18560. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18561. msm_routing_get_port_mixer,
  18562. msm_routing_put_port_mixer),
  18563. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18565. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18566. msm_routing_get_port_mixer,
  18567. msm_routing_put_port_mixer),
  18568. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18570. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18575. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18576. msm_routing_get_port_mixer,
  18577. msm_routing_put_port_mixer),
  18578. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18580. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18585. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18589. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18590. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18591. msm_routing_get_port_mixer,
  18592. msm_routing_put_port_mixer),
  18593. };
  18594. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18595. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18596. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18597. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18598. msm_routing_get_port_mixer,
  18599. msm_routing_put_port_mixer),
  18600. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18601. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18602. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18603. msm_routing_get_port_mixer,
  18604. msm_routing_put_port_mixer),
  18605. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18606. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18607. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18608. msm_routing_get_port_mixer,
  18609. msm_routing_put_port_mixer),
  18610. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18611. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18612. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18613. msm_routing_get_port_mixer,
  18614. msm_routing_put_port_mixer),
  18615. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18616. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18617. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18618. msm_routing_get_port_mixer,
  18619. msm_routing_put_port_mixer),
  18620. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18621. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18622. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18623. msm_routing_get_port_mixer,
  18624. msm_routing_put_port_mixer),
  18625. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18627. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18628. msm_routing_get_port_mixer,
  18629. msm_routing_put_port_mixer),
  18630. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18632. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18633. msm_routing_get_port_mixer,
  18634. msm_routing_put_port_mixer),
  18635. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18636. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18637. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18638. msm_routing_get_port_mixer,
  18639. msm_routing_put_port_mixer),
  18640. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18642. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18643. msm_routing_get_port_mixer,
  18644. msm_routing_put_port_mixer),
  18645. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18647. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18648. msm_routing_get_port_mixer,
  18649. msm_routing_put_port_mixer),
  18650. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18652. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18653. msm_routing_get_port_mixer,
  18654. msm_routing_put_port_mixer),
  18655. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18657. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18658. msm_routing_get_port_mixer,
  18659. msm_routing_put_port_mixer),
  18660. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18662. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18663. msm_routing_get_port_mixer,
  18664. msm_routing_put_port_mixer),
  18665. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18667. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18668. msm_routing_get_port_mixer,
  18669. msm_routing_put_port_mixer),
  18670. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18672. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18673. msm_routing_get_port_mixer,
  18674. msm_routing_put_port_mixer),
  18675. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18677. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18678. msm_routing_get_port_mixer,
  18679. msm_routing_put_port_mixer),
  18680. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18682. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18687. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18692. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18697. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18702. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18707. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18712. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18713. msm_routing_get_port_mixer,
  18714. msm_routing_put_port_mixer),
  18715. };
  18716. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18717. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18719. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18720. msm_routing_get_port_mixer,
  18721. msm_routing_put_port_mixer),
  18722. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18723. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18724. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18725. msm_routing_get_port_mixer,
  18726. msm_routing_put_port_mixer),
  18727. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18728. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18729. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18730. msm_routing_get_port_mixer,
  18731. msm_routing_put_port_mixer),
  18732. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18733. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18734. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18735. msm_routing_get_port_mixer,
  18736. msm_routing_put_port_mixer),
  18737. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18738. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18739. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18740. msm_routing_get_port_mixer,
  18741. msm_routing_put_port_mixer),
  18742. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18743. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18744. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18745. msm_routing_get_port_mixer,
  18746. msm_routing_put_port_mixer),
  18747. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18748. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18749. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18750. msm_routing_get_port_mixer,
  18751. msm_routing_put_port_mixer),
  18752. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18754. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18755. msm_routing_get_port_mixer,
  18756. msm_routing_put_port_mixer),
  18757. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18759. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18760. msm_routing_get_port_mixer,
  18761. msm_routing_put_port_mixer),
  18762. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18764. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18765. msm_routing_get_port_mixer,
  18766. msm_routing_put_port_mixer),
  18767. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18768. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18769. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18770. msm_routing_get_port_mixer,
  18771. msm_routing_put_port_mixer),
  18772. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18774. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18775. msm_routing_get_port_mixer,
  18776. msm_routing_put_port_mixer),
  18777. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18779. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18780. msm_routing_get_port_mixer,
  18781. msm_routing_put_port_mixer),
  18782. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18784. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18785. msm_routing_get_port_mixer,
  18786. msm_routing_put_port_mixer),
  18787. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18788. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18789. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18790. msm_routing_get_port_mixer,
  18791. msm_routing_put_port_mixer),
  18792. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18793. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18794. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18795. msm_routing_get_port_mixer,
  18796. msm_routing_put_port_mixer),
  18797. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18799. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18800. msm_routing_get_port_mixer,
  18801. msm_routing_put_port_mixer),
  18802. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18804. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18809. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18814. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18819. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18824. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18829. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18834. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18835. msm_routing_get_port_mixer,
  18836. msm_routing_put_port_mixer),
  18837. };
  18838. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18839. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18840. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18841. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18842. msm_routing_get_port_mixer,
  18843. msm_routing_put_port_mixer),
  18844. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18845. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18846. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18847. msm_routing_get_port_mixer,
  18848. msm_routing_put_port_mixer),
  18849. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18850. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18851. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18852. msm_routing_get_port_mixer,
  18853. msm_routing_put_port_mixer),
  18854. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18855. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18856. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18857. msm_routing_get_port_mixer,
  18858. msm_routing_put_port_mixer),
  18859. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18860. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18861. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18862. msm_routing_get_port_mixer,
  18863. msm_routing_put_port_mixer),
  18864. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18865. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18866. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18867. msm_routing_get_port_mixer,
  18868. msm_routing_put_port_mixer),
  18869. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18870. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18871. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18872. msm_routing_get_port_mixer,
  18873. msm_routing_put_port_mixer),
  18874. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18875. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18876. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18877. msm_routing_get_port_mixer,
  18878. msm_routing_put_port_mixer),
  18879. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18880. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18881. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18882. msm_routing_get_port_mixer,
  18883. msm_routing_put_port_mixer),
  18884. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18885. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18886. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18887. msm_routing_get_port_mixer,
  18888. msm_routing_put_port_mixer),
  18889. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18890. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18891. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18892. msm_routing_get_port_mixer,
  18893. msm_routing_put_port_mixer),
  18894. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18895. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18896. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18897. msm_routing_get_port_mixer,
  18898. msm_routing_put_port_mixer),
  18899. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18900. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18901. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18902. msm_routing_get_port_mixer,
  18903. msm_routing_put_port_mixer),
  18904. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18905. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18906. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18907. msm_routing_get_port_mixer,
  18908. msm_routing_put_port_mixer),
  18909. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18910. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18911. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18912. msm_routing_get_port_mixer,
  18913. msm_routing_put_port_mixer),
  18914. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18916. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18917. msm_routing_get_port_mixer,
  18918. msm_routing_put_port_mixer),
  18919. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18920. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18921. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18922. msm_routing_get_port_mixer,
  18923. msm_routing_put_port_mixer),
  18924. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18925. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18926. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18927. msm_routing_get_port_mixer,
  18928. msm_routing_put_port_mixer),
  18929. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18931. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18936. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18941. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18946. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18951. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18952. msm_routing_get_port_mixer,
  18953. msm_routing_put_port_mixer),
  18954. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18955. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18956. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18957. msm_routing_get_port_mixer,
  18958. msm_routing_put_port_mixer),
  18959. };
  18960. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18961. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18962. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18963. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18964. msm_routing_get_port_mixer,
  18965. msm_routing_put_port_mixer),
  18966. };
  18967. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18968. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18969. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18970. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18971. msm_routing_get_port_mixer,
  18972. msm_routing_put_port_mixer),
  18973. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18974. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18975. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18976. msm_routing_get_port_mixer,
  18977. msm_routing_put_port_mixer),
  18978. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18979. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18980. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18981. msm_routing_get_port_mixer,
  18982. msm_routing_put_port_mixer),
  18983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18984. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18986. msm_routing_get_port_mixer,
  18987. msm_routing_put_port_mixer),
  18988. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18989. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18990. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18991. msm_routing_get_port_mixer,
  18992. msm_routing_put_port_mixer),
  18993. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18994. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18995. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18996. msm_routing_get_port_mixer,
  18997. msm_routing_put_port_mixer),
  18998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18999. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19000. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19001. msm_routing_get_port_mixer,
  19002. msm_routing_put_port_mixer),
  19003. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19004. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19005. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19006. msm_routing_get_port_mixer,
  19007. msm_routing_put_port_mixer),
  19008. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19009. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19010. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19011. msm_routing_get_port_mixer,
  19012. msm_routing_put_port_mixer),
  19013. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19014. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19015. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19016. msm_routing_get_port_mixer,
  19017. msm_routing_put_port_mixer),
  19018. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19019. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19020. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19021. msm_routing_get_port_mixer,
  19022. msm_routing_put_port_mixer),
  19023. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19024. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19025. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19026. msm_routing_get_port_mixer,
  19027. msm_routing_put_port_mixer),
  19028. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19029. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19030. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19031. msm_routing_get_port_mixer,
  19032. msm_routing_put_port_mixer),
  19033. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19034. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19035. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19036. msm_routing_get_port_mixer,
  19037. msm_routing_put_port_mixer),
  19038. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19039. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19040. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19041. msm_routing_get_port_mixer,
  19042. msm_routing_put_port_mixer),
  19043. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19044. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19045. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19046. msm_routing_get_port_mixer,
  19047. msm_routing_put_port_mixer),
  19048. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19049. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19050. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19051. msm_routing_get_port_mixer,
  19052. msm_routing_put_port_mixer),
  19053. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19054. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19055. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19056. msm_routing_get_port_mixer,
  19057. msm_routing_put_port_mixer),
  19058. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19059. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19060. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19061. msm_routing_get_port_mixer,
  19062. msm_routing_put_port_mixer),
  19063. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19064. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19065. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19066. msm_routing_get_port_mixer,
  19067. msm_routing_put_port_mixer),
  19068. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19069. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19070. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19071. msm_routing_get_port_mixer,
  19072. msm_routing_put_port_mixer),
  19073. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19074. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19075. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19076. msm_routing_get_port_mixer,
  19077. msm_routing_put_port_mixer),
  19078. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19079. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19080. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19081. msm_routing_get_port_mixer,
  19082. msm_routing_put_port_mixer),
  19083. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19084. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19085. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19086. msm_routing_get_port_mixer,
  19087. msm_routing_put_port_mixer),
  19088. };
  19089. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19090. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19091. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19092. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19093. msm_routing_get_port_mixer,
  19094. msm_routing_put_port_mixer),
  19095. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19096. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19097. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19098. msm_routing_get_port_mixer,
  19099. msm_routing_put_port_mixer),
  19100. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19101. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19102. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19103. msm_routing_get_port_mixer,
  19104. msm_routing_put_port_mixer),
  19105. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19106. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19107. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19108. msm_routing_get_port_mixer,
  19109. msm_routing_put_port_mixer),
  19110. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19111. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19112. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19113. msm_routing_get_port_mixer,
  19114. msm_routing_put_port_mixer),
  19115. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19116. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19117. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19118. msm_routing_get_port_mixer,
  19119. msm_routing_put_port_mixer),
  19120. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19121. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19122. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19123. msm_routing_get_port_mixer,
  19124. msm_routing_put_port_mixer),
  19125. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19126. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19127. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19128. msm_routing_get_port_mixer,
  19129. msm_routing_put_port_mixer),
  19130. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19131. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19132. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19133. msm_routing_get_port_mixer,
  19134. msm_routing_put_port_mixer),
  19135. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19136. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19137. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19138. msm_routing_get_port_mixer,
  19139. msm_routing_put_port_mixer),
  19140. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19141. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19142. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19143. msm_routing_get_port_mixer,
  19144. msm_routing_put_port_mixer),
  19145. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19146. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19147. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19148. msm_routing_get_port_mixer,
  19149. msm_routing_put_port_mixer),
  19150. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19151. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19152. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19153. msm_routing_get_port_mixer,
  19154. msm_routing_put_port_mixer),
  19155. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19156. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19157. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19158. msm_routing_get_port_mixer,
  19159. msm_routing_put_port_mixer),
  19160. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19161. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19162. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19163. msm_routing_get_port_mixer,
  19164. msm_routing_put_port_mixer),
  19165. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19166. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19167. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19168. msm_routing_get_port_mixer,
  19169. msm_routing_put_port_mixer),
  19170. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19171. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19172. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19173. msm_routing_get_port_mixer,
  19174. msm_routing_put_port_mixer),
  19175. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19176. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19177. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19178. msm_routing_get_port_mixer,
  19179. msm_routing_put_port_mixer),
  19180. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19181. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19182. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19183. msm_routing_get_port_mixer,
  19184. msm_routing_put_port_mixer),
  19185. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19186. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19187. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19188. msm_routing_get_port_mixer,
  19189. msm_routing_put_port_mixer),
  19190. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19191. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19192. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19193. msm_routing_get_port_mixer,
  19194. msm_routing_put_port_mixer),
  19195. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19196. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19197. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19198. msm_routing_get_port_mixer,
  19199. msm_routing_put_port_mixer),
  19200. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19201. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19202. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19203. msm_routing_get_port_mixer,
  19204. msm_routing_put_port_mixer),
  19205. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19206. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19207. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19208. msm_routing_get_port_mixer,
  19209. msm_routing_put_port_mixer),
  19210. };
  19211. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19212. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19213. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19214. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19215. msm_routing_get_port_mixer,
  19216. msm_routing_put_port_mixer),
  19217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19218. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19220. msm_routing_get_port_mixer,
  19221. msm_routing_put_port_mixer),
  19222. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19223. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19224. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19225. msm_routing_get_port_mixer,
  19226. msm_routing_put_port_mixer),
  19227. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19228. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19229. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19230. msm_routing_get_port_mixer,
  19231. msm_routing_put_port_mixer),
  19232. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19233. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19234. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19235. msm_routing_get_port_mixer,
  19236. msm_routing_put_port_mixer),
  19237. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19238. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19239. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19240. msm_routing_get_port_mixer,
  19241. msm_routing_put_port_mixer),
  19242. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19243. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19244. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19245. msm_routing_get_port_mixer,
  19246. msm_routing_put_port_mixer),
  19247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19248. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19249. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19250. msm_routing_get_port_mixer,
  19251. msm_routing_put_port_mixer),
  19252. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19253. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19254. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19255. msm_routing_get_port_mixer,
  19256. msm_routing_put_port_mixer),
  19257. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19259. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19260. msm_routing_get_port_mixer,
  19261. msm_routing_put_port_mixer),
  19262. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19263. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19264. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19265. msm_routing_get_port_mixer,
  19266. msm_routing_put_port_mixer),
  19267. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19268. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19269. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19270. msm_routing_get_port_mixer,
  19271. msm_routing_put_port_mixer),
  19272. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19273. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19274. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19275. msm_routing_get_port_mixer,
  19276. msm_routing_put_port_mixer),
  19277. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19278. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19279. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19280. msm_routing_get_port_mixer,
  19281. msm_routing_put_port_mixer),
  19282. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19283. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19284. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19285. msm_routing_get_port_mixer,
  19286. msm_routing_put_port_mixer),
  19287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19288. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19289. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19290. msm_routing_get_port_mixer,
  19291. msm_routing_put_port_mixer),
  19292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19293. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19294. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19295. msm_routing_get_port_mixer,
  19296. msm_routing_put_port_mixer),
  19297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19298. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19299. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19300. msm_routing_get_port_mixer,
  19301. msm_routing_put_port_mixer),
  19302. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19303. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19304. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19305. msm_routing_get_port_mixer,
  19306. msm_routing_put_port_mixer),
  19307. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19308. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19309. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19310. msm_routing_get_port_mixer,
  19311. msm_routing_put_port_mixer),
  19312. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19313. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19314. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19315. msm_routing_get_port_mixer,
  19316. msm_routing_put_port_mixer),
  19317. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19318. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19319. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19320. msm_routing_get_port_mixer,
  19321. msm_routing_put_port_mixer),
  19322. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19323. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19324. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19325. msm_routing_get_port_mixer,
  19326. msm_routing_put_port_mixer),
  19327. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19328. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19329. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19330. msm_routing_get_port_mixer,
  19331. msm_routing_put_port_mixer),
  19332. };
  19333. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19334. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19335. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19336. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19337. msm_routing_get_port_mixer,
  19338. msm_routing_put_port_mixer),
  19339. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19340. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19341. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19342. msm_routing_get_port_mixer,
  19343. msm_routing_put_port_mixer),
  19344. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19345. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19346. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19347. msm_routing_get_port_mixer,
  19348. msm_routing_put_port_mixer),
  19349. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19350. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19351. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19352. msm_routing_get_port_mixer,
  19353. msm_routing_put_port_mixer),
  19354. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19355. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19356. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19357. msm_routing_get_port_mixer,
  19358. msm_routing_put_port_mixer),
  19359. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19360. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19361. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19362. msm_routing_get_port_mixer,
  19363. msm_routing_put_port_mixer),
  19364. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19365. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19366. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19367. msm_routing_get_port_mixer,
  19368. msm_routing_put_port_mixer),
  19369. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19370. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19371. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19372. msm_routing_get_port_mixer,
  19373. msm_routing_put_port_mixer),
  19374. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19375. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19376. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19377. msm_routing_get_port_mixer,
  19378. msm_routing_put_port_mixer),
  19379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19380. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19381. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19382. msm_routing_get_port_mixer,
  19383. msm_routing_put_port_mixer),
  19384. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19385. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19386. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19387. msm_routing_get_port_mixer,
  19388. msm_routing_put_port_mixer),
  19389. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19390. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19391. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19392. msm_routing_get_port_mixer,
  19393. msm_routing_put_port_mixer),
  19394. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19395. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19396. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19397. msm_routing_get_port_mixer,
  19398. msm_routing_put_port_mixer),
  19399. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19400. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19401. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19402. msm_routing_get_port_mixer,
  19403. msm_routing_put_port_mixer),
  19404. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19405. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19406. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19407. msm_routing_get_port_mixer,
  19408. msm_routing_put_port_mixer),
  19409. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19410. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19411. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19412. msm_routing_get_port_mixer,
  19413. msm_routing_put_port_mixer),
  19414. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19415. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19416. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19417. msm_routing_get_port_mixer,
  19418. msm_routing_put_port_mixer),
  19419. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19420. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19421. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19422. msm_routing_get_port_mixer,
  19423. msm_routing_put_port_mixer),
  19424. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19425. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19426. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19427. msm_routing_get_port_mixer,
  19428. msm_routing_put_port_mixer),
  19429. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19430. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19431. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19432. msm_routing_get_port_mixer,
  19433. msm_routing_put_port_mixer),
  19434. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19435. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19436. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19437. msm_routing_get_port_mixer,
  19438. msm_routing_put_port_mixer),
  19439. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19441. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19442. msm_routing_get_port_mixer,
  19443. msm_routing_put_port_mixer),
  19444. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19446. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19451. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. };
  19455. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19456. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19457. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19458. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19459. msm_routing_get_port_mixer,
  19460. msm_routing_put_port_mixer),
  19461. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19462. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19463. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19464. msm_routing_get_port_mixer,
  19465. msm_routing_put_port_mixer),
  19466. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19467. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19469. msm_routing_get_port_mixer,
  19470. msm_routing_put_port_mixer),
  19471. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19472. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19473. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19474. msm_routing_get_port_mixer,
  19475. msm_routing_put_port_mixer),
  19476. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19477. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19478. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19479. msm_routing_get_port_mixer,
  19480. msm_routing_put_port_mixer),
  19481. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19482. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19483. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19484. msm_routing_get_port_mixer,
  19485. msm_routing_put_port_mixer),
  19486. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19487. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19488. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19489. msm_routing_get_port_mixer,
  19490. msm_routing_put_port_mixer),
  19491. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19492. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19493. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19494. msm_routing_get_port_mixer,
  19495. msm_routing_put_port_mixer),
  19496. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19497. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19498. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19499. msm_routing_get_port_mixer,
  19500. msm_routing_put_port_mixer),
  19501. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19502. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19503. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19504. msm_routing_get_port_mixer,
  19505. msm_routing_put_port_mixer),
  19506. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19507. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19508. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19509. msm_routing_get_port_mixer,
  19510. msm_routing_put_port_mixer),
  19511. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19512. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19513. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19514. msm_routing_get_port_mixer,
  19515. msm_routing_put_port_mixer),
  19516. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19517. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19518. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19519. msm_routing_get_port_mixer,
  19520. msm_routing_put_port_mixer),
  19521. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19522. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19523. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19524. msm_routing_get_port_mixer,
  19525. msm_routing_put_port_mixer),
  19526. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19527. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19528. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19529. msm_routing_get_port_mixer,
  19530. msm_routing_put_port_mixer),
  19531. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19532. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19533. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19534. msm_routing_get_port_mixer,
  19535. msm_routing_put_port_mixer),
  19536. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19537. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19538. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19539. msm_routing_get_port_mixer,
  19540. msm_routing_put_port_mixer),
  19541. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19542. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19543. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19544. msm_routing_get_port_mixer,
  19545. msm_routing_put_port_mixer),
  19546. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19547. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19548. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19549. msm_routing_get_port_mixer,
  19550. msm_routing_put_port_mixer),
  19551. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19552. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19553. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19554. msm_routing_get_port_mixer,
  19555. msm_routing_put_port_mixer),
  19556. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19557. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19558. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19559. msm_routing_get_port_mixer,
  19560. msm_routing_put_port_mixer),
  19561. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19562. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19563. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19564. msm_routing_get_port_mixer,
  19565. msm_routing_put_port_mixer),
  19566. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19567. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19568. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19569. msm_routing_get_port_mixer,
  19570. msm_routing_put_port_mixer),
  19571. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19573. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19574. msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. };
  19577. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19578. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19579. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19580. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19581. msm_routing_get_port_mixer,
  19582. msm_routing_put_port_mixer),
  19583. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19584. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19585. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19586. msm_routing_get_port_mixer,
  19587. msm_routing_put_port_mixer),
  19588. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19589. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19590. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19591. msm_routing_get_port_mixer,
  19592. msm_routing_put_port_mixer),
  19593. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19594. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19595. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19596. msm_routing_get_port_mixer,
  19597. msm_routing_put_port_mixer),
  19598. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19599. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19600. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19601. msm_routing_get_port_mixer,
  19602. msm_routing_put_port_mixer),
  19603. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19604. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19605. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19606. msm_routing_get_port_mixer,
  19607. msm_routing_put_port_mixer),
  19608. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19609. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19610. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19611. msm_routing_get_port_mixer,
  19612. msm_routing_put_port_mixer),
  19613. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19614. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19615. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19616. msm_routing_get_port_mixer,
  19617. msm_routing_put_port_mixer),
  19618. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19620. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19621. msm_routing_get_port_mixer,
  19622. msm_routing_put_port_mixer),
  19623. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19624. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19625. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19626. msm_routing_get_port_mixer,
  19627. msm_routing_put_port_mixer),
  19628. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19629. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19630. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19631. msm_routing_get_port_mixer,
  19632. msm_routing_put_port_mixer),
  19633. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19634. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19635. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19636. msm_routing_get_port_mixer,
  19637. msm_routing_put_port_mixer),
  19638. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19640. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19641. msm_routing_get_port_mixer,
  19642. msm_routing_put_port_mixer),
  19643. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19644. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19645. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19646. msm_routing_get_port_mixer,
  19647. msm_routing_put_port_mixer),
  19648. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19650. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19651. msm_routing_get_port_mixer,
  19652. msm_routing_put_port_mixer),
  19653. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19654. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19655. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19656. msm_routing_get_port_mixer,
  19657. msm_routing_put_port_mixer),
  19658. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19659. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19660. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19661. msm_routing_get_port_mixer,
  19662. msm_routing_put_port_mixer),
  19663. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19664. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19665. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19666. msm_routing_get_port_mixer,
  19667. msm_routing_put_port_mixer),
  19668. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19670. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19671. msm_routing_get_port_mixer,
  19672. msm_routing_put_port_mixer),
  19673. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19674. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19675. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19676. msm_routing_get_port_mixer,
  19677. msm_routing_put_port_mixer),
  19678. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19679. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19680. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19681. msm_routing_get_port_mixer,
  19682. msm_routing_put_port_mixer),
  19683. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19684. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19685. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19686. msm_routing_get_port_mixer,
  19687. msm_routing_put_port_mixer),
  19688. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19690. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19691. msm_routing_get_port_mixer,
  19692. msm_routing_put_port_mixer),
  19693. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19694. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19695. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19696. msm_routing_get_port_mixer,
  19697. msm_routing_put_port_mixer),
  19698. };
  19699. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19700. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19701. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19702. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19703. msm_routing_get_port_mixer,
  19704. msm_routing_put_port_mixer),
  19705. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19706. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19707. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19708. msm_routing_get_port_mixer,
  19709. msm_routing_put_port_mixer),
  19710. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19711. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19712. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19713. msm_routing_get_port_mixer,
  19714. msm_routing_put_port_mixer),
  19715. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19716. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19717. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19718. msm_routing_get_port_mixer,
  19719. msm_routing_put_port_mixer),
  19720. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19721. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19722. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19723. msm_routing_get_port_mixer,
  19724. msm_routing_put_port_mixer),
  19725. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19726. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19727. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19728. msm_routing_get_port_mixer,
  19729. msm_routing_put_port_mixer),
  19730. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19731. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19732. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19733. msm_routing_get_port_mixer,
  19734. msm_routing_put_port_mixer),
  19735. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19736. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19737. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19738. msm_routing_get_port_mixer,
  19739. msm_routing_put_port_mixer),
  19740. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19741. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19742. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19743. msm_routing_get_port_mixer,
  19744. msm_routing_put_port_mixer),
  19745. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19746. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19747. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19748. msm_routing_get_port_mixer,
  19749. msm_routing_put_port_mixer),
  19750. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19751. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19752. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19753. msm_routing_get_port_mixer,
  19754. msm_routing_put_port_mixer),
  19755. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19756. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19757. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19758. msm_routing_get_port_mixer,
  19759. msm_routing_put_port_mixer),
  19760. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19761. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19762. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19763. msm_routing_get_port_mixer,
  19764. msm_routing_put_port_mixer),
  19765. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19766. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19767. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19768. msm_routing_get_port_mixer,
  19769. msm_routing_put_port_mixer),
  19770. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19771. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19772. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19773. msm_routing_get_port_mixer,
  19774. msm_routing_put_port_mixer),
  19775. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19776. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19777. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19778. msm_routing_get_port_mixer,
  19779. msm_routing_put_port_mixer),
  19780. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19781. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19782. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19783. msm_routing_get_port_mixer,
  19784. msm_routing_put_port_mixer),
  19785. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19787. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19788. msm_routing_get_port_mixer,
  19789. msm_routing_put_port_mixer),
  19790. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19791. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19792. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19793. msm_routing_get_port_mixer,
  19794. msm_routing_put_port_mixer),
  19795. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19796. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19797. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19798. msm_routing_get_port_mixer,
  19799. msm_routing_put_port_mixer),
  19800. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19801. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19802. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19803. msm_routing_get_port_mixer,
  19804. msm_routing_put_port_mixer),
  19805. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19807. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19808. msm_routing_get_port_mixer,
  19809. msm_routing_put_port_mixer),
  19810. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19811. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19812. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19813. msm_routing_get_port_mixer,
  19814. msm_routing_put_port_mixer),
  19815. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19817. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19818. msm_routing_get_port_mixer,
  19819. msm_routing_put_port_mixer),
  19820. };
  19821. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19822. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19823. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19824. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19825. msm_routing_get_port_mixer,
  19826. msm_routing_put_port_mixer),
  19827. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19828. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19829. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19830. msm_routing_get_port_mixer,
  19831. msm_routing_put_port_mixer),
  19832. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19833. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19834. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19835. msm_routing_get_port_mixer,
  19836. msm_routing_put_port_mixer),
  19837. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19838. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19839. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19840. msm_routing_get_port_mixer,
  19841. msm_routing_put_port_mixer),
  19842. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19843. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19844. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19845. msm_routing_get_port_mixer,
  19846. msm_routing_put_port_mixer),
  19847. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19848. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19849. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19850. msm_routing_get_port_mixer,
  19851. msm_routing_put_port_mixer),
  19852. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19853. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19854. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19855. msm_routing_get_port_mixer,
  19856. msm_routing_put_port_mixer),
  19857. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19858. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19859. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19860. msm_routing_get_port_mixer,
  19861. msm_routing_put_port_mixer),
  19862. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19863. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19864. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19865. msm_routing_get_port_mixer,
  19866. msm_routing_put_port_mixer),
  19867. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19868. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19869. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19870. msm_routing_get_port_mixer,
  19871. msm_routing_put_port_mixer),
  19872. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19873. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19874. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19875. msm_routing_get_port_mixer,
  19876. msm_routing_put_port_mixer),
  19877. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19878. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19879. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19880. msm_routing_get_port_mixer,
  19881. msm_routing_put_port_mixer),
  19882. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19883. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19884. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19885. msm_routing_get_port_mixer,
  19886. msm_routing_put_port_mixer),
  19887. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19888. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19889. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19890. msm_routing_get_port_mixer,
  19891. msm_routing_put_port_mixer),
  19892. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19893. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19894. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19895. msm_routing_get_port_mixer,
  19896. msm_routing_put_port_mixer),
  19897. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19898. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19899. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19900. msm_routing_get_port_mixer,
  19901. msm_routing_put_port_mixer),
  19902. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19903. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19904. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19905. msm_routing_get_port_mixer,
  19906. msm_routing_put_port_mixer),
  19907. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19908. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19909. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19910. msm_routing_get_port_mixer,
  19911. msm_routing_put_port_mixer),
  19912. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19913. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19914. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19915. msm_routing_get_port_mixer,
  19916. msm_routing_put_port_mixer),
  19917. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19918. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19919. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19920. msm_routing_get_port_mixer,
  19921. msm_routing_put_port_mixer),
  19922. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19923. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19924. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19925. msm_routing_get_port_mixer,
  19926. msm_routing_put_port_mixer),
  19927. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19928. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19929. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19930. msm_routing_get_port_mixer,
  19931. msm_routing_put_port_mixer),
  19932. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19933. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19934. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19935. msm_routing_get_port_mixer,
  19936. msm_routing_put_port_mixer),
  19937. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19938. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19939. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19940. msm_routing_get_port_mixer,
  19941. msm_routing_put_port_mixer),
  19942. };
  19943. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19944. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19945. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19946. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19947. msm_routing_get_port_mixer,
  19948. msm_routing_put_port_mixer),
  19949. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19950. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19951. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 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_0_port_mixer_controls[] = {
  19956. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19957. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19958. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19959. msm_routing_get_port_mixer,
  19960. msm_routing_put_port_mixer),
  19961. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19962. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19963. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19964. msm_routing_get_port_mixer,
  19965. msm_routing_put_port_mixer),
  19966. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19967. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19968. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19969. msm_routing_get_port_mixer,
  19970. msm_routing_put_port_mixer),
  19971. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19972. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19973. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19974. msm_routing_get_port_mixer,
  19975. msm_routing_put_port_mixer),
  19976. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19977. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19978. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19979. msm_routing_get_port_mixer,
  19980. msm_routing_put_port_mixer),
  19981. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19983. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19984. msm_routing_get_port_mixer,
  19985. msm_routing_put_port_mixer),
  19986. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19987. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19988. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19989. msm_routing_get_port_mixer,
  19990. msm_routing_put_port_mixer),
  19991. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19992. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19993. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19994. msm_routing_get_port_mixer,
  19995. msm_routing_put_port_mixer),
  19996. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19997. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19998. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19999. msm_routing_get_port_mixer,
  20000. msm_routing_put_port_mixer),
  20001. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20003. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20004. msm_routing_get_port_mixer,
  20005. msm_routing_put_port_mixer),
  20006. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20007. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20008. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20009. msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20013. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20014. msm_routing_get_port_mixer,
  20015. msm_routing_put_port_mixer),
  20016. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20017. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20018. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20019. msm_routing_get_port_mixer,
  20020. msm_routing_put_port_mixer),
  20021. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20022. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20023. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20024. msm_routing_get_port_mixer,
  20025. msm_routing_put_port_mixer),
  20026. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20027. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20028. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20029. msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20033. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20034. msm_routing_get_port_mixer,
  20035. msm_routing_put_port_mixer),
  20036. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20037. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20038. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20039. msm_routing_get_port_mixer,
  20040. msm_routing_put_port_mixer),
  20041. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20042. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20043. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20044. msm_routing_get_port_mixer,
  20045. msm_routing_put_port_mixer),
  20046. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20047. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20048. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20049. msm_routing_get_port_mixer,
  20050. msm_routing_put_port_mixer),
  20051. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20052. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20053. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20054. msm_routing_get_port_mixer,
  20055. msm_routing_put_port_mixer),
  20056. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20057. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20058. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20059. msm_routing_get_port_mixer,
  20060. msm_routing_put_port_mixer),
  20061. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20062. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20063. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20064. msm_routing_get_port_mixer,
  20065. msm_routing_put_port_mixer),
  20066. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20067. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20068. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20069. msm_routing_get_port_mixer,
  20070. msm_routing_put_port_mixer),
  20071. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20072. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20073. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20074. msm_routing_get_port_mixer,
  20075. msm_routing_put_port_mixer),
  20076. };
  20077. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20078. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20079. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20080. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20081. msm_routing_get_port_mixer,
  20082. msm_routing_put_port_mixer),
  20083. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20084. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20085. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20086. msm_routing_get_port_mixer,
  20087. msm_routing_put_port_mixer),
  20088. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20089. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20090. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20091. msm_routing_get_port_mixer,
  20092. msm_routing_put_port_mixer),
  20093. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20094. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20095. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20096. msm_routing_get_port_mixer,
  20097. msm_routing_put_port_mixer),
  20098. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20099. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20100. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20101. msm_routing_get_port_mixer,
  20102. msm_routing_put_port_mixer),
  20103. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20105. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20106. msm_routing_get_port_mixer,
  20107. msm_routing_put_port_mixer),
  20108. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20110. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20111. msm_routing_get_port_mixer,
  20112. msm_routing_put_port_mixer),
  20113. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20114. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20115. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20116. msm_routing_get_port_mixer,
  20117. msm_routing_put_port_mixer),
  20118. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20119. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20120. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20121. msm_routing_get_port_mixer,
  20122. msm_routing_put_port_mixer),
  20123. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20124. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20125. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20126. msm_routing_get_port_mixer,
  20127. msm_routing_put_port_mixer),
  20128. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20130. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20131. msm_routing_get_port_mixer,
  20132. msm_routing_put_port_mixer),
  20133. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20134. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20135. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20136. msm_routing_get_port_mixer,
  20137. msm_routing_put_port_mixer),
  20138. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20139. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20140. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20141. msm_routing_get_port_mixer,
  20142. msm_routing_put_port_mixer),
  20143. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20144. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20145. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20146. msm_routing_get_port_mixer,
  20147. msm_routing_put_port_mixer),
  20148. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20150. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20151. msm_routing_get_port_mixer,
  20152. msm_routing_put_port_mixer),
  20153. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20154. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20155. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20156. msm_routing_get_port_mixer,
  20157. msm_routing_put_port_mixer),
  20158. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20159. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20160. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20161. msm_routing_get_port_mixer,
  20162. msm_routing_put_port_mixer),
  20163. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20164. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20165. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20166. msm_routing_get_port_mixer,
  20167. msm_routing_put_port_mixer),
  20168. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20169. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20170. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20171. msm_routing_get_port_mixer,
  20172. msm_routing_put_port_mixer),
  20173. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20174. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20175. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20176. msm_routing_get_port_mixer,
  20177. msm_routing_put_port_mixer),
  20178. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20179. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20180. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20181. msm_routing_get_port_mixer,
  20182. msm_routing_put_port_mixer),
  20183. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20184. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20185. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20186. msm_routing_get_port_mixer,
  20187. msm_routing_put_port_mixer),
  20188. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20189. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20190. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20191. msm_routing_get_port_mixer,
  20192. msm_routing_put_port_mixer),
  20193. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20194. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20195. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20196. msm_routing_get_port_mixer,
  20197. msm_routing_put_port_mixer),
  20198. };
  20199. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20200. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20201. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20202. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20203. msm_routing_get_port_mixer,
  20204. msm_routing_put_port_mixer),
  20205. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20206. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20207. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20208. msm_routing_get_port_mixer,
  20209. msm_routing_put_port_mixer),
  20210. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20211. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20212. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20213. msm_routing_get_port_mixer,
  20214. msm_routing_put_port_mixer),
  20215. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20216. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20217. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20218. msm_routing_get_port_mixer,
  20219. msm_routing_put_port_mixer),
  20220. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20221. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20222. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20223. msm_routing_get_port_mixer,
  20224. msm_routing_put_port_mixer),
  20225. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20226. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20227. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20228. msm_routing_get_port_mixer,
  20229. msm_routing_put_port_mixer),
  20230. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20231. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20232. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20233. msm_routing_get_port_mixer,
  20234. msm_routing_put_port_mixer),
  20235. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20236. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20237. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20238. msm_routing_get_port_mixer,
  20239. msm_routing_put_port_mixer),
  20240. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20242. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20243. msm_routing_get_port_mixer,
  20244. msm_routing_put_port_mixer),
  20245. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20246. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20247. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20248. msm_routing_get_port_mixer,
  20249. msm_routing_put_port_mixer),
  20250. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20251. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20252. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20253. msm_routing_get_port_mixer,
  20254. msm_routing_put_port_mixer),
  20255. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20256. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20257. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20258. msm_routing_get_port_mixer,
  20259. msm_routing_put_port_mixer),
  20260. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20262. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20263. msm_routing_get_port_mixer,
  20264. msm_routing_put_port_mixer),
  20265. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20266. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20267. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20268. msm_routing_get_port_mixer,
  20269. msm_routing_put_port_mixer),
  20270. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20272. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20273. msm_routing_get_port_mixer,
  20274. msm_routing_put_port_mixer),
  20275. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20276. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20277. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20278. msm_routing_get_port_mixer,
  20279. msm_routing_put_port_mixer),
  20280. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20281. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20282. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20283. msm_routing_get_port_mixer,
  20284. msm_routing_put_port_mixer),
  20285. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20286. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20287. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20288. msm_routing_get_port_mixer,
  20289. msm_routing_put_port_mixer),
  20290. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20292. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20293. msm_routing_get_port_mixer,
  20294. msm_routing_put_port_mixer),
  20295. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20296. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20297. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20298. msm_routing_get_port_mixer,
  20299. msm_routing_put_port_mixer),
  20300. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20301. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20302. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20303. msm_routing_get_port_mixer,
  20304. msm_routing_put_port_mixer),
  20305. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20306. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20307. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20308. msm_routing_get_port_mixer,
  20309. msm_routing_put_port_mixer),
  20310. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20311. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20312. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20313. msm_routing_get_port_mixer,
  20314. msm_routing_put_port_mixer),
  20315. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20316. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20317. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20318. msm_routing_get_port_mixer,
  20319. msm_routing_put_port_mixer),
  20320. };
  20321. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20322. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20323. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20324. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20325. msm_routing_get_port_mixer,
  20326. msm_routing_put_port_mixer),
  20327. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20328. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20329. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20330. msm_routing_get_port_mixer,
  20331. msm_routing_put_port_mixer),
  20332. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20333. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20334. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20335. msm_routing_get_port_mixer,
  20336. msm_routing_put_port_mixer),
  20337. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20338. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20339. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20340. msm_routing_get_port_mixer,
  20341. msm_routing_put_port_mixer),
  20342. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20343. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20344. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20345. msm_routing_get_port_mixer,
  20346. msm_routing_put_port_mixer),
  20347. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20348. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20349. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20350. msm_routing_get_port_mixer,
  20351. msm_routing_put_port_mixer),
  20352. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20354. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20355. msm_routing_get_port_mixer,
  20356. msm_routing_put_port_mixer),
  20357. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20358. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20359. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20360. msm_routing_get_port_mixer,
  20361. msm_routing_put_port_mixer),
  20362. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20364. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20365. msm_routing_get_port_mixer,
  20366. msm_routing_put_port_mixer),
  20367. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20368. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20369. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20370. msm_routing_get_port_mixer,
  20371. msm_routing_put_port_mixer),
  20372. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20373. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20374. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20375. msm_routing_get_port_mixer,
  20376. msm_routing_put_port_mixer),
  20377. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20378. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20379. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20380. msm_routing_get_port_mixer,
  20381. msm_routing_put_port_mixer),
  20382. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20384. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20385. msm_routing_get_port_mixer,
  20386. msm_routing_put_port_mixer),
  20387. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20388. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20389. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20390. msm_routing_get_port_mixer,
  20391. msm_routing_put_port_mixer),
  20392. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20393. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20394. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20395. msm_routing_get_port_mixer,
  20396. msm_routing_put_port_mixer),
  20397. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20398. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20399. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20400. msm_routing_get_port_mixer,
  20401. msm_routing_put_port_mixer),
  20402. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20404. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20405. msm_routing_get_port_mixer,
  20406. msm_routing_put_port_mixer),
  20407. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20408. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20409. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20410. msm_routing_get_port_mixer,
  20411. msm_routing_put_port_mixer),
  20412. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20413. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20414. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20415. msm_routing_get_port_mixer,
  20416. msm_routing_put_port_mixer),
  20417. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20418. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20419. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20420. msm_routing_get_port_mixer,
  20421. msm_routing_put_port_mixer),
  20422. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20423. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20424. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20425. msm_routing_get_port_mixer,
  20426. msm_routing_put_port_mixer),
  20427. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20428. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20429. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20430. msm_routing_get_port_mixer,
  20431. msm_routing_put_port_mixer),
  20432. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20434. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20435. msm_routing_get_port_mixer,
  20436. msm_routing_put_port_mixer),
  20437. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20438. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20439. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20440. msm_routing_get_port_mixer,
  20441. msm_routing_put_port_mixer),
  20442. };
  20443. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20444. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20445. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20446. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20447. msm_routing_get_port_mixer,
  20448. msm_routing_put_port_mixer),
  20449. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20450. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20451. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20452. msm_routing_get_port_mixer,
  20453. msm_routing_put_port_mixer),
  20454. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20455. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20456. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20457. msm_routing_get_port_mixer,
  20458. msm_routing_put_port_mixer),
  20459. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20460. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20461. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20462. msm_routing_get_port_mixer,
  20463. msm_routing_put_port_mixer),
  20464. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20465. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20466. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20467. msm_routing_get_port_mixer,
  20468. msm_routing_put_port_mixer),
  20469. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20470. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20471. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20472. msm_routing_get_port_mixer,
  20473. msm_routing_put_port_mixer),
  20474. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20475. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20476. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20477. msm_routing_get_port_mixer,
  20478. msm_routing_put_port_mixer),
  20479. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20480. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20481. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20482. msm_routing_get_port_mixer,
  20483. msm_routing_put_port_mixer),
  20484. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20485. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20486. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20487. msm_routing_get_port_mixer,
  20488. msm_routing_put_port_mixer),
  20489. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20490. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20491. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20492. msm_routing_get_port_mixer,
  20493. msm_routing_put_port_mixer),
  20494. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20495. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20496. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20497. msm_routing_get_port_mixer,
  20498. msm_routing_put_port_mixer),
  20499. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20500. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20501. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20502. msm_routing_get_port_mixer,
  20503. msm_routing_put_port_mixer),
  20504. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20505. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20506. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20507. msm_routing_get_port_mixer,
  20508. msm_routing_put_port_mixer),
  20509. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20510. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20511. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20512. msm_routing_get_port_mixer,
  20513. msm_routing_put_port_mixer),
  20514. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20515. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20516. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20517. msm_routing_get_port_mixer,
  20518. msm_routing_put_port_mixer),
  20519. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20520. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20521. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20522. msm_routing_get_port_mixer,
  20523. msm_routing_put_port_mixer),
  20524. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20525. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20526. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20527. msm_routing_get_port_mixer,
  20528. msm_routing_put_port_mixer),
  20529. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20530. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20531. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20532. msm_routing_get_port_mixer,
  20533. msm_routing_put_port_mixer),
  20534. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20535. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20536. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20537. msm_routing_get_port_mixer,
  20538. msm_routing_put_port_mixer),
  20539. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20540. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20541. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20542. msm_routing_get_port_mixer,
  20543. msm_routing_put_port_mixer),
  20544. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20545. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20546. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20547. msm_routing_get_port_mixer,
  20548. msm_routing_put_port_mixer),
  20549. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20550. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20551. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20552. msm_routing_get_port_mixer,
  20553. msm_routing_put_port_mixer),
  20554. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20555. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20556. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20557. msm_routing_get_port_mixer,
  20558. msm_routing_put_port_mixer),
  20559. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20560. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20561. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20562. msm_routing_get_port_mixer,
  20563. msm_routing_put_port_mixer),
  20564. };
  20565. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20566. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20567. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20568. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20569. msm_routing_get_port_mixer,
  20570. msm_routing_put_port_mixer),
  20571. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20572. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20573. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20574. msm_routing_get_port_mixer,
  20575. msm_routing_put_port_mixer),
  20576. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20577. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20578. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20579. msm_routing_get_port_mixer,
  20580. msm_routing_put_port_mixer),
  20581. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20582. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20583. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20584. msm_routing_get_port_mixer,
  20585. msm_routing_put_port_mixer),
  20586. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20587. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20588. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20589. msm_routing_get_port_mixer,
  20590. msm_routing_put_port_mixer),
  20591. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20592. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20593. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20594. msm_routing_get_port_mixer,
  20595. msm_routing_put_port_mixer),
  20596. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20597. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20598. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20599. msm_routing_get_port_mixer,
  20600. msm_routing_put_port_mixer),
  20601. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20602. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20603. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20604. msm_routing_get_port_mixer,
  20605. msm_routing_put_port_mixer),
  20606. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20607. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20608. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20609. msm_routing_get_port_mixer,
  20610. msm_routing_put_port_mixer),
  20611. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20612. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20613. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20614. msm_routing_get_port_mixer,
  20615. msm_routing_put_port_mixer),
  20616. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20617. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20618. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20619. msm_routing_get_port_mixer,
  20620. msm_routing_put_port_mixer),
  20621. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20622. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20623. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20624. msm_routing_get_port_mixer,
  20625. msm_routing_put_port_mixer),
  20626. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20627. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20628. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20629. msm_routing_get_port_mixer,
  20630. msm_routing_put_port_mixer),
  20631. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20632. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20633. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20634. msm_routing_get_port_mixer,
  20635. msm_routing_put_port_mixer),
  20636. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20637. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20638. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20639. msm_routing_get_port_mixer,
  20640. msm_routing_put_port_mixer),
  20641. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20642. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20643. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20644. msm_routing_get_port_mixer,
  20645. msm_routing_put_port_mixer),
  20646. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20648. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20649. msm_routing_get_port_mixer,
  20650. msm_routing_put_port_mixer),
  20651. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20652. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20653. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20654. msm_routing_get_port_mixer,
  20655. msm_routing_put_port_mixer),
  20656. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20657. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20658. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20659. msm_routing_get_port_mixer,
  20660. msm_routing_put_port_mixer),
  20661. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20662. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20663. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20664. msm_routing_get_port_mixer,
  20665. msm_routing_put_port_mixer),
  20666. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20667. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20668. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20669. msm_routing_get_port_mixer,
  20670. msm_routing_put_port_mixer),
  20671. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20672. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20673. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20674. msm_routing_get_port_mixer,
  20675. msm_routing_put_port_mixer),
  20676. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20677. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20678. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20679. msm_routing_get_port_mixer,
  20680. msm_routing_put_port_mixer),
  20681. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20682. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20683. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20684. msm_routing_get_port_mixer,
  20685. msm_routing_put_port_mixer),
  20686. };
  20687. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20688. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20689. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20690. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20691. msm_routing_get_port_mixer,
  20692. msm_routing_put_port_mixer),
  20693. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20694. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20695. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20696. msm_routing_get_port_mixer,
  20697. msm_routing_put_port_mixer),
  20698. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20699. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20700. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20701. msm_routing_get_port_mixer,
  20702. msm_routing_put_port_mixer),
  20703. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20704. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20705. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20706. msm_routing_get_port_mixer,
  20707. msm_routing_put_port_mixer),
  20708. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20709. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20710. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20711. msm_routing_get_port_mixer,
  20712. msm_routing_put_port_mixer),
  20713. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20714. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20715. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20716. msm_routing_get_port_mixer,
  20717. msm_routing_put_port_mixer),
  20718. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20719. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20720. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20721. msm_routing_get_port_mixer,
  20722. msm_routing_put_port_mixer),
  20723. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20724. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20725. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20726. msm_routing_get_port_mixer,
  20727. msm_routing_put_port_mixer),
  20728. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20729. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20730. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20731. msm_routing_get_port_mixer,
  20732. msm_routing_put_port_mixer),
  20733. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20734. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20735. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20736. msm_routing_get_port_mixer,
  20737. msm_routing_put_port_mixer),
  20738. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20739. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20740. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20741. msm_routing_get_port_mixer,
  20742. msm_routing_put_port_mixer),
  20743. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20744. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20745. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20746. msm_routing_get_port_mixer,
  20747. msm_routing_put_port_mixer),
  20748. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20749. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20750. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20751. msm_routing_get_port_mixer,
  20752. msm_routing_put_port_mixer),
  20753. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20754. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20755. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20756. msm_routing_get_port_mixer,
  20757. msm_routing_put_port_mixer),
  20758. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20759. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20760. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20761. msm_routing_get_port_mixer,
  20762. msm_routing_put_port_mixer),
  20763. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20764. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20765. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20766. msm_routing_get_port_mixer,
  20767. msm_routing_put_port_mixer),
  20768. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20769. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20770. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20771. msm_routing_get_port_mixer,
  20772. msm_routing_put_port_mixer),
  20773. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20774. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20775. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20776. msm_routing_get_port_mixer,
  20777. msm_routing_put_port_mixer),
  20778. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20779. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20780. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20781. msm_routing_get_port_mixer,
  20782. msm_routing_put_port_mixer),
  20783. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20784. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20785. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20786. msm_routing_get_port_mixer,
  20787. msm_routing_put_port_mixer),
  20788. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20789. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20790. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20791. msm_routing_get_port_mixer,
  20792. msm_routing_put_port_mixer),
  20793. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20794. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20795. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20796. msm_routing_get_port_mixer,
  20797. msm_routing_put_port_mixer),
  20798. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20799. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20800. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20801. msm_routing_get_port_mixer,
  20802. msm_routing_put_port_mixer),
  20803. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20804. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20805. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20806. msm_routing_get_port_mixer,
  20807. msm_routing_put_port_mixer),
  20808. };
  20809. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20810. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20811. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20812. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20813. msm_routing_get_port_mixer,
  20814. msm_routing_put_port_mixer),
  20815. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20816. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20817. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20818. msm_routing_get_port_mixer,
  20819. msm_routing_put_port_mixer),
  20820. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20821. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20822. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20823. msm_routing_get_port_mixer,
  20824. msm_routing_put_port_mixer),
  20825. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20826. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20827. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20828. msm_routing_get_port_mixer,
  20829. msm_routing_put_port_mixer),
  20830. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20831. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20832. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20833. msm_routing_get_port_mixer,
  20834. msm_routing_put_port_mixer),
  20835. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20836. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20837. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20838. msm_routing_get_port_mixer,
  20839. msm_routing_put_port_mixer),
  20840. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20841. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20842. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20843. msm_routing_get_port_mixer,
  20844. msm_routing_put_port_mixer),
  20845. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20846. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20847. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20848. msm_routing_get_port_mixer,
  20849. msm_routing_put_port_mixer),
  20850. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20851. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20852. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20853. msm_routing_get_port_mixer,
  20854. msm_routing_put_port_mixer),
  20855. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20856. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20857. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20858. msm_routing_get_port_mixer,
  20859. msm_routing_put_port_mixer),
  20860. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20861. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20862. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20863. msm_routing_get_port_mixer,
  20864. msm_routing_put_port_mixer),
  20865. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20866. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20867. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20868. msm_routing_get_port_mixer,
  20869. msm_routing_put_port_mixer),
  20870. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20871. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20872. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20873. msm_routing_get_port_mixer,
  20874. msm_routing_put_port_mixer),
  20875. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20876. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20877. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20878. msm_routing_get_port_mixer,
  20879. msm_routing_put_port_mixer),
  20880. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20881. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20882. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20883. msm_routing_get_port_mixer,
  20884. msm_routing_put_port_mixer),
  20885. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20886. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20887. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20888. msm_routing_get_port_mixer,
  20889. msm_routing_put_port_mixer),
  20890. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20891. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20892. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20893. msm_routing_get_port_mixer,
  20894. msm_routing_put_port_mixer),
  20895. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20896. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20897. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20898. msm_routing_get_port_mixer,
  20899. msm_routing_put_port_mixer),
  20900. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20901. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20902. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20903. msm_routing_get_port_mixer,
  20904. msm_routing_put_port_mixer),
  20905. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20906. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20907. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20908. msm_routing_get_port_mixer,
  20909. msm_routing_put_port_mixer),
  20910. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20911. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20912. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20913. msm_routing_get_port_mixer,
  20914. msm_routing_put_port_mixer),
  20915. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20916. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20917. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20918. msm_routing_get_port_mixer,
  20919. msm_routing_put_port_mixer),
  20920. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20921. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20922. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20923. msm_routing_get_port_mixer,
  20924. msm_routing_put_port_mixer),
  20925. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20926. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20927. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20928. msm_routing_get_port_mixer,
  20929. msm_routing_put_port_mixer),
  20930. };
  20931. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20932. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20933. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20934. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20935. msm_routing_get_port_mixer,
  20936. msm_routing_put_port_mixer),
  20937. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20938. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20939. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20940. msm_routing_get_port_mixer,
  20941. msm_routing_put_port_mixer),
  20942. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20943. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20944. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20945. msm_routing_get_port_mixer,
  20946. msm_routing_put_port_mixer),
  20947. };
  20948. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20949. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20950. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20951. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20952. msm_routing_put_port_mixer),
  20953. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20954. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20955. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20956. msm_routing_put_port_mixer),
  20957. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20958. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20959. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20960. msm_routing_put_port_mixer),
  20961. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20962. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20963. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20964. msm_routing_put_port_mixer),
  20965. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20966. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20967. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20968. msm_routing_put_port_mixer),
  20969. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20970. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20971. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20972. msm_routing_put_port_mixer),
  20973. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20974. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20975. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20976. msm_routing_put_port_mixer),
  20977. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20978. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20979. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20980. msm_routing_put_port_mixer),
  20981. };
  20982. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20983. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20984. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20985. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20986. msm_routing_put_port_mixer),
  20987. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20988. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20989. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20990. msm_routing_put_port_mixer),
  20991. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20992. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20993. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20994. msm_routing_put_port_mixer),
  20995. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20996. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20997. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20998. msm_routing_put_port_mixer),
  20999. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21000. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21001. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21002. msm_routing_put_port_mixer),
  21003. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21004. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21005. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21006. msm_routing_put_port_mixer),
  21007. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21008. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21009. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21010. msm_routing_put_port_mixer),
  21011. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21012. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21013. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21014. msm_routing_put_port_mixer),
  21015. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21016. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21017. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21018. msm_routing_put_port_mixer),
  21019. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21020. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21021. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21022. msm_routing_put_port_mixer),
  21023. };
  21024. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21025. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21026. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21027. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21028. msm_routing_put_listen_mixer),
  21029. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21030. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21031. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21032. msm_routing_put_listen_mixer),
  21033. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21034. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21035. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21036. msm_routing_put_listen_mixer),
  21037. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21038. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21039. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21040. msm_routing_put_listen_mixer),
  21041. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21042. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21043. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21044. msm_routing_put_listen_mixer),
  21045. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21046. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21047. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21048. msm_routing_put_listen_mixer),
  21049. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21050. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21051. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21052. msm_routing_put_listen_mixer),
  21053. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21054. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21055. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21056. msm_routing_put_listen_mixer),
  21057. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21058. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21059. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21060. msm_routing_put_listen_mixer),
  21061. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21062. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21063. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21064. msm_routing_put_listen_mixer),
  21065. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21066. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21067. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21068. msm_routing_put_listen_mixer),
  21069. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21070. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21071. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21072. msm_routing_put_listen_mixer),
  21073. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21074. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21075. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21076. msm_routing_put_listen_mixer),
  21077. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21078. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21079. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21080. msm_routing_put_listen_mixer),
  21081. };
  21082. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21083. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21084. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21085. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21086. msm_routing_put_listen_mixer),
  21087. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21088. SND_SOC_NOPM,
  21089. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21090. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21091. msm_routing_put_listen_mixer),
  21092. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21093. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21094. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21095. msm_routing_put_listen_mixer),
  21096. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21097. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21098. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21099. msm_routing_put_listen_mixer),
  21100. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21101. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21102. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21103. msm_routing_put_listen_mixer),
  21104. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21105. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21106. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21107. msm_routing_put_listen_mixer),
  21108. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21109. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21110. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21111. msm_routing_put_listen_mixer),
  21112. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21113. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21114. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21115. msm_routing_put_listen_mixer),
  21116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21118. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21119. msm_routing_put_listen_mixer),
  21120. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21121. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21122. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21123. msm_routing_put_listen_mixer),
  21124. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21125. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21126. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21127. msm_routing_put_listen_mixer),
  21128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21130. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21131. msm_routing_put_listen_mixer),
  21132. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21133. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21134. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21135. msm_routing_put_listen_mixer),
  21136. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21137. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21138. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21139. msm_routing_put_listen_mixer),
  21140. };
  21141. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21142. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21143. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21144. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21145. msm_routing_put_listen_mixer),
  21146. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21147. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21148. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21149. msm_routing_put_listen_mixer),
  21150. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21151. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21152. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21153. msm_routing_put_listen_mixer),
  21154. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21155. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21156. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21157. msm_routing_put_listen_mixer),
  21158. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21159. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21160. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21161. msm_routing_put_listen_mixer),
  21162. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21163. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21164. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21165. msm_routing_put_listen_mixer),
  21166. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21167. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21168. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21169. msm_routing_put_listen_mixer),
  21170. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21171. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21172. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21173. msm_routing_put_listen_mixer),
  21174. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21175. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21176. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21177. msm_routing_put_listen_mixer),
  21178. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21179. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21180. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21181. msm_routing_put_listen_mixer),
  21182. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21183. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21184. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21185. msm_routing_put_listen_mixer),
  21186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21188. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21189. msm_routing_put_listen_mixer),
  21190. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21191. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21192. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21193. msm_routing_put_listen_mixer),
  21194. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21195. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21196. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21197. msm_routing_put_listen_mixer),
  21198. };
  21199. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21200. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21201. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21202. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21203. msm_routing_put_listen_mixer),
  21204. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21205. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21206. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21207. msm_routing_put_listen_mixer),
  21208. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21209. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21210. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21211. msm_routing_put_listen_mixer),
  21212. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21213. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21214. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21215. msm_routing_put_listen_mixer),
  21216. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21217. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21218. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21219. msm_routing_put_listen_mixer),
  21220. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21221. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21222. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21223. msm_routing_put_listen_mixer),
  21224. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21226. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21227. msm_routing_put_listen_mixer),
  21228. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21229. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21230. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21231. msm_routing_put_listen_mixer),
  21232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21234. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21235. msm_routing_put_listen_mixer),
  21236. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21237. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21238. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21239. msm_routing_put_listen_mixer),
  21240. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21241. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21242. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21243. msm_routing_put_listen_mixer),
  21244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21246. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21247. msm_routing_put_listen_mixer),
  21248. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21249. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21250. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21251. msm_routing_put_listen_mixer),
  21252. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21253. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21254. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21255. msm_routing_put_listen_mixer),
  21256. };
  21257. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21258. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21259. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21260. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21261. msm_routing_put_listen_mixer),
  21262. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21263. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21264. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21265. msm_routing_put_listen_mixer),
  21266. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21267. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21268. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21269. msm_routing_put_listen_mixer),
  21270. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21271. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21272. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21273. msm_routing_put_listen_mixer),
  21274. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21275. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21276. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21277. msm_routing_put_listen_mixer),
  21278. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21279. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21280. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21281. msm_routing_put_listen_mixer),
  21282. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21283. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21284. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21285. msm_routing_put_listen_mixer),
  21286. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21287. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21288. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21289. msm_routing_put_listen_mixer),
  21290. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21291. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21292. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21293. msm_routing_put_listen_mixer),
  21294. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21295. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21296. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21297. msm_routing_put_listen_mixer),
  21298. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21299. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21300. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21301. msm_routing_put_listen_mixer),
  21302. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21303. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21304. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21305. msm_routing_put_listen_mixer),
  21306. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21307. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21308. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21309. msm_routing_put_listen_mixer),
  21310. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21311. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21312. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21313. msm_routing_put_listen_mixer),
  21314. };
  21315. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21316. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21317. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21318. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21319. msm_routing_put_listen_mixer),
  21320. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21321. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21322. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21323. msm_routing_put_listen_mixer),
  21324. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21325. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21326. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21327. msm_routing_put_listen_mixer),
  21328. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21329. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21330. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21331. msm_routing_put_listen_mixer),
  21332. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21333. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21334. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21335. msm_routing_put_listen_mixer),
  21336. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21337. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21338. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21339. msm_routing_put_listen_mixer),
  21340. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21341. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21342. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21343. msm_routing_put_listen_mixer),
  21344. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21345. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21346. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21347. msm_routing_put_listen_mixer),
  21348. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21349. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21350. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21351. msm_routing_put_listen_mixer),
  21352. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21353. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21354. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21355. msm_routing_put_listen_mixer),
  21356. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21357. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21358. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21359. msm_routing_put_listen_mixer),
  21360. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21361. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21362. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21363. msm_routing_put_listen_mixer),
  21364. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21365. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21366. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21367. msm_routing_put_listen_mixer),
  21368. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21369. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21370. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21371. msm_routing_put_listen_mixer),
  21372. };
  21373. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21374. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21375. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21376. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21377. msm_routing_put_listen_mixer),
  21378. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21379. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21380. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21381. msm_routing_put_listen_mixer),
  21382. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21383. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21384. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21385. msm_routing_put_listen_mixer),
  21386. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21387. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21388. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21389. msm_routing_put_listen_mixer),
  21390. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21391. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21392. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21393. msm_routing_put_listen_mixer),
  21394. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21395. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21396. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21397. msm_routing_put_listen_mixer),
  21398. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21399. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21400. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21401. msm_routing_put_listen_mixer),
  21402. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21403. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21404. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21405. msm_routing_put_listen_mixer),
  21406. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21407. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21408. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21409. msm_routing_put_listen_mixer),
  21410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21412. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21413. msm_routing_put_listen_mixer),
  21414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21416. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21417. msm_routing_put_listen_mixer),
  21418. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21419. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21420. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21421. msm_routing_put_listen_mixer),
  21422. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21423. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21424. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21425. msm_routing_put_listen_mixer),
  21426. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21427. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21428. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21429. msm_routing_put_listen_mixer),
  21430. };
  21431. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21432. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21433. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21434. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21435. msm_routing_put_listen_mixer),
  21436. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21437. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21438. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21439. msm_routing_put_listen_mixer),
  21440. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21441. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21442. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21443. msm_routing_put_listen_mixer),
  21444. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21445. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21446. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21447. msm_routing_put_listen_mixer),
  21448. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21449. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21450. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21451. msm_routing_put_listen_mixer),
  21452. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21453. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21454. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21455. msm_routing_put_listen_mixer),
  21456. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21457. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21458. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21459. msm_routing_put_listen_mixer),
  21460. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21461. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21462. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21463. msm_routing_put_listen_mixer),
  21464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21466. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21467. msm_routing_put_listen_mixer),
  21468. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21469. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21470. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21471. msm_routing_put_listen_mixer),
  21472. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21473. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21474. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21475. msm_routing_put_listen_mixer),
  21476. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21477. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21478. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21479. msm_routing_put_listen_mixer),
  21480. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21481. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21482. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21483. msm_routing_put_listen_mixer),
  21484. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21485. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21486. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21487. msm_routing_put_listen_mixer),
  21488. };
  21489. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21490. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21491. 0, 1, 0, msm_routing_get_switch_mixer,
  21492. msm_routing_put_switch_mixer);
  21493. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21494. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21495. 0, 1, 0, msm_routing_get_switch_mixer,
  21496. msm_routing_put_switch_mixer);
  21497. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21498. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21499. 0, 1, 0, msm_routing_get_switch_mixer,
  21500. msm_routing_put_switch_mixer);
  21501. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21502. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21503. 0, 1, 0, msm_routing_get_switch_mixer,
  21504. msm_routing_put_switch_mixer);
  21505. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21506. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21507. 0, 1, 0, msm_routing_get_switch_mixer,
  21508. msm_routing_put_switch_mixer);
  21509. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21510. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21511. 0, 1, 0, msm_routing_get_switch_mixer,
  21512. msm_routing_put_switch_mixer);
  21513. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21514. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21515. 0, 1, 0, msm_routing_get_switch_mixer,
  21516. msm_routing_put_switch_mixer);
  21517. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21518. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21519. 0, 1, 0, msm_routing_get_switch_mixer,
  21520. msm_routing_put_switch_mixer);
  21521. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21522. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21523. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21524. msm_routing_put_fm_pcmrx_switch_mixer);
  21525. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21526. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21527. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21528. msm_routing_put_int0_mi2s_switch_mixer);
  21529. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21530. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21531. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21532. msm_routing_put_int4_mi2s_switch_mixer);
  21533. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21534. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21535. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21536. msm_routing_put_pri_mi2s_switch_mixer);
  21537. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21538. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21539. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21540. msm_routing_put_sec_mi2s_switch_mixer);
  21541. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21542. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21543. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21544. msm_routing_put_tert_mi2s_switch_mixer);
  21545. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21546. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21547. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21548. msm_routing_put_quat_mi2s_switch_mixer);
  21549. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21550. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21551. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21552. msm_routing_put_quin_mi2s_switch_mixer);
  21553. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21554. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21555. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21556. msm_routing_put_sen_mi2s_switch_mixer);
  21557. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21558. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21559. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21560. msm_routing_put_hfp_switch_mixer);
  21561. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21562. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21563. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21564. msm_routing_put_hfp_switch_mixer);
  21565. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21566. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21567. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21568. msm_routing_put_hfp_switch_mixer);
  21569. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21570. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21571. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21572. msm_routing_put_hfp_switch_mixer);
  21573. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21574. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21575. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21576. msm_routing_put_usb_switch_mixer);
  21577. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21578. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21579. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21580. msm_routing_a2dp_switch_mixer_put);
  21581. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21582. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21583. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21584. msm_routing_sco_switch_mixer_put);
  21585. static const struct soc_enum lsm_port_enum =
  21586. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21587. static const char * const lsm_func_text[] = {
  21588. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21589. };
  21590. static const struct soc_enum lsm_func_enum =
  21591. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21592. static const struct snd_kcontrol_new lsm_controls[] = {
  21593. /* kcontrol of lsm_function */
  21594. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21595. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21596. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21597. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21598. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21599. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21600. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21601. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21602. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21603. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21604. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21605. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21606. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21607. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21608. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21609. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21610. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21611. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21612. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21613. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21614. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21615. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21616. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21617. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21618. /* kcontrol of lsm_port */
  21619. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21620. msm_routing_lsm_port_get,
  21621. msm_routing_lsm_port_put),
  21622. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21623. msm_routing_lsm_port_get,
  21624. msm_routing_lsm_port_put),
  21625. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21626. msm_routing_lsm_port_get,
  21627. msm_routing_lsm_port_put),
  21628. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21629. msm_routing_lsm_port_get,
  21630. msm_routing_lsm_port_put),
  21631. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21632. msm_routing_lsm_port_get,
  21633. msm_routing_lsm_port_put),
  21634. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21635. msm_routing_lsm_port_get,
  21636. msm_routing_lsm_port_put),
  21637. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21638. msm_routing_lsm_port_get,
  21639. msm_routing_lsm_port_put),
  21640. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21641. msm_routing_lsm_port_get,
  21642. msm_routing_lsm_port_put),
  21643. };
  21644. static const char * const aanc_slim_0_rx_text[] = {
  21645. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21646. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21647. };
  21648. static const struct soc_enum aanc_slim_0_rx_enum =
  21649. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21650. aanc_slim_0_rx_text);
  21651. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21652. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21653. msm_routing_slim_0_rx_aanc_mux_get,
  21654. msm_routing_slim_0_rx_aanc_mux_put)
  21655. };
  21656. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21657. struct snd_ctl_elem_value *ucontrol)
  21658. {
  21659. ucontrol->value.integer.value[0] = aanc_level;
  21660. return 0;
  21661. }
  21662. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21663. struct snd_ctl_elem_value *ucontrol)
  21664. {
  21665. int ret = 0;
  21666. mutex_lock(&routing_lock);
  21667. aanc_level = ucontrol->value.integer.value[0];
  21668. pr_debug("%s: value: %ld\n",
  21669. __func__, ucontrol->value.integer.value[0]);
  21670. ret = afe_set_aanc_noise_level(aanc_level);
  21671. mutex_unlock(&routing_lock);
  21672. return ret;
  21673. }
  21674. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21675. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21676. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21677. };
  21678. static int msm_routing_get_stereo_to_custom_stereo_control(
  21679. struct snd_kcontrol *kcontrol,
  21680. struct snd_ctl_elem_value *ucontrol)
  21681. {
  21682. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21683. return 0;
  21684. }
  21685. static int msm_routing_put_stereo_to_custom_stereo_control(
  21686. struct snd_kcontrol *kcontrol,
  21687. struct snd_ctl_elem_value *ucontrol)
  21688. {
  21689. int flag = 0, i = 0, rc = 0, idx = 0;
  21690. int be_index = 0, port_id, topo_id;
  21691. unsigned int session_id = 0;
  21692. uint16_t op_FL_ip_FL_weight = 0;
  21693. uint16_t op_FL_ip_FR_weight = 0;
  21694. uint16_t op_FR_ip_FL_weight = 0;
  21695. uint16_t op_FR_ip_FR_weight = 0;
  21696. flag = ucontrol->value.integer.value[0];
  21697. pr_debug("%s E flag %d\n", __func__, flag);
  21698. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21699. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21700. __func__, is_custom_stereo_on, flag);
  21701. return 0;
  21702. }
  21703. is_custom_stereo_on = flag ? true : false;
  21704. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21705. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21706. port_id = msm_bedais[be_index].port_id;
  21707. if (!msm_bedais[be_index].active)
  21708. continue;
  21709. if ((port_id != SLIMBUS_0_RX) &&
  21710. (port_id != RT_PROXY_PORT_001_RX) &&
  21711. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21712. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21713. continue;
  21714. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21715. MSM_FRONTEND_DAI_MM_SIZE) {
  21716. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21717. LEGACY_PCM_MODE)
  21718. goto skip_send_custom_stereo;
  21719. session_id =
  21720. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21721. if (is_custom_stereo_on) {
  21722. op_FL_ip_FL_weight =
  21723. Q14_GAIN_ZERO_POINT_FIVE;
  21724. op_FL_ip_FR_weight =
  21725. Q14_GAIN_ZERO_POINT_FIVE;
  21726. op_FR_ip_FL_weight =
  21727. Q14_GAIN_ZERO_POINT_FIVE;
  21728. op_FR_ip_FR_weight =
  21729. Q14_GAIN_ZERO_POINT_FIVE;
  21730. } else {
  21731. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21732. op_FL_ip_FR_weight = 0;
  21733. op_FR_ip_FL_weight = 0;
  21734. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21735. }
  21736. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21737. unsigned long copp =
  21738. session_copp_map[i]
  21739. [SESSION_TYPE_RX][be_index];
  21740. if (!test_bit(idx, &copp))
  21741. goto skip_send_custom_stereo;
  21742. topo_id = adm_get_topology_for_port_copp_idx(
  21743. msm_bedais[be_index].port_id, idx);
  21744. if (topo_id < 0)
  21745. pr_debug("%s:Err:custom stereo topo %d",
  21746. __func__, topo_id);
  21747. pr_debug("idx %d\n", idx);
  21748. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21749. rc = msm_ds2_dap_set_custom_stereo_onoff
  21750. (msm_bedais[be_index].port_id,
  21751. idx, is_custom_stereo_on);
  21752. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21753. rc = dolby_dap_set_custom_stereo_onoff(
  21754. msm_bedais[be_index].port_id,
  21755. idx, is_custom_stereo_on);
  21756. else
  21757. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21758. (msm_bedais[be_index].port_id,
  21759. idx, session_id,
  21760. op_FL_ip_FL_weight,
  21761. op_FL_ip_FR_weight,
  21762. op_FR_ip_FL_weight,
  21763. op_FR_ip_FR_weight);
  21764. if (rc < 0)
  21765. skip_send_custom_stereo:
  21766. pr_err("%s: err setting custom stereo\n",
  21767. __func__);
  21768. }
  21769. }
  21770. }
  21771. return 0;
  21772. }
  21773. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21774. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21775. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21776. msm_routing_put_stereo_to_custom_stereo_control),
  21777. };
  21778. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21779. struct snd_ctl_elem_value *ucontrol)
  21780. {
  21781. return 0;
  21782. }
  21783. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21784. struct snd_ctl_elem_value *ucontrol)
  21785. {
  21786. int i = 0, j;
  21787. int num_app_types = ucontrol->value.integer.value[i++];
  21788. pr_debug("%s\n", __func__);
  21789. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21790. sizeof(struct msm_pcm_routing_app_type_data));
  21791. if (num_app_types > MAX_APP_TYPES) {
  21792. pr_err("%s: number of app types exceed the max supported\n",
  21793. __func__);
  21794. return -EINVAL;
  21795. }
  21796. for (j = 0; j < num_app_types; j++) {
  21797. app_type_cfg[j].app_type =
  21798. ucontrol->value.integer.value[i++];
  21799. app_type_cfg[j].sample_rate =
  21800. ucontrol->value.integer.value[i++];
  21801. app_type_cfg[j].bit_width =
  21802. ucontrol->value.integer.value[i++];
  21803. }
  21804. return 0;
  21805. }
  21806. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21807. struct snd_ctl_elem_value *ucontrol)
  21808. {
  21809. int j, fe_id, be_id, port_type;
  21810. int ret = 0;
  21811. unsigned long copp;
  21812. struct msm_pcm_routing_bdai_data *bedai;
  21813. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21814. SESSION_TYPE_RX;
  21815. int app_type = ucontrol->value.integer.value[1];
  21816. int gain = (ucontrol->value.integer.value[2] +
  21817. ucontrol->value.integer.value[3])/2;
  21818. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21819. MSM_AFE_PORT_TYPE_TX;
  21820. mutex_lock(&routing_lock);
  21821. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21822. if (is_be_dai_extproc(be_id))
  21823. continue;
  21824. bedai = &msm_bedais[be_id];
  21825. if (afe_get_port_type(bedai->port_id) != port_type)
  21826. continue;
  21827. if (!bedai->active)
  21828. continue;
  21829. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21830. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21831. continue;
  21832. if (app_type !=
  21833. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21834. continue;
  21835. copp = session_copp_map[fe_id][dir][be_id];
  21836. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21837. if (!test_bit(j, &copp))
  21838. continue;
  21839. ret |= adm_set_volume(bedai->port_id, j, gain);
  21840. }
  21841. }
  21842. }
  21843. mutex_unlock(&routing_lock);
  21844. return ret ? -EINVAL : 0;
  21845. }
  21846. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21847. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21848. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21849. msm_routing_put_app_type_cfg_control),
  21850. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21851. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21852. };
  21853. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21854. struct snd_ctl_elem_value *ucontrol)
  21855. {
  21856. int copp_idx, fe_id, be_id, port_type;
  21857. int ret = 0;
  21858. unsigned long copp;
  21859. struct msm_pcm_routing_bdai_data *bedai;
  21860. u8 *packed_params = NULL;
  21861. struct param_hdr_v3 param_hdr;
  21862. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21863. sizeof(uint32_t));
  21864. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21865. SESSION_TYPE_RX;
  21866. int app_type = ucontrol->value.integer.value[1];
  21867. int module_id = ucontrol->value.integer.value[2];
  21868. int instance_id = ucontrol->value.integer.value[3];
  21869. int param_id = ucontrol->value.integer.value[4];
  21870. int param_value = ucontrol->value.integer.value[5];
  21871. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21872. MSM_AFE_PORT_TYPE_TX;
  21873. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21874. __func__, app_type, module_id,
  21875. instance_id, param_id, param_value);
  21876. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21877. if (!packed_params)
  21878. return -ENOMEM;
  21879. memset(&param_hdr, 0, sizeof(param_hdr));
  21880. param_hdr.module_id = module_id;
  21881. param_hdr.instance_id = instance_id;
  21882. param_hdr.param_id = param_id;
  21883. param_hdr.param_size = sizeof(uint32_t);
  21884. packed_param_size = 0;
  21885. mutex_lock(&routing_lock);
  21886. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21887. if (is_be_dai_extproc(be_id))
  21888. continue;
  21889. bedai = &msm_bedais[be_id];
  21890. if (afe_get_port_type(bedai->port_id) != port_type)
  21891. continue;
  21892. if (!bedai->active)
  21893. continue;
  21894. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21895. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21896. continue;
  21897. if (app_type !=
  21898. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21899. continue;
  21900. copp = session_copp_map[fe_id][dir][be_id];
  21901. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21902. copp_idx++) {
  21903. if (!test_bit(copp_idx, &copp))
  21904. continue;
  21905. ret = q6common_pack_pp_params(packed_params,
  21906. &param_hdr,
  21907. (u8 *) &param_value,
  21908. &packed_param_size);
  21909. if (ret) {
  21910. pr_err("%s: Failed to pack params, error %d\n",
  21911. __func__, ret);
  21912. goto done;
  21913. }
  21914. ret = adm_set_pp_params(bedai->port_id,
  21915. copp_idx, NULL,
  21916. packed_params,
  21917. packed_param_size);
  21918. if (ret) {
  21919. pr_err("%s: Setting param failed with err=%d\n",
  21920. __func__, ret);
  21921. ret = -EINVAL;
  21922. goto done;
  21923. }
  21924. }
  21925. }
  21926. }
  21927. done:
  21928. mutex_unlock(&routing_lock);
  21929. kfree(packed_params);
  21930. return ret;
  21931. }
  21932. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21933. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21934. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21935. };
  21936. static int msm_routing_get_lsm_app_type_cfg_control(
  21937. struct snd_kcontrol *kcontrol,
  21938. struct snd_ctl_elem_value *ucontrol)
  21939. {
  21940. int shift = ((struct soc_multi_mixer_control *)
  21941. kcontrol->private_value)->shift;
  21942. int i = 0, j = 0;
  21943. mutex_lock(&routing_lock);
  21944. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21945. for (j = 0; j < num_app_cfg_types; ++j) {
  21946. ucontrol->value.integer.value[++i] =
  21947. lsm_app_type_cfg[j].app_type;
  21948. ucontrol->value.integer.value[++i] =
  21949. lsm_app_type_cfg[j].sample_rate;
  21950. ucontrol->value.integer.value[++i] =
  21951. lsm_app_type_cfg[j].bit_width;
  21952. if (shift == 1)
  21953. ucontrol->value.integer.value[++i] =
  21954. lsm_app_type_cfg[j].num_out_channels;
  21955. }
  21956. mutex_unlock(&routing_lock);
  21957. return 0;
  21958. }
  21959. static int msm_routing_put_lsm_app_type_cfg_control(
  21960. struct snd_kcontrol *kcontrol,
  21961. struct snd_ctl_elem_value *ucontrol)
  21962. {
  21963. int shift = ((struct soc_multi_mixer_control *)
  21964. kcontrol->private_value)->shift;
  21965. int i = 0, j;
  21966. mutex_lock(&routing_lock);
  21967. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21968. pr_err("%s: number of app types exceed the max supported\n",
  21969. __func__);
  21970. mutex_unlock(&routing_lock);
  21971. return -EINVAL;
  21972. }
  21973. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21974. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21975. sizeof(struct msm_pcm_routing_app_type_data));
  21976. for (j = 0; j < num_app_cfg_types; j++) {
  21977. lsm_app_type_cfg[j].app_type =
  21978. ucontrol->value.integer.value[i++];
  21979. lsm_app_type_cfg[j].sample_rate =
  21980. ucontrol->value.integer.value[i++];
  21981. lsm_app_type_cfg[j].bit_width =
  21982. ucontrol->value.integer.value[i++];
  21983. /* Shift of 1 indicates this is V2 mixer control */
  21984. if (shift == 1)
  21985. lsm_app_type_cfg[j].num_out_channels =
  21986. ucontrol->value.integer.value[i++];
  21987. }
  21988. mutex_unlock(&routing_lock);
  21989. return 0;
  21990. }
  21991. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21992. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21993. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21994. msm_routing_put_lsm_app_type_cfg_control),
  21995. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21996. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21997. msm_routing_put_lsm_app_type_cfg_control),
  21998. };
  21999. static int msm_routing_get_use_ds1_or_ds2_control(
  22000. struct snd_kcontrol *kcontrol,
  22001. struct snd_ctl_elem_value *ucontrol)
  22002. {
  22003. ucontrol->value.integer.value[0] = is_ds2_on;
  22004. return 0;
  22005. }
  22006. static int msm_routing_put_use_ds1_or_ds2_control(
  22007. struct snd_kcontrol *kcontrol,
  22008. struct snd_ctl_elem_value *ucontrol)
  22009. {
  22010. is_ds2_on = ucontrol->value.integer.value[0];
  22011. return 0;
  22012. }
  22013. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22014. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22015. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22016. msm_routing_put_use_ds1_or_ds2_control),
  22017. };
  22018. static int msm_routing_get_hifi_filter_control(
  22019. struct snd_kcontrol *kcontrol,
  22020. struct snd_ctl_elem_value *ucontrol)
  22021. {
  22022. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22023. return 0;
  22024. }
  22025. static int msm_routing_put_hifi_filter_control(
  22026. struct snd_kcontrol *kcontrol,
  22027. struct snd_ctl_elem_value *ucontrol)
  22028. {
  22029. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22030. return 0;
  22031. }
  22032. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22033. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22034. 1, 0, msm_routing_get_hifi_filter_control,
  22035. msm_routing_put_hifi_filter_control),
  22036. };
  22037. static int msm_routing_get_ffecns_freeze_event_control(
  22038. struct snd_kcontrol *kcontrol,
  22039. struct snd_ctl_elem_value *ucontrol)
  22040. {
  22041. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22042. return 0;
  22043. }
  22044. static int msm_routing_put_ffecns_freeze_event_control(
  22045. struct snd_kcontrol *kcontrol,
  22046. struct snd_ctl_elem_value *ucontrol)
  22047. {
  22048. int ret = -EINVAL;
  22049. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22050. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22051. if (ret)
  22052. pr_err("%s: failed to set ffecns imc event to%d\n",
  22053. __func__, ffecns_freeze_event);
  22054. return ret;
  22055. }
  22056. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22057. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22058. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22059. msm_routing_put_ffecns_freeze_event_control),
  22060. };
  22061. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22062. struct snd_ctl_elem_value *ucontrol) {
  22063. int rc = 0;
  22064. int be_idx = 0;
  22065. char *param_value;
  22066. int *update_param_value;
  22067. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22068. struct param_hdr_v3 param_hdr;
  22069. param_value = kzalloc(param_size, GFP_KERNEL);
  22070. if (!param_value)
  22071. return -ENOMEM;
  22072. memset(&param_hdr, 0, sizeof(param_hdr));
  22073. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22074. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22075. break;
  22076. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22077. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22078. param_hdr.instance_id = INSTANCE_ID_0;
  22079. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22080. param_hdr.param_size = param_size;
  22081. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22082. NULL, &param_hdr, (u8 *) param_value);
  22083. if (rc) {
  22084. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22085. kfree(param_value);
  22086. return -EINVAL;
  22087. }
  22088. update_param_value = (int *)param_value;
  22089. ucontrol->value.integer.value[0] = update_param_value[0];
  22090. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22091. __func__, update_param_value[0]);
  22092. }
  22093. kfree(param_value);
  22094. return 0;
  22095. }
  22096. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22097. struct snd_ctl_elem_value *ucontrol)
  22098. {
  22099. voc_session_id = ucontrol->value.integer.value[0];
  22100. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22101. return 0;
  22102. }
  22103. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22104. struct snd_ctl_elem_value *ucontrol)
  22105. {
  22106. ucontrol->value.integer.value[0] = voc_session_id;
  22107. return 0;
  22108. }
  22109. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22110. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22111. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22112. msm_voc_session_id_put),
  22113. };
  22114. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22115. struct snd_ctl_elem_info *uinfo)
  22116. {
  22117. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22118. uinfo->count = sizeof(struct sound_focus_param);
  22119. return 0;
  22120. }
  22121. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22122. struct snd_ctl_elem_value *ucontrol)
  22123. {
  22124. int ret = 0;
  22125. struct sound_focus_param soundFocusData;
  22126. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22127. sizeof(struct sound_focus_param));
  22128. ret = voc_set_sound_focus(soundFocusData);
  22129. if (ret) {
  22130. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22131. __func__, ret);
  22132. ret = -EINVAL;
  22133. }
  22134. return ret;
  22135. }
  22136. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22137. struct snd_ctl_elem_value *ucontrol)
  22138. {
  22139. int ret = 0;
  22140. struct sound_focus_param soundFocusData;
  22141. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22142. ret = voc_get_sound_focus(&soundFocusData);
  22143. if (ret) {
  22144. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22145. __func__, ret);
  22146. ret = -EINVAL;
  22147. goto done;
  22148. }
  22149. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22150. sizeof(struct sound_focus_param));
  22151. done:
  22152. return ret;
  22153. }
  22154. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22155. struct snd_ctl_elem_info *uinfo)
  22156. {
  22157. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22158. uinfo->count = sizeof(struct source_tracking_param);
  22159. return 0;
  22160. }
  22161. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22162. struct snd_ctl_elem_value *ucontrol)
  22163. {
  22164. int ret = 0;
  22165. struct source_tracking_param sourceTrackingData;
  22166. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22167. ret = voc_get_source_tracking(&sourceTrackingData);
  22168. if (ret) {
  22169. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22170. __func__, ret);
  22171. ret = -EINVAL;
  22172. goto done;
  22173. }
  22174. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22175. sizeof(struct source_tracking_param));
  22176. done:
  22177. return ret;
  22178. }
  22179. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22180. int *copp_idx)
  22181. {
  22182. int i, idx, be_idx;
  22183. int ret = 0;
  22184. unsigned long copp;
  22185. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22186. ret = q6audio_validate_port(port_id);
  22187. if (ret < 0) {
  22188. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22189. __func__, port_id, ret);
  22190. ret = -EINVAL;
  22191. goto done;
  22192. }
  22193. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22194. if (msm_bedais[be_idx].port_id == port_id)
  22195. break;
  22196. }
  22197. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22198. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22199. ret = -EINVAL;
  22200. goto done;
  22201. }
  22202. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22203. MSM_FRONTEND_DAI_MAX) {
  22204. if (!(is_mm_lsm_fe_id(i) &&
  22205. route_check_fe_id_adm_support(i)))
  22206. continue;
  22207. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22208. copp = session_copp_map[i]
  22209. [session_type][be_idx];
  22210. if (test_bit(idx, &copp))
  22211. break;
  22212. }
  22213. if (idx >= MAX_COPPS_PER_PORT)
  22214. continue;
  22215. else
  22216. break;
  22217. }
  22218. if (i >= MSM_FRONTEND_DAI_MAX) {
  22219. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22220. ret = -EINVAL;
  22221. goto done;
  22222. }
  22223. *copp_idx = idx;
  22224. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22225. done:
  22226. return ret;
  22227. }
  22228. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22229. const char *prefix, int *port_id)
  22230. {
  22231. int ret = 0;
  22232. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22233. /*
  22234. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22235. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22236. * and compare the string with the backend name to derive the port id.
  22237. */
  22238. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22239. "SLIMBUS_0")) {
  22240. *port_id = SLIMBUS_0_TX;
  22241. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22242. "TERT_MI2S")) {
  22243. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22244. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22245. "INT3_MI2S")) {
  22246. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22247. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22248. "VA_CDC_DMA_TX_0")) {
  22249. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22250. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22251. "TX_CDC_DMA_TX_3")) {
  22252. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22253. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22254. "QUIN_TDM_TX_0")) {
  22255. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22256. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22257. "PRIMARY_TDM")) {
  22258. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22259. } else {
  22260. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22261. __func__, kcontrol->id.name);
  22262. ret = -EINVAL;
  22263. goto done;
  22264. }
  22265. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22266. __func__, kcontrol->id.name, *port_id);
  22267. done:
  22268. return ret;
  22269. }
  22270. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22271. struct snd_ctl_elem_value *ucontrol)
  22272. {
  22273. int ret = 0;
  22274. struct sound_focus_param soundFocusData;
  22275. int port_id, copp_idx;
  22276. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22277. "Sound Focus Audio Tx ", &port_id);
  22278. if (ret != 0) {
  22279. pr_err("%s: Error in deriving port id, err=%d\n",
  22280. __func__, ret);
  22281. ret = -EINVAL;
  22282. goto done;
  22283. }
  22284. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22285. &copp_idx);
  22286. if (ret) {
  22287. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22288. __func__, port_id);
  22289. ret = -EINVAL;
  22290. goto done;
  22291. }
  22292. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22293. sizeof(struct sound_focus_param));
  22294. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22295. if (ret) {
  22296. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22297. __func__, ret);
  22298. ret = -EINVAL;
  22299. goto done;
  22300. }
  22301. done:
  22302. return ret;
  22303. }
  22304. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22305. struct snd_ctl_elem_value *ucontrol)
  22306. {
  22307. int ret = 0;
  22308. struct sound_focus_param soundFocusData;
  22309. int port_id, copp_idx;
  22310. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22311. "Sound Focus Audio Tx ", &port_id);
  22312. if (ret) {
  22313. pr_err("%s: Error in deriving port id, err=%d\n",
  22314. __func__, ret);
  22315. ret = -EINVAL;
  22316. goto done;
  22317. }
  22318. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22319. &copp_idx);
  22320. if (ret) {
  22321. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22322. __func__, port_id);
  22323. ret = -EINVAL;
  22324. goto done;
  22325. }
  22326. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22327. if (ret) {
  22328. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22329. __func__, ret);
  22330. ret = -EINVAL;
  22331. goto done;
  22332. }
  22333. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22334. sizeof(struct sound_focus_param));
  22335. done:
  22336. return ret;
  22337. }
  22338. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22339. struct snd_ctl_elem_value *ucontrol)
  22340. {
  22341. int ret = 0;
  22342. struct source_tracking_param sourceTrackingData;
  22343. int port_id, copp_idx;
  22344. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22345. "Source Tracking Audio Tx ", &port_id);
  22346. if (ret) {
  22347. pr_err("%s: Error in deriving port id, err=%d\n",
  22348. __func__, ret);
  22349. ret = -EINVAL;
  22350. goto done;
  22351. }
  22352. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22353. &copp_idx);
  22354. if (ret) {
  22355. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22356. __func__, port_id);
  22357. ret = -EINVAL;
  22358. goto done;
  22359. }
  22360. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22361. if (ret) {
  22362. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22363. __func__, ret);
  22364. ret = -EINVAL;
  22365. goto done;
  22366. }
  22367. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22368. sizeof(struct source_tracking_param));
  22369. done:
  22370. return ret;
  22371. }
  22372. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22373. struct snd_ctl_elem_info *uinfo)
  22374. {
  22375. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22376. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22377. return 0;
  22378. }
  22379. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22380. struct snd_ctl_elem_value *ucontrol)
  22381. {
  22382. int ret = 0;
  22383. struct doa_tracking_mon_param doa_tracking_data;
  22384. int port_id, copp_idx;
  22385. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22386. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22387. "Doa Tracking Monitor Listen ", &port_id);
  22388. if (ret) {
  22389. pr_err("%s: Error in deriving port id, err=%d\n",
  22390. __func__, ret);
  22391. ret = -EINVAL;
  22392. goto done;
  22393. }
  22394. /*
  22395. * If copp id exists for given port id, query adm to get doa data.
  22396. * Else query afe for doa tracking params.
  22397. * This is to support in cases where LSM directly connects to
  22398. * AFE for FFNS.
  22399. */
  22400. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22401. &copp_idx);
  22402. if (!ret)
  22403. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22404. &doa_tracking_data);
  22405. else
  22406. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22407. if (ret) {
  22408. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22409. __func__, ret);
  22410. ret = -EINVAL;
  22411. goto done;
  22412. }
  22413. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22414. sizeof(struct doa_tracking_mon_param));
  22415. done:
  22416. return ret;
  22417. }
  22418. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22419. {
  22420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22421. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22422. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22423. .info = msm_sound_focus_info,
  22424. .get = msm_voice_sound_focus_get,
  22425. .put = msm_voice_sound_focus_put,
  22426. },
  22427. {
  22428. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22430. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22431. .info = msm_source_tracking_info,
  22432. .get = msm_voice_source_tracking_get,
  22433. },
  22434. {
  22435. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22436. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22437. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22438. .info = msm_sound_focus_info,
  22439. .get = msm_audio_sound_focus_get,
  22440. .put = msm_audio_sound_focus_put,
  22441. },
  22442. {
  22443. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22444. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22445. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22446. .info = msm_source_tracking_info,
  22447. .get = msm_audio_source_tracking_get,
  22448. },
  22449. {
  22450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22451. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22452. .name = "Sound Focus Voice Tx TERT_MI2S",
  22453. .info = msm_sound_focus_info,
  22454. .get = msm_voice_sound_focus_get,
  22455. .put = msm_voice_sound_focus_put,
  22456. },
  22457. {
  22458. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22459. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22460. .name = "Source Tracking Voice Tx TERT_MI2S",
  22461. .info = msm_source_tracking_info,
  22462. .get = msm_voice_source_tracking_get,
  22463. },
  22464. {
  22465. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22466. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22467. .name = "Sound Focus Audio Tx TERT_MI2S",
  22468. .info = msm_sound_focus_info,
  22469. .get = msm_audio_sound_focus_get,
  22470. .put = msm_audio_sound_focus_put,
  22471. },
  22472. {
  22473. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22474. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22475. .name = "Source Tracking Audio Tx TERT_MI2S",
  22476. .info = msm_source_tracking_info,
  22477. .get = msm_audio_source_tracking_get,
  22478. },
  22479. {
  22480. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22481. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22482. .name = "Sound Focus Voice Tx INT3_MI2S",
  22483. .info = msm_sound_focus_info,
  22484. .get = msm_voice_sound_focus_get,
  22485. .put = msm_voice_sound_focus_put,
  22486. },
  22487. {
  22488. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22489. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22490. .name = "Source Tracking Voice Tx INT3_MI2S",
  22491. .info = msm_source_tracking_info,
  22492. .get = msm_voice_source_tracking_get,
  22493. },
  22494. {
  22495. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22497. .name = "Sound Focus Audio Tx INT3_MI2S",
  22498. .info = msm_sound_focus_info,
  22499. .get = msm_audio_sound_focus_get,
  22500. .put = msm_audio_sound_focus_put,
  22501. },
  22502. {
  22503. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22504. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22505. .name = "Source Tracking Audio Tx INT3_MI2S",
  22506. .info = msm_source_tracking_info,
  22507. .get = msm_audio_source_tracking_get,
  22508. },
  22509. {
  22510. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22512. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22513. .info = msm_sound_focus_info,
  22514. .get = msm_voice_sound_focus_get,
  22515. .put = msm_voice_sound_focus_put,
  22516. },
  22517. {
  22518. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22519. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22520. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22521. .info = msm_source_tracking_info,
  22522. .get = msm_voice_source_tracking_get,
  22523. },
  22524. {
  22525. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22526. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22527. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22528. .info = msm_sound_focus_info,
  22529. .get = msm_audio_sound_focus_get,
  22530. .put = msm_audio_sound_focus_put,
  22531. },
  22532. {
  22533. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22534. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22535. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22536. .info = msm_source_tracking_info,
  22537. .get = msm_audio_source_tracking_get,
  22538. },
  22539. {
  22540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22542. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22543. .info = msm_sound_focus_info,
  22544. .get = msm_voice_sound_focus_get,
  22545. .put = msm_voice_sound_focus_put,
  22546. },
  22547. {
  22548. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22549. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22550. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22551. .info = msm_source_tracking_info,
  22552. .get = msm_voice_source_tracking_get,
  22553. },
  22554. {
  22555. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22557. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22558. .info = msm_sound_focus_info,
  22559. .get = msm_audio_sound_focus_get,
  22560. .put = msm_audio_sound_focus_put,
  22561. },
  22562. {
  22563. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22564. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22565. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22566. .info = msm_source_tracking_info,
  22567. .get = msm_audio_source_tracking_get,
  22568. },
  22569. {
  22570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22571. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22572. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22573. .info = msm_sound_focus_info,
  22574. .get = msm_voice_sound_focus_get,
  22575. .put = msm_voice_sound_focus_put,
  22576. },
  22577. {
  22578. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22580. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22581. .info = msm_source_tracking_info,
  22582. .get = msm_voice_source_tracking_get,
  22583. },
  22584. {
  22585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22587. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22588. .info = msm_sound_focus_info,
  22589. .get = msm_audio_sound_focus_get,
  22590. .put = msm_audio_sound_focus_put,
  22591. },
  22592. {
  22593. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22594. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22595. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22596. .info = msm_source_tracking_info,
  22597. .get = msm_audio_source_tracking_get,
  22598. },
  22599. {
  22600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22602. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22603. .info = msm_sound_focus_info,
  22604. .get = msm_audio_sound_focus_get,
  22605. .put = msm_audio_sound_focus_put,
  22606. },
  22607. {
  22608. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22610. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22611. .info = msm_source_tracking_info,
  22612. .get = msm_audio_source_tracking_get,
  22613. },
  22614. };
  22615. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22616. {
  22617. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22618. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22619. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22620. .info = msm_doa_tracking_mon_info,
  22621. .get = msm_doa_tracking_mon_get,
  22622. },
  22623. };
  22624. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22625. struct snd_ctl_elem_value *ucontrol)
  22626. {
  22627. int ret = 0;
  22628. int item;
  22629. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22630. pr_debug("%s item is %d\n", __func__,
  22631. ucontrol->value.enumerated.item[0]);
  22632. mutex_lock(&routing_lock);
  22633. item = ucontrol->value.enumerated.item[0];
  22634. if (item < e->items) {
  22635. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22636. __func__, e->shift_l, e->values[item]);
  22637. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22638. e->values[item] < MSM_BACKEND_DAI_MAX)
  22639. /* Enable feedback TX path */
  22640. ret = afe_spk_prot_feed_back_cfg(
  22641. msm_bedais[e->values[item]].port_id,
  22642. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22643. else {
  22644. pr_debug("%s values are out of range item %d\n",
  22645. __func__, e->values[item]);
  22646. /* Disable feedback TX path */
  22647. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22648. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22649. else
  22650. ret = -EINVAL;
  22651. }
  22652. } else {
  22653. pr_err("%s item value is out of range item\n", __func__);
  22654. ret = -EINVAL;
  22655. }
  22656. mutex_unlock(&routing_lock);
  22657. return ret;
  22658. }
  22659. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22660. struct snd_ctl_elem_value *ucontrol)
  22661. {
  22662. int ret = 0;
  22663. int item;
  22664. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22665. pr_debug("%s item is %d\n", __func__,
  22666. ucontrol->value.enumerated.item[0]);
  22667. mutex_lock(&routing_lock);
  22668. item = ucontrol->value.enumerated.item[0];
  22669. if (item < e->items) {
  22670. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22671. __func__, e->shift_l, e->values[item]);
  22672. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22673. e->values[item] < MSM_BACKEND_DAI_MAX)
  22674. /* Enable feedback TX path */
  22675. ret = afe_spk_prot_feed_back_cfg(
  22676. msm_bedais[e->values[item]].port_id,
  22677. msm_bedais[e->shift_l].port_id,
  22678. 1, 1, 1);
  22679. else {
  22680. pr_debug("%s values are out of range item %d\n",
  22681. __func__, e->values[item]);
  22682. /* Disable feedback TX path */
  22683. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22684. ret = afe_spk_prot_feed_back_cfg(0,
  22685. 0, 0, 0, 0);
  22686. else
  22687. ret = -EINVAL;
  22688. }
  22689. } else {
  22690. pr_err("%s item value is out of range item\n", __func__);
  22691. ret = -EINVAL;
  22692. }
  22693. mutex_unlock(&routing_lock);
  22694. return ret;
  22695. }
  22696. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22697. struct snd_ctl_elem_value *ucontrol)
  22698. {
  22699. pr_debug("%s\n", __func__);
  22700. return 0;
  22701. }
  22702. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22703. struct snd_ctl_elem_value *ucontrol)
  22704. {
  22705. pr_debug("%s\n", __func__);
  22706. ucontrol->value.enumerated.item[0] = 0;
  22707. return 0;
  22708. }
  22709. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22710. "ZERO", "SLIM4_TX"
  22711. };
  22712. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22713. "ZERO", "SLIM4_TX"
  22714. };
  22715. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22716. "ZERO", "WSA_CDC_DMA_TX_0"
  22717. };
  22718. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22719. "ZERO", "WSA_CDC_DMA_TX_0"
  22720. };
  22721. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22722. "ZERO", "SENARY_TX"
  22723. };
  22724. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22725. "ZERO", "INT5_MI2S_TX"
  22726. };
  22727. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22728. "ZERO", "INT5_MI2S_TX"
  22729. };
  22730. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22731. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22732. };
  22733. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22734. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22735. };
  22736. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22737. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22738. };
  22739. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22740. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22741. };
  22742. static const int mi2s_rx_vi_fb_tx_value[] = {
  22743. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22744. };
  22745. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22746. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22747. };
  22748. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22749. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22750. };
  22751. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22752. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22753. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22754. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22755. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22756. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22757. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22758. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22759. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22760. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22761. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22762. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22763. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22764. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22765. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22766. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22767. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22768. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22769. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22770. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22771. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22772. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22773. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22774. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22775. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22776. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22777. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22778. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22779. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22780. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22781. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22782. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22783. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22784. spkr_prot_put_vi_lch_port);
  22785. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22786. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22787. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22788. spkr_prot_put_vi_rch_port);
  22789. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22790. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22791. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22792. spkr_prot_put_vi_lch_port);
  22793. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22794. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22795. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22796. spkr_prot_put_vi_rch_port);
  22797. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22798. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22799. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22800. spkr_prot_put_vi_lch_port);
  22801. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22802. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22803. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22804. spkr_prot_put_vi_lch_port);
  22805. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22806. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22807. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22808. spkr_prot_put_vi_rch_port);
  22809. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22810. /* Frontend AIF */
  22811. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22812. * Stream name must contains substring of front-end dai name
  22813. */
  22814. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22816. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22818. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22820. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22822. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22824. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22826. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22828. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22830. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22832. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22834. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  22835. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  22836. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  22838. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22840. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22842. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22844. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22846. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22847. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22848. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22849. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22850. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22851. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22852. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22853. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22854. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22855. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22856. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22857. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  22858. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  22859. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22860. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22861. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22862. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22863. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22864. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22865. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22866. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22867. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22868. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22869. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22870. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22871. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22872. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22873. 0, 0, 0, 0),
  22874. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22875. 0, 0, 0, 0),
  22876. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22877. 0, 0, 0, 0),
  22878. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22879. 0, 0, 0, 0),
  22880. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22881. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22882. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22883. 0, 0, 0, 0),
  22884. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22885. 0, 0, 0, 0),
  22886. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22887. 0, 0, 0, 0),
  22888. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22889. 0, 0, 0, 0),
  22890. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22891. 0, 0, 0, 0),
  22892. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22893. 0, 0, 0, 0),
  22894. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22895. 0, 0, 0, 0),
  22896. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22897. 0, 0, 0, 0),
  22898. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22899. 0, 0, 0, 0),
  22900. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22901. 0, 0, 0, 0),
  22902. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22903. 0, 0, 0, 0),
  22904. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22905. 0, 0, 0, 0),
  22906. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22907. 0, 0, 0, 0),
  22908. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22909. 0, 0, 0, 0),
  22910. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22911. 0, 0, 0, 0),
  22912. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22913. 0, 0, 0, 0),
  22914. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22915. 0, 0, 0, 0),
  22916. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22917. 0, 0, 0, 0),
  22918. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22919. 0, 0, 0, 0),
  22920. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22921. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22922. 0, 0, 0, 0),
  22923. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22924. "INT0 MI2S_RX Hostless Playback",
  22925. 0, 0, 0, 0),
  22926. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22927. "INT4 MI2S_RX Hostless Playback",
  22928. 0, 0, 0, 0),
  22929. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22930. "Primary MI2S_RX Hostless Playback",
  22931. 0, 0, 0, 0),
  22932. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22933. "Secondary MI2S_RX Hostless Playback",
  22934. 0, 0, 0, 0),
  22935. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22936. "Tertiary MI2S_RX Hostless Playback",
  22937. 0, 0, 0, 0),
  22938. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22939. "Quaternary MI2S_RX Hostless Playback",
  22940. 0, 0, 0, 0),
  22941. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22942. "Quinary MI2S_RX Hostless Playback",
  22943. 0, 0, 0, 0),
  22944. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22945. "Senary MI2S_RX Hostless Playback",
  22946. 0, 0, 0, 0),
  22947. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22948. 0, 0, 0, 0),
  22949. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22950. 0, 0, 0, 0),
  22951. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22952. 0, 0, 0, 0),
  22953. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22954. 0, 0, 0, 0),
  22955. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22956. 0, 0, 0, 0),
  22957. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22958. "INT3 MI2S_TX Hostless Capture",
  22959. 0, 0, 0, 0),
  22960. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22961. "Tertiary MI2S_TX Hostless Capture",
  22962. 0, 0, 0, 0),
  22963. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22964. "Secondary MI2S_TX Hostless Capture",
  22965. 0, 0, 0, 0),
  22966. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22967. "Primary MI2S_TX Hostless Capture",
  22968. 0, 0, 0, 0),
  22969. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22970. 0, 0, 0, 0),
  22971. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22972. 0, 0, 0, 0),
  22973. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22974. "Quaternary MI2S_TX Hostless Capture",
  22975. 0, 0, 0, 0),
  22976. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22977. "Quinary MI2S_TX Hostless Capture",
  22978. 0, 0, 0, 0),
  22979. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22980. "Senary MI2S_TX Hostless Capture",
  22981. 0, 0, 0, 0),
  22982. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22983. "Primary TDM0 Hostless Playback",
  22984. 0, 0, 0, 0),
  22985. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22986. "Primary TDM0 Hostless Capture",
  22987. 0, 0, 0, 0),
  22988. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22989. "Primary TDM1 Hostless Playback",
  22990. 0, 0, 0, 0),
  22991. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22992. "Primary TDM1 Hostless Capture",
  22993. 0, 0, 0, 0),
  22994. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22995. "Primary TDM2 Hostless Playback",
  22996. 0, 0, 0, 0),
  22997. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22998. "Primary TDM2 Hostless Capture",
  22999. 0, 0, 0, 0),
  23000. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  23001. "Primary TDM3 Hostless Playback",
  23002. 0, 0, 0, 0),
  23003. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  23004. "Primary TDM3 Hostless Capture",
  23005. 0, 0, 0, 0),
  23006. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  23007. "Primary TDM4 Hostless Playback",
  23008. 0, 0, 0, 0),
  23009. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  23010. "Primary TDM4 Hostless Capture",
  23011. 0, 0, 0, 0),
  23012. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  23013. "Primary TDM5 Hostless Playback",
  23014. 0, 0, 0, 0),
  23015. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  23016. "Primary TDM5 Hostless Capture",
  23017. 0, 0, 0, 0),
  23018. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23019. "Primary TDM6 Hostless Playback",
  23020. 0, 0, 0, 0),
  23021. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23022. "Primary TDM6 Hostless Capture",
  23023. 0, 0, 0, 0),
  23024. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23025. "Primary TDM7 Hostless Playback",
  23026. 0, 0, 0, 0),
  23027. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23028. "Primary TDM7 Hostless Capture",
  23029. 0, 0, 0, 0),
  23030. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23031. "Secondary TDM0 Hostless Playback",
  23032. 0, 0, 0, 0),
  23033. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23034. "Secondary TDM0 Hostless Capture",
  23035. 0, 0, 0, 0),
  23036. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23037. "Secondary TDM1 Hostless Playback",
  23038. 0, 0, 0, 0),
  23039. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23040. "Secondary TDM1 Hostless Capture",
  23041. 0, 0, 0, 0),
  23042. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23043. "Secondary TDM2 Hostless Playback",
  23044. 0, 0, 0, 0),
  23045. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23046. "Secondary TDM2 Hostless Capture",
  23047. 0, 0, 0, 0),
  23048. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23049. "Secondary TDM3 Hostless Playback",
  23050. 0, 0, 0, 0),
  23051. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23052. "Secondary TDM3 Hostless Capture",
  23053. 0, 0, 0, 0),
  23054. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23055. "Secondary TDM4 Hostless Playback",
  23056. 0, 0, 0, 0),
  23057. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23058. "Secondary TDM4 Hostless Capture",
  23059. 0, 0, 0, 0),
  23060. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23061. "Secondary TDM5 Hostless Playback",
  23062. 0, 0, 0, 0),
  23063. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23064. "Secondary TDM5 Hostless Capture",
  23065. 0, 0, 0, 0),
  23066. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23067. "Secondary TDM6 Hostless Playback",
  23068. 0, 0, 0, 0),
  23069. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23070. "Secondary TDM6 Hostless Capture",
  23071. 0, 0, 0, 0),
  23072. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23073. "Secondary TDM7 Hostless Playback",
  23074. 0, 0, 0, 0),
  23075. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23076. "Secondary TDM7 Hostless Capture",
  23077. 0, 0, 0, 0),
  23078. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23079. "Tertiary TDM0 Hostless Playback",
  23080. 0, 0, 0, 0),
  23081. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23082. "Tertiary TDM0 Hostless Capture",
  23083. 0, 0, 0, 0),
  23084. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23085. "Tertiary TDM1 Hostless Playback",
  23086. 0, 0, 0, 0),
  23087. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23088. "Tertiary TDM1 Hostless Capture",
  23089. 0, 0, 0, 0),
  23090. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23091. "Tertiary TDM2 Hostless Playback",
  23092. 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23094. "Tertiary TDM2 Hostless Capture",
  23095. 0, 0, 0, 0),
  23096. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23097. "Tertiary TDM3 Hostless Playback",
  23098. 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23100. "Tertiary TDM3 Hostless Capture",
  23101. 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23103. "Tertiary TDM4 Hostless Playback",
  23104. 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23106. "Tertiary TDM4 Hostless Capture",
  23107. 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23109. "Tertiary TDM5 Hostless Playback",
  23110. 0, 0, 0, 0),
  23111. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23112. "Tertiary TDM5 Hostless Capture",
  23113. 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23115. "Tertiary TDM6 Hostless Playback",
  23116. 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23118. "Tertiary TDM6 Hostless Capture",
  23119. 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23121. "Tertiary TDM7 Hostless Playback",
  23122. 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23124. "Tertiary TDM7 Hostless Capture",
  23125. 0, 0, 0, 0),
  23126. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23127. "Quaternary TDM0 Hostless Playback",
  23128. 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23130. "Quaternary TDM0 Hostless Capture",
  23131. 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23133. "Quaternary TDM1 Hostless Playback",
  23134. 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23136. "Quaternary TDM1 Hostless Capture",
  23137. 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23139. "Quaternary TDM2 Hostless Playback",
  23140. 0, 0, 0, 0),
  23141. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23142. "Quaternary TDM2 Hostless Capture",
  23143. 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23145. "Quaternary TDM3 Hostless Playback",
  23146. 0, 0, 0, 0),
  23147. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23148. "Quaternary TDM3 Hostless Capture",
  23149. 0, 0, 0, 0),
  23150. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23151. "Quaternary TDM4 Hostless Playback",
  23152. 0, 0, 0, 0),
  23153. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23154. "Quaternary TDM4 Hostless Capture",
  23155. 0, 0, 0, 0),
  23156. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23157. "Quaternary TDM5 Hostless Playback",
  23158. 0, 0, 0, 0),
  23159. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23160. "Quaternary TDM5 Hostless Capture",
  23161. 0, 0, 0, 0),
  23162. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23163. "Quaternary TDM6 Hostless Playback",
  23164. 0, 0, 0, 0),
  23165. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23166. "Quaternary TDM6 Hostless Capture",
  23167. 0, 0, 0, 0),
  23168. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23169. "Quaternary TDM7 Hostless Playback",
  23170. 0, 0, 0, 0),
  23171. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23172. "Quaternary TDM7 Hostless Capture",
  23173. 0, 0, 0, 0),
  23174. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23175. "Quinary TDM0 Hostless Playback",
  23176. 0, 0, 0, 0),
  23177. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23178. "Quinary TDM0 Hostless Capture",
  23179. 0, 0, 0, 0),
  23180. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23181. "Quinary TDM1 Hostless Playback",
  23182. 0, 0, 0, 0),
  23183. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23184. "Quinary TDM1 Hostless Capture",
  23185. 0, 0, 0, 0),
  23186. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23187. "Quinary TDM2 Hostless Playback",
  23188. 0, 0, 0, 0),
  23189. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23190. "Quinary TDM2 Hostless Capture",
  23191. 0, 0, 0, 0),
  23192. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23193. "Quinary TDM3 Hostless Playback",
  23194. 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23196. "Quinary TDM3 Hostless Capture",
  23197. 0, 0, 0, 0),
  23198. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23199. "Quinary TDM4 Hostless Playback",
  23200. 0, 0, 0, 0),
  23201. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23202. "Quinary TDM4 Hostless Capture",
  23203. 0, 0, 0, 0),
  23204. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23205. "Quinary TDM5 Hostless Playback",
  23206. 0, 0, 0, 0),
  23207. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23208. "Quinary TDM5 Hostless Capture",
  23209. 0, 0, 0, 0),
  23210. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23211. "Quinary TDM6 Hostless Playback",
  23212. 0, 0, 0, 0),
  23213. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23214. "Quinary TDM6 Hostless Capture",
  23215. 0, 0, 0, 0),
  23216. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23217. "Quinary TDM7 Hostless Playback",
  23218. 0, 0, 0, 0),
  23219. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23220. "Quinary TDM7 Hostless Capture",
  23221. 0, 0, 0, 0),
  23222. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23223. "Senary TDM0 Hostless Playback",
  23224. 0, 0, 0, 0),
  23225. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23226. "Senary TDM0 Hostless Capture",
  23227. 0, 0, 0, 0),
  23228. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23229. "Senary TDM1 Hostless Playback",
  23230. 0, 0, 0, 0),
  23231. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23232. "Senary TDM1 Hostless Capture",
  23233. 0, 0, 0, 0),
  23234. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23235. "Senary TDM2 Hostless Playback",
  23236. 0, 0, 0, 0),
  23237. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23238. "Senary TDM2 Hostless Capture",
  23239. 0, 0, 0, 0),
  23240. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23241. "Senary TDM3 Hostless Playback",
  23242. 0, 0, 0, 0),
  23243. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23244. "Senary TDM3 Hostless Capture",
  23245. 0, 0, 0, 0),
  23246. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23247. "Senary TDM4 Hostless Playback",
  23248. 0, 0, 0, 0),
  23249. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23250. "Senary TDM4 Hostless Capture",
  23251. 0, 0, 0, 0),
  23252. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23253. "Senary TDM5 Hostless Playback",
  23254. 0, 0, 0, 0),
  23255. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23256. "Senary TDM5 Hostless Capture",
  23257. 0, 0, 0, 0),
  23258. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23259. "Senary TDM6 Hostless Playback",
  23260. 0, 0, 0, 0),
  23261. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23262. "Senary TDM6 Hostless Capture",
  23263. 0, 0, 0, 0),
  23264. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23265. "Senary TDM7 Hostless Playback",
  23266. 0, 0, 0, 0),
  23267. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23268. "Senary TDM7 Hostless Capture",
  23269. 0, 0, 0, 0),
  23270. /* LSM */
  23271. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23272. 0, 0, 0, 0),
  23273. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23274. 0, 0, 0, 0),
  23275. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23276. 0, 0, 0, 0),
  23277. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23278. 0, 0, 0, 0),
  23279. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23280. 0, 0, 0, 0),
  23281. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23282. 0, 0, 0, 0),
  23283. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23284. 0, 0, 0, 0),
  23285. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23286. 0, 0, 0, 0),
  23287. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23288. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23289. /* Backend AIF */
  23290. /* Stream name equals to backend dai link stream name */
  23291. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23292. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23293. 0, 0, 0, 0),
  23294. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23295. 0, 0, 0, 0),
  23296. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23297. 0, 0, 0, 0),
  23298. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23299. 0, 0, 0, 0),
  23300. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23301. 0, 0, 0, 0),
  23302. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23304. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23305. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23306. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23307. 0, 0, 0, 0),
  23308. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23309. 0, 0, 0, 0),
  23310. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23311. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23312. 0, 0, 0, 0),
  23313. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23314. 0, 0, 0, 0),
  23315. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23316. 0, 0, 0, 0),
  23317. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23318. "Secondary MI2S Playback SD1",
  23319. 0, 0, 0, 0),
  23320. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23321. 0, 0, 0, 0),
  23322. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23323. 0, 0, 0, 0),
  23324. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23325. 0, 0, 0, 0),
  23326. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23327. 0, 0, 0, 0),
  23328. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23329. 0, 0, 0, 0),
  23330. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23331. 0, 0, 0, 0),
  23332. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23333. 0, 0, 0, 0),
  23334. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23335. 0, 0, 0, 0),
  23336. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23337. 0, 0, 0, 0),
  23338. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23340. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23341. 0, 0, 0, 0),
  23342. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23343. 0, 0, 0, 0),
  23344. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23345. 0, 0, 0, 0),
  23346. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23347. 0, 0, 0, 0),
  23348. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23349. 0, 0, 0, 0),
  23350. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23351. 0, 0, 0, 0),
  23352. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23353. 0, 0, 0, 0),
  23354. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23355. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23356. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23357. 0, 0, 0, 0),
  23358. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23359. 0, 0, 0, 0),
  23360. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23361. 0, 0, 0, 0),
  23362. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23363. 0, 0, 0, 0),
  23364. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23365. 0, 0, 0, 0),
  23366. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23367. 0, 0, 0, 0),
  23368. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23369. 0, 0, 0, 0),
  23370. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23371. 0, 0, 0, 0),
  23372. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23373. 0, 0, 0, 0),
  23374. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23375. 0, 0, 0, 0),
  23376. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23377. 0, 0, 0, 0),
  23378. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23379. 0, 0, 0, 0),
  23380. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23381. 0, 0, 0, 0),
  23382. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23383. 0, 0, 0, 0),
  23384. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23385. 0, 0, 0, 0),
  23386. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23387. 0, 0, 0, 0),
  23388. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23389. 0, 0, 0, 0),
  23390. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23391. 0, 0, 0, 0),
  23392. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23393. 0, 0, 0, 0),
  23394. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23395. 0, 0, 0, 0),
  23396. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23397. 0, 0, 0, 0),
  23398. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23399. 0, 0, 0, 0),
  23400. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23401. 0, 0, 0, 0),
  23402. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23403. 0, 0, 0, 0),
  23404. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23405. 0, 0, 0, 0),
  23406. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23407. 0, 0, 0, 0),
  23408. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23409. 0, 0, 0, 0),
  23410. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23411. 0, 0, 0, 0),
  23412. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23413. 0, 0, 0, 0),
  23414. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23415. 0, 0, 0, 0),
  23416. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23417. 0, 0, 0, 0),
  23418. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23419. 0, 0, 0, 0),
  23420. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23421. 0, 0, 0, 0),
  23422. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23423. 0, 0, 0, 0),
  23424. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23425. 0, 0, 0, 0),
  23426. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23427. 0, 0, 0, 0),
  23428. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23429. 0, 0, 0, 0),
  23430. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23431. 0, 0, 0, 0),
  23432. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23433. 0, 0, 0, 0),
  23434. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23435. 0, 0, 0, 0),
  23436. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23437. 0, 0, 0, 0),
  23438. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23439. 0, 0, 0, 0),
  23440. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23441. 0, 0, 0, 0),
  23442. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23443. 0, 0, 0, 0),
  23444. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23445. 0, 0, 0, 0),
  23446. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23447. 0, 0, 0, 0),
  23448. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23449. 0, 0, 0, 0),
  23450. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23451. 0, 0, 0, 0),
  23452. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23453. 0, 0, 0, 0),
  23454. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23455. 0, 0, 0, 0),
  23456. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23457. 0, 0, 0, 0),
  23458. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23459. 0, 0, 0, 0),
  23460. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23461. 0, 0, 0, 0),
  23462. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23463. 0, 0, 0, 0),
  23464. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23465. 0, 0, 0, 0),
  23466. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23467. 0, 0, 0, 0),
  23468. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23469. 0, 0, 0, 0),
  23470. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23471. 0, 0, 0, 0),
  23472. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23473. 0, 0, 0, 0),
  23474. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23475. 0, 0, 0, 0),
  23476. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23477. 0, 0, 0, 0),
  23478. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23479. 0, 0, 0, 0),
  23480. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23481. 0, 0, 0, 0),
  23482. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23483. 0, 0, 0, 0),
  23484. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23485. 0, 0, 0, 0),
  23486. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23487. 0, 0, 0, 0),
  23488. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23489. 0, 0, 0, 0),
  23490. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23491. 0, 0, 0, 0),
  23492. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23493. 0, 0, 0, 0),
  23494. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23495. 0, 0, 0, 0),
  23496. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23497. 0, 0, 0, 0),
  23498. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23499. 0, 0, 0, 0),
  23500. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23501. 0, 0, 0, 0),
  23502. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23503. 0, 0, 0, 0),
  23504. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23505. 0, 0, 0, 0),
  23506. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23507. 0, 0, 0, 0),
  23508. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23509. 0, 0, 0, 0),
  23510. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23511. 0, 0, 0, 0),
  23512. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23513. 0, 0, 0, 0),
  23514. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23515. 0, 0, 0, 0),
  23516. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23517. 0, 0, 0, 0),
  23518. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23519. 0, 0, 0, 0),
  23520. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23521. 0, 0, 0, 0),
  23522. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23523. 0, 0, 0, 0),
  23524. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23525. 0, 0, 0, 0),
  23526. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23527. 0, 0, 0, 0),
  23528. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23529. 0, 0, 0, 0),
  23530. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23531. 0, 0, 0, 0),
  23532. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23533. 0, 0, 0, 0),
  23534. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23535. 0, 0, 0, 0),
  23536. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23537. 0, 0, 0, 0),
  23538. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23539. 0, 0, 0, 0),
  23540. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23541. 0, 0, 0, 0),
  23542. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23543. 0, 0, 0, 0),
  23544. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23545. 0, 0, 0, 0),
  23546. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23547. 0, 0, 0, 0),
  23548. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23549. 0, 0, 0, 0),
  23550. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23551. 0, 0, 0, 0),
  23552. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23553. 0, 0, 0, 0),
  23554. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23555. 0, 0, 0, 0),
  23556. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23557. 0, 0, 0, 0),
  23558. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23559. 0, 0, 0, 0),
  23560. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23561. 0, 0, 0, 0),
  23562. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23563. 0, 0, 0, 0),
  23564. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23565. 0, 0, 0, 0),
  23566. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23567. 0, 0, 0, 0),
  23568. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23569. 0, 0, 0, 0),
  23570. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23571. 0, 0, 0, 0),
  23572. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23573. 0, 0, 0, 0),
  23574. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23575. 0, 0, 0, 0),
  23576. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23577. 0, 0, 0, 0),
  23578. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23579. 0, 0, 0, 0),
  23580. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23581. 0, 0, 0, 0),
  23582. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23583. 0, 0, 0, 0),
  23584. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23585. 0, 0, 0, 0),
  23586. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23587. 0, 0, 0, 0),
  23588. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23589. 0, 0, 0, 0),
  23590. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23591. 0, 0, 0, 0),
  23592. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23593. 0, 0, 0, 0),
  23594. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23595. 0, 0, 0, 0),
  23596. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23597. 0, 0, 0, 0),
  23598. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23599. 0, 0, 0, 0),
  23600. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23601. 0, 0, 0, 0),
  23602. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23603. 0, 0, 0, 0),
  23604. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23605. 0, 0, 0, 0),
  23606. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23607. 0, 0, 0, 0),
  23608. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23609. 0, 0, 0, 0),
  23610. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23611. 0, 0, 0, 0),
  23612. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23613. 0, 0, 0, 0),
  23614. /* incall */
  23615. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23616. 0, 0, 0, 0),
  23617. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23618. 0, 0, 0, 0),
  23619. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23620. 0, 0, 0, 0),
  23621. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23622. 0, 0, 0, 0),
  23623. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23624. 0, 0, 0, 0),
  23625. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23626. 0, 0, 0, 0),
  23627. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23628. 0, 0, 0, 0),
  23629. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23630. 0, 0, 0, 0),
  23631. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23632. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23633. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23634. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23635. 0, 0, 0, 0),
  23636. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23637. 0, 0, 0, 0),
  23638. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23639. 0, 0, 0, 0),
  23640. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23641. 0, 0, 0, 0),
  23642. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23643. 0, 0, 0, 0),
  23644. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23645. 0, 0, 0, 0),
  23646. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23647. 0, 0, 0, 0),
  23648. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23649. 0, 0, 0, 0),
  23650. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23651. 0, 0, 0, 0),
  23652. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23653. 0, 0, 0, 0),
  23654. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23655. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23656. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23657. 0, 0, 0, 0),
  23658. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23659. 0, 0, 0, 0),
  23660. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23661. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23662. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23663. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23664. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23665. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23666. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23667. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23668. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23669. /* In- call recording */
  23670. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23671. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23672. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23673. 0, 0, 0, 0),
  23674. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23675. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23676. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23677. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23678. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23679. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23680. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23681. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23682. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23683. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23684. /* Switch Definitions */
  23685. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23686. &slim_fm_switch_mixer_controls),
  23687. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23688. &slim1_fm_switch_mixer_controls),
  23689. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23690. &slim3_fm_switch_mixer_controls),
  23691. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23692. &slim4_fm_switch_mixer_controls),
  23693. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23694. &slim6_fm_switch_mixer_controls),
  23695. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23696. &pcm_rx_switch_mixer_controls),
  23697. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23698. &int0_mi2s_rx_switch_mixer_controls),
  23699. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23700. &int4_mi2s_rx_switch_mixer_controls),
  23701. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23702. &pri_mi2s_rx_switch_mixer_controls),
  23703. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23704. &sec_mi2s_rx_switch_mixer_controls),
  23705. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23706. &tert_mi2s_rx_switch_mixer_controls),
  23707. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23708. &quat_mi2s_rx_switch_mixer_controls),
  23709. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23710. &quin_mi2s_rx_switch_mixer_controls),
  23711. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23712. &sco_slim7_switch_mixer_controls),
  23713. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23714. &sen_mi2s_rx_switch_mixer_controls),
  23715. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23716. &hfp_pri_aux_switch_mixer_controls),
  23717. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23718. &hfp_aux_switch_mixer_controls),
  23719. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23720. &hfp_int_switch_mixer_controls),
  23721. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23722. &hfp_slim7_switch_mixer_controls),
  23723. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23724. &usb_switch_mixer_controls),
  23725. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23726. &a2dp_slim7_switch_mixer_controls),
  23727. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23728. &cdc_dma_wsa_switch_mixer_controls),
  23729. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23730. &cdc_dma_rx_switch_mixer_controls),
  23731. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23732. &cdc_dma_rx_1_switch_mixer_controls),
  23733. /* Mixer definitions */
  23734. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23735. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23736. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23737. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23738. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23739. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23740. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23741. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23742. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23743. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23744. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23745. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23746. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23747. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23748. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23749. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23750. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23751. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23752. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23753. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23754. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23755. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23756. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23757. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23758. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23759. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23760. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23761. quaternary_mi2s_rx_mixer_controls,
  23762. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23763. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23764. tertiary_mi2s_rx_mixer_controls,
  23765. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23766. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23767. secondary_mi2s_rx_mixer_controls,
  23768. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23769. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23770. secondary_mi2s_rx2_mixer_controls,
  23771. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23772. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23773. primary_mi2s_rx_mixer_controls,
  23774. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23775. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23776. int0_mi2s_rx_mixer_controls,
  23777. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23778. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23779. int4_mi2s_rx_mixer_controls,
  23780. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23781. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23782. quinary_mi2s_rx_mixer_controls,
  23783. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23784. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23785. senary_mi2s_rx_mixer_controls,
  23786. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23787. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23788. pri_tdm_rx_0_mixer_controls,
  23789. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23790. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23791. pri_tdm_rx_1_mixer_controls,
  23792. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23793. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23794. pri_tdm_rx_2_mixer_controls,
  23795. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23796. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23797. pri_tdm_rx_3_mixer_controls,
  23798. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23799. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23800. pri_tdm_tx_0_mixer_controls,
  23801. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23802. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23803. sec_tdm_rx_0_mixer_controls,
  23804. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23805. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23806. sec_tdm_rx_1_mixer_controls,
  23807. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23808. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23809. sec_tdm_rx_2_mixer_controls,
  23810. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23811. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23812. sec_tdm_rx_3_mixer_controls,
  23813. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23814. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23815. sec_tdm_tx_0_mixer_controls,
  23816. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23817. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23818. tert_tdm_rx_0_mixer_controls,
  23819. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23820. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23821. tert_tdm_tx_0_mixer_controls,
  23822. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23823. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23824. tert_tdm_rx_1_mixer_controls,
  23825. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23826. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23827. tert_tdm_rx_2_mixer_controls,
  23828. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23829. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23830. tert_tdm_rx_3_mixer_controls,
  23831. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23832. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23833. tert_tdm_rx_4_mixer_controls,
  23834. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23835. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23836. quat_tdm_rx_0_mixer_controls,
  23837. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23838. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23839. quat_tdm_tx_0_mixer_controls,
  23840. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23841. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23842. quat_tdm_rx_1_mixer_controls,
  23843. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23844. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23845. quat_tdm_rx_2_mixer_controls,
  23846. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23847. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23848. quat_tdm_rx_3_mixer_controls,
  23849. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23850. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23851. quin_tdm_rx_0_mixer_controls,
  23852. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23853. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23854. quin_tdm_tx_0_mixer_controls,
  23855. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23856. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23857. quin_tdm_rx_1_mixer_controls,
  23858. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23859. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23860. quin_tdm_tx_1_mixer_controls,
  23861. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23862. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23863. quin_tdm_rx_2_mixer_controls,
  23864. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23865. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23866. quin_tdm_tx_2_mixer_controls,
  23867. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23868. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23869. quin_tdm_rx_3_mixer_controls,
  23870. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23871. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23872. quin_tdm_tx_3_mixer_controls,
  23873. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23874. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23875. sen_tdm_tx_0_mixer_controls,
  23876. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23877. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23878. sen_tdm_rx_0_mixer_controls,
  23879. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23880. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23881. sen_tdm_rx_1_mixer_controls,
  23882. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23883. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23884. sen_tdm_rx_2_mixer_controls,
  23885. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23886. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23887. sen_tdm_rx_3_mixer_controls,
  23888. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23889. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23890. pri_meta_mi2s_rx_mixer_controls,
  23891. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23892. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23893. sec_meta_mi2s_rx_mixer_controls,
  23894. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23895. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23896. wsa_cdc_dma_rx_0_mixer_controls,
  23897. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23898. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23899. wsa_cdc_dma_rx_1_mixer_controls,
  23900. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23901. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23902. rx_cdc_dma_rx_0_mixer_controls,
  23903. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23904. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23905. rx_cdc_dma_rx_1_mixer_controls,
  23906. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23907. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23908. rx_cdc_dma_rx_2_mixer_controls,
  23909. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23910. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23911. rx_cdc_dma_rx_3_mixer_controls,
  23912. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23913. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23914. rx_cdc_dma_rx_4_mixer_controls,
  23915. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23916. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23917. rx_cdc_dma_rx_5_mixer_controls,
  23918. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23919. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23920. rx_cdc_dma_rx_6_mixer_controls,
  23921. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23922. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23923. rx_cdc_dma_rx_7_mixer_controls,
  23924. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23925. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23926. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23927. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23928. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23929. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23930. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23931. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23932. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23933. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23934. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23935. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23936. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23937. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23938. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23939. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23940. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23941. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23942. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23943. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23944. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23945. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23946. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23947. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23948. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23949. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23950. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23951. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23952. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23953. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23954. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23955. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23956. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23957. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23958. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23959. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  23960. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  23961. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  23962. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  23963. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23964. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23965. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23966. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23967. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23968. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23969. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23970. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23971. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23972. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23973. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23974. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23975. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23976. tert_auxpcm_rx_mixer_controls,
  23977. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23978. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23979. quat_auxpcm_rx_mixer_controls,
  23980. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23981. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23982. quin_auxpcm_rx_mixer_controls,
  23983. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23984. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23985. sen_auxpcm_rx_mixer_controls,
  23986. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23987. /* incall */
  23988. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23989. incall_music_delivery_mixer_controls,
  23990. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23991. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23992. incall_music2_delivery_mixer_controls,
  23993. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23994. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23995. slimbus_4_rx_mixer_controls,
  23996. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23997. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23998. slimbus_6_rx_mixer_controls,
  23999. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  24000. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24001. usb_audio_rx_mixer_controls,
  24002. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  24003. /* Voice Mixer */
  24004. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24005. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24006. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24007. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24008. SND_SOC_NOPM, 0, 0,
  24009. sec_i2s_rx_voice_mixer_controls,
  24010. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24011. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24012. SND_SOC_NOPM, 0, 0,
  24013. sec_mi2s_rx_voice_mixer_controls,
  24014. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24015. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  24016. SND_SOC_NOPM, 0, 0,
  24017. slimbus_rx_voice_mixer_controls,
  24018. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  24019. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24020. SND_SOC_NOPM, 0, 0,
  24021. bt_sco_rx_voice_mixer_controls,
  24022. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24023. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24024. SND_SOC_NOPM, 0, 0,
  24025. afe_pcm_rx_voice_mixer_controls,
  24026. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24027. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24028. SND_SOC_NOPM, 0, 0,
  24029. aux_pcm_rx_voice_mixer_controls,
  24030. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24031. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24032. SND_SOC_NOPM, 0, 0,
  24033. sec_aux_pcm_rx_voice_mixer_controls,
  24034. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24035. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24036. SND_SOC_NOPM, 0, 0,
  24037. tert_aux_pcm_rx_voice_mixer_controls,
  24038. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24039. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24040. SND_SOC_NOPM, 0, 0,
  24041. quat_aux_pcm_rx_voice_mixer_controls,
  24042. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24043. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24044. SND_SOC_NOPM, 0, 0,
  24045. quin_aux_pcm_rx_voice_mixer_controls,
  24046. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24047. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24048. SND_SOC_NOPM, 0, 0,
  24049. sen_aux_pcm_rx_voice_mixer_controls,
  24050. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24051. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24052. SND_SOC_NOPM, 0, 0,
  24053. hdmi_rx_voice_mixer_controls,
  24054. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24055. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24056. SND_SOC_NOPM, 0, 0,
  24057. mi2s_rx_voice_mixer_controls,
  24058. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24059. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24060. SND_SOC_NOPM, 0, 0,
  24061. pri_mi2s_rx_voice_mixer_controls,
  24062. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24063. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24064. SND_SOC_NOPM, 0, 0,
  24065. int0_mi2s_rx_voice_mixer_controls,
  24066. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24067. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24068. SND_SOC_NOPM, 0, 0,
  24069. int4_mi2s_rx_voice_mixer_controls,
  24070. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24071. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24072. SND_SOC_NOPM, 0, 0,
  24073. tert_mi2s_rx_voice_mixer_controls,
  24074. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24075. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24076. SND_SOC_NOPM, 0, 0,
  24077. quat_mi2s_rx_voice_mixer_controls,
  24078. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24079. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24080. SND_SOC_NOPM, 0, 0,
  24081. quin_mi2s_rx_voice_mixer_controls,
  24082. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24083. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24084. SND_SOC_NOPM, 0, 0,
  24085. pri_tdm_rx_0_voice_mixer_controls,
  24086. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24087. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24088. SND_SOC_NOPM, 0, 0,
  24089. pri_tdm_rx_1_voice_mixer_controls,
  24090. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24091. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24092. SND_SOC_NOPM, 0, 0,
  24093. pri_tdm_rx_2_voice_mixer_controls,
  24094. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24095. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24096. SND_SOC_NOPM, 0, 0,
  24097. pri_tdm_rx_3_voice_mixer_controls,
  24098. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24099. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24100. SND_SOC_NOPM, 0, 0,
  24101. sen_mi2s_rx_voice_mixer_controls,
  24102. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24103. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24104. SND_SOC_NOPM, 0, 0,
  24105. quat_tdm_rx_2_voice_mixer_controls,
  24106. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24107. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24108. SND_SOC_NOPM, 0, 0,
  24109. quin_tdm_rx_2_voice_mixer_controls,
  24110. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24111. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24112. SND_SOC_NOPM, 0, 0,
  24113. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24114. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24115. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  24116. SND_SOC_NOPM, 0, 0,
  24117. proxy_rx_voice_mixer_controls,
  24118. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  24119. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24120. SND_SOC_NOPM, 0, 0,
  24121. rx_cdc_dma_rx_0_voice_mixer_controls,
  24122. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24123. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24124. SND_SOC_NOPM, 0, 0,
  24125. rx_cdc_dma_rx_1_voice_mixer_controls,
  24126. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24127. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24128. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24129. ARRAY_SIZE(tx_voip_mixer_controls)),
  24130. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24131. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24132. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24133. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24134. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24135. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24136. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24137. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24138. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24139. int_bt_a2dp_rx_mixer_controls,
  24140. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24141. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24142. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24143. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24144. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24145. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24146. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24147. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24148. tx_voice2_stub_mixer_controls,
  24149. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24150. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24151. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24152. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24153. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24154. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24155. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24156. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24157. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24158. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24159. SND_SOC_NOPM, 0, 0,
  24160. slimbus_6_rx_voice_mixer_controls,
  24161. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24162. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24163. slimbus_7_rx_voice_mixer_controls,
  24164. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24165. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24166. slimbus_8_rx_voice_mixer_controls,
  24167. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24168. /* port mixer */
  24169. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24170. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24171. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24172. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24173. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24174. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24175. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24176. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24177. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24178. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24179. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24180. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24181. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24182. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24183. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24184. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24185. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24186. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24187. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24188. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24189. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24190. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24191. sbus_1_rx_port_mixer_controls,
  24192. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24193. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24194. bt_sco_rx_port_mixer_controls,
  24195. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24196. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24197. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24198. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24199. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24200. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24201. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24202. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24203. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24204. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24205. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24206. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24207. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24208. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24209. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24210. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24211. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24212. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24213. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24214. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24215. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24216. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24217. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24218. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24219. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24220. primary_mi2s_rx_port_mixer_controls,
  24221. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24222. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24223. sec_mi2s_rx_port_mixer_controls,
  24224. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24225. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24226. tert_mi2s_rx_port_mixer_controls,
  24227. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24228. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24229. quat_mi2s_rx_port_mixer_controls,
  24230. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24231. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24232. quin_mi2s_rx_port_mixer_controls,
  24233. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24234. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24235. sen_mi2s_rx_port_mixer_controls,
  24236. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24237. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24238. pri_tdm_rx_0_port_mixer_controls,
  24239. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24240. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24241. pri_tdm_rx_1_port_mixer_controls,
  24242. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24243. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24244. pri_tdm_rx_2_port_mixer_controls,
  24245. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24246. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24247. pri_tdm_rx_3_port_mixer_controls,
  24248. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24249. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24250. sec_tdm_rx_0_port_mixer_controls,
  24251. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24252. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24253. sec_tdm_rx_1_port_mixer_controls,
  24254. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24255. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24256. sec_tdm_rx_2_port_mixer_controls,
  24257. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24258. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24259. sec_tdm_rx_3_port_mixer_controls,
  24260. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24261. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24262. sec_tdm_rx_7_port_mixer_controls,
  24263. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24264. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24265. tert_tdm_rx_0_port_mixer_controls,
  24266. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24267. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24268. tert_tdm_rx_1_port_mixer_controls,
  24269. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24270. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24271. tert_tdm_rx_2_port_mixer_controls,
  24272. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24273. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24274. tert_tdm_rx_3_port_mixer_controls,
  24275. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24276. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24277. quat_tdm_rx_0_port_mixer_controls,
  24278. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24279. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24280. quat_tdm_rx_1_port_mixer_controls,
  24281. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24282. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24283. quat_tdm_rx_2_port_mixer_controls,
  24284. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24285. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24286. quat_tdm_rx_3_port_mixer_controls,
  24287. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24288. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24289. quat_tdm_rx_7_port_mixer_controls,
  24290. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24291. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24292. quin_tdm_rx_0_port_mixer_controls,
  24293. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24294. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24295. quin_tdm_rx_1_port_mixer_controls,
  24296. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24297. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24298. quin_tdm_rx_2_port_mixer_controls,
  24299. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24300. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24301. quin_tdm_rx_3_port_mixer_controls,
  24302. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24303. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24304. quin_tdm_rx_7_port_mixer_controls,
  24305. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24306. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24307. sen_tdm_rx_0_port_mixer_controls,
  24308. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24309. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24310. sen_tdm_rx_1_port_mixer_controls,
  24311. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24312. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24313. sen_tdm_rx_2_port_mixer_controls,
  24314. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24315. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24316. sen_tdm_rx_3_port_mixer_controls,
  24317. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24318. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24319. int0_mi2s_rx_port_mixer_controls,
  24320. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24321. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24322. int4_mi2s_rx_port_mixer_controls,
  24323. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24324. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24325. wsa_cdc_dma_rx_0_port_mixer_controls,
  24326. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24327. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24328. rx_cdc_dma_rx_0_port_mixer_controls,
  24329. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24330. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24331. rx_cdc_dma_rx_1_port_mixer_controls,
  24332. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24333. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24334. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24335. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24336. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24337. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24338. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24339. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24340. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24341. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24342. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24343. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24344. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24345. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24346. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24347. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24348. /* lsm mixer definitions */
  24349. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24350. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24351. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24352. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24353. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24354. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24355. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24356. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24357. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24358. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24359. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24360. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24361. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24362. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24363. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24364. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24365. /* Virtual Pins to force backends ON atm */
  24366. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24367. SND_SOC_DAPM_INPUT("BE_IN"),
  24368. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24369. &slim0_rx_vi_fb_lch_mux),
  24370. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24371. &slim0_rx_vi_fb_rch_mux),
  24372. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24373. &wsa_rx_0_vi_fb_lch_mux),
  24374. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24375. &wsa_rx_0_vi_fb_rch_mux),
  24376. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24377. &mi2s_rx_vi_fb_mux),
  24378. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24379. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24380. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24381. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24382. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24383. &voc_ext_ec_mux),
  24384. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24385. &ext_ec_ref_mux_ul1),
  24386. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24387. &ext_ec_ref_mux_ul2),
  24388. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24389. &ext_ec_ref_mux_ul3),
  24390. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24391. &ext_ec_ref_mux_ul4),
  24392. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24393. &ext_ec_ref_mux_ul5),
  24394. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24395. &ext_ec_ref_mux_ul6),
  24396. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24397. &ext_ec_ref_mux_ul8),
  24398. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24399. &ext_ec_ref_mux_ul9),
  24400. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24401. &ext_ec_ref_mux_ul10),
  24402. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24403. &ext_ec_ref_mux_ul16),
  24404. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24405. &ext_ec_ref_mux_ul17),
  24406. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24407. &ext_ec_ref_mux_ul18),
  24408. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24409. &ext_ec_ref_mux_ul19),
  24410. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24411. &ext_ec_ref_mux_ul28),
  24412. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24413. &ext_ec_ref_mux_ul29),
  24414. };
  24415. static const struct snd_soc_dapm_route intercon[] = {
  24416. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24417. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24418. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24419. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24420. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24421. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24422. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24423. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24424. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24425. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24426. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24427. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24428. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24429. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24430. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24431. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24432. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24433. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24434. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24435. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24436. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24437. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24438. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24439. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24440. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24441. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24442. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24443. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24444. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24445. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24446. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24447. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24448. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24449. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24450. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24451. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24452. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24453. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24454. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24455. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24456. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24457. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24458. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24459. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24460. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24461. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24462. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24463. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24464. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24465. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24466. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24467. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24468. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24469. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24470. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24471. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24472. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24473. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24474. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24475. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24476. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24477. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24478. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24479. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24480. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24481. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24482. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24483. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24484. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24485. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24486. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24487. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24488. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24489. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24490. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24491. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24492. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24493. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24494. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24495. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24496. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24497. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24498. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24499. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24500. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24501. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24502. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24503. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24504. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24505. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24506. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24507. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24508. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24509. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24510. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24511. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24512. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24513. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24514. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24515. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24516. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24517. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24518. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24519. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24520. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24521. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24522. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24523. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24524. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24525. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24526. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24527. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24528. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24529. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24530. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24531. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24532. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24533. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24534. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24535. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24536. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24537. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24538. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24539. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24540. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24541. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24542. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24543. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24544. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24545. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24546. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24547. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24548. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24549. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24550. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24551. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24552. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24553. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24554. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24555. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24556. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24557. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24558. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24559. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24560. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24561. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24562. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24563. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24564. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24565. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24566. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24567. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24568. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24569. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24570. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24571. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24572. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24573. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24574. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24575. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24576. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24577. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24578. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24579. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24580. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24581. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24582. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24583. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24584. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24585. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24586. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24587. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24588. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24589. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24590. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24591. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24592. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24593. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24594. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24595. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24596. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24597. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24598. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24599. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24600. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24601. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24602. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24603. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24604. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24605. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24606. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24607. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24608. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24609. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24610. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24611. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24612. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24613. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24614. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24615. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24616. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24617. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24618. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24619. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24620. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24621. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24622. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24623. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24624. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24625. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24626. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24627. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24628. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24629. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24630. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24631. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24632. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24633. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24634. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24635. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24636. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24637. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24638. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24639. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24640. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24641. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24642. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24643. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24644. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24645. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24646. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24647. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24648. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24649. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24650. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24651. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24652. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24653. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24654. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24655. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24656. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24657. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24658. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24659. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24660. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24661. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24662. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24663. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24664. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24665. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24666. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24667. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24668. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24669. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24670. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24671. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24672. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24673. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24674. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24675. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24676. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24677. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24678. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24679. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24680. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24681. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24682. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24683. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24684. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24685. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24686. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24687. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24688. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24689. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24690. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24691. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24692. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24693. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24694. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24695. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24696. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24697. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24698. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24699. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24700. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24701. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24702. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24703. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24704. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24705. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24706. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24707. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24708. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24709. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24710. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24711. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24712. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24713. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24714. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24715. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24716. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24717. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24718. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24719. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24720. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24721. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24722. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24723. {"HDMI", NULL, "HDMI Mixer"},
  24724. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24725. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24726. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24727. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24728. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24729. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24730. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24731. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24732. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24733. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24734. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24735. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24736. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24737. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24738. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24739. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24740. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24741. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24742. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24743. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24744. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24745. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24746. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24747. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24748. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24749. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24750. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24751. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24752. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24753. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24754. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24755. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24756. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24757. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24758. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24759. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24760. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24761. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24762. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24763. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24764. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24765. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24766. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24767. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24768. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24769. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24770. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24771. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24772. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24773. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24774. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24775. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24776. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24777. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24778. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24779. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24780. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24781. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24782. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24783. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24784. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24785. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24786. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24787. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24788. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24789. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24790. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24791. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24792. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24793. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24794. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24795. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24796. /* incall */
  24797. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24798. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24799. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24800. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24801. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24802. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24803. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24804. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24805. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24806. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24807. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24808. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24809. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24810. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24811. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24812. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24813. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24814. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24815. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24816. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24817. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24818. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24819. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24820. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24821. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24822. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24823. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24824. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24825. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24826. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24827. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24828. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24829. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24830. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24831. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24832. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24833. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24834. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24835. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24836. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24837. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24838. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24839. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24840. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24841. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24842. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24843. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24844. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24845. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24846. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24847. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24848. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24849. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24850. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24851. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24852. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24853. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24854. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24855. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24856. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24857. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24858. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24859. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24860. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24861. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24862. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24863. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24864. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24865. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24866. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24867. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24868. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24869. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24870. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24871. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24872. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24873. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24874. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24875. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24876. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24877. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24878. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24879. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24880. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24881. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24882. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24883. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24884. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24885. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24886. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24887. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24888. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24889. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24890. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24891. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24892. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24893. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24894. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24895. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24896. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24897. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24898. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24899. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24900. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24901. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24902. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24903. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24904. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24905. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24906. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24907. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24908. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24909. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24910. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24911. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24912. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24913. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24914. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24915. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24916. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24917. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24918. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24919. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24920. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24921. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24922. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24923. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24924. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24925. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24926. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24927. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24928. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24929. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24930. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24931. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24932. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24933. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24934. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24935. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24936. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24937. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24938. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24939. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24940. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24941. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24942. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24943. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24944. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24945. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24946. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24947. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24948. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24949. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24950. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24951. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24952. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24953. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24954. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24955. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24956. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24957. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24958. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24959. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24960. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24961. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24962. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24963. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24964. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24965. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24966. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24967. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24968. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24969. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24970. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24971. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24972. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24973. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24974. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24975. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24976. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24977. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24978. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24979. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24980. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24981. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24982. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24983. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24984. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24985. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24986. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24987. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24988. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24989. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24990. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24991. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24992. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24993. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24994. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24995. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24996. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24997. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24998. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24999. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25000. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25001. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25002. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25003. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25004. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  25005. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25006. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25007. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25008. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25009. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25010. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25011. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25012. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25013. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25014. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25015. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25016. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25017. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25018. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25019. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25020. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  25021. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25022. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25023. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25024. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25025. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25026. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25027. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25028. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25029. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25030. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25031. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25032. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25033. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25034. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25035. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25036. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25037. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25038. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25039. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25040. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25041. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25042. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25043. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25044. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25045. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25046. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25047. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25048. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25049. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25050. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25051. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25052. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25053. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25054. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25055. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25056. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25057. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25058. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25059. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25060. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25061. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25062. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25063. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25064. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25065. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25066. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25067. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25068. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25069. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25070. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25071. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25072. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25073. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25074. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25075. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25076. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25077. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25078. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25079. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25080. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25081. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25082. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25083. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25084. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25085. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25086. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25087. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25088. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25089. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25090. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25091. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25092. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25093. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25094. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25095. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25096. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25097. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25098. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25099. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25100. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25101. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25102. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25103. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25104. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25105. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25106. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25107. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25108. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25109. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25110. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25111. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25112. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25113. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25114. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25115. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25116. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25117. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25118. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25119. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25120. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25121. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25122. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25123. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25124. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25125. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25126. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25127. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25128. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25129. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25130. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25131. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25132. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25133. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25134. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25135. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25136. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25137. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25138. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25139. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25140. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25141. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25142. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25143. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25144. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25145. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25146. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25147. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25148. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25149. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25150. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25151. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25152. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25153. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25154. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25155. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25156. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25157. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25158. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25159. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25160. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25161. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25162. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25163. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25164. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25165. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25166. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25167. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25168. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25169. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25170. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25171. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25172. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25173. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25174. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25175. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25176. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25177. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25178. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25179. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25180. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25181. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25182. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25183. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25184. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25185. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25186. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25187. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25188. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25189. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25190. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25191. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25192. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25193. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25194. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25195. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25196. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25197. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25198. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25199. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25200. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25201. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25202. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25203. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25204. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25205. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25206. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25207. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25208. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25209. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25210. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25211. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25212. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25213. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25214. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25215. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25216. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25217. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25218. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25219. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25220. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25221. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25222. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25223. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25224. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25225. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25226. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25227. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25228. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25229. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25230. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25231. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25232. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25233. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25234. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25235. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25236. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25237. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25238. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25239. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25240. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25241. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25242. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25243. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25244. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25245. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25246. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25247. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25248. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25249. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25250. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25251. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25252. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25253. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25254. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25255. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25256. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25257. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25258. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25259. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25260. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25261. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25262. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25263. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25264. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25265. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25266. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25267. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25268. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25269. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25270. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25271. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25272. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25273. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25274. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25275. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25276. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25277. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25278. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25279. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25280. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25281. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25282. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25283. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25284. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25285. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25286. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25287. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25288. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25289. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25290. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25291. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25292. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25293. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25294. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25295. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25296. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25297. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25298. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25299. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25300. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25301. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25302. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25303. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25304. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25305. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25306. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25307. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25308. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25309. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25310. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25311. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25312. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25313. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25314. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25315. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25316. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25317. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25318. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25319. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25320. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25321. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25322. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25323. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25324. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25325. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25326. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25327. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25328. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25329. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25330. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25331. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25332. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25333. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25334. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25335. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25336. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25337. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25338. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25339. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25340. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25341. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25342. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25343. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25344. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25345. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25346. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25347. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25348. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25349. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25350. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25351. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25352. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25353. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25354. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25355. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25356. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25357. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25358. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25359. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25360. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25361. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25362. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25363. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25364. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25365. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25366. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25367. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25368. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25369. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25370. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25371. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25372. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25373. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25374. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25375. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25376. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25377. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25378. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25379. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25380. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25381. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25382. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25383. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25384. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25385. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25386. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25387. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25388. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25389. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25390. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25391. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25392. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25393. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25394. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25395. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25396. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25397. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25398. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25399. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25400. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25401. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25402. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25403. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25404. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25405. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25406. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25407. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25408. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25409. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25410. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25411. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25412. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25413. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25414. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25415. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25416. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25417. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25418. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25419. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25420. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25421. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25422. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25423. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25424. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25425. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25426. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25427. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25428. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25429. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25430. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25431. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25432. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25433. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25434. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25435. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25436. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25437. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25438. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25439. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25440. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25441. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25442. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25443. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25444. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25445. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25446. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25447. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25448. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25449. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25450. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25451. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25452. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25453. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25454. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25455. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25456. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25457. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25458. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25459. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25460. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25461. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25462. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25463. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25464. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25465. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25466. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25467. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25468. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25469. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25470. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25471. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25472. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25473. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25474. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25475. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25476. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25477. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25478. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25479. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25480. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25481. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25482. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25483. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25484. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25485. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25486. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25487. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25488. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25489. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25490. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25491. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25492. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25493. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25494. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25495. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25496. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25497. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25498. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25499. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25500. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25501. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25502. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25503. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25504. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25505. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25506. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25507. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25508. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25509. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25510. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25511. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25512. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25513. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25514. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25515. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25516. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25517. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25518. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25519. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25520. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25521. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25522. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25523. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25524. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25525. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25526. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25527. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25528. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25529. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25530. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25531. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25532. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25533. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25534. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25535. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25536. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25537. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25538. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25539. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25540. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25541. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25542. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25543. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25544. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25545. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25546. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25547. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25548. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25549. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25550. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25551. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25552. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25553. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25554. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25555. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25556. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25557. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25558. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25559. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25560. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25561. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25562. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25563. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25564. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25565. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25566. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25567. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25568. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25569. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25570. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25571. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25572. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25573. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25574. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25575. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25576. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25577. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25578. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25579. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25580. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25581. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25582. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25583. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25584. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25585. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25586. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25587. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25588. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25589. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25590. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25591. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25592. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25593. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25594. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25595. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25596. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25597. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25598. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25599. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25600. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25601. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25602. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25603. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25604. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25605. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25606. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25607. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25608. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25609. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25610. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25611. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25612. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25613. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25614. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25615. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25616. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25617. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25618. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25619. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25620. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25621. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25622. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25623. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25624. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25625. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25626. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25627. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25628. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25629. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25630. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25631. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25632. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25633. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25634. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25635. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25636. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25637. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25638. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25639. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25640. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25641. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25642. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25643. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25644. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25645. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25646. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25647. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25648. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25649. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25650. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25651. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25652. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25653. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25654. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25655. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25656. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25657. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25658. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25659. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25660. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25661. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25662. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25663. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25664. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25665. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25666. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25667. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25668. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25669. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25670. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25671. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25672. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25673. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25674. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25675. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25676. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25677. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25678. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25679. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25680. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25681. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25682. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25683. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25684. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25685. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25686. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25687. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25688. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25689. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25690. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25691. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25692. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25693. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25694. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25695. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25696. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25697. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25698. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25699. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25700. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25701. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25702. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25703. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25704. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25705. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25706. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25707. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25708. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25709. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25710. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25711. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25712. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25713. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25714. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25715. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25716. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25717. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25718. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25719. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25720. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25721. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25722. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25723. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25724. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25725. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25726. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25727. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25728. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25729. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25730. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25731. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25732. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25733. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25734. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25735. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25736. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25737. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25738. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25739. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25740. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25741. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25742. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25743. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25744. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25745. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25746. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25747. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25748. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25749. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25750. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25751. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25752. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25753. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25754. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25755. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25756. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25757. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25758. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25759. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25760. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25761. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25762. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25763. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25764. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25765. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25766. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25767. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25768. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25769. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25770. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25771. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25772. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25773. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25774. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25775. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25776. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25777. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25778. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25779. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25780. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25781. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25782. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25783. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25784. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25785. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25786. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25787. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25788. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25789. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25790. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25791. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25792. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25793. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25794. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25795. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25796. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25797. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25798. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25799. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25800. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25801. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25802. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25803. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25804. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25805. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25806. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25807. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25808. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25809. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25810. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25811. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25812. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25813. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25814. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25815. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25816. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25817. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25818. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25819. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25820. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25821. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25822. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25823. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25824. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25825. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25826. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25827. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25828. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25829. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25830. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25831. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25832. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25833. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25834. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25835. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25836. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25837. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25838. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25839. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25840. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25841. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25842. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25843. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25844. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25845. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25846. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25847. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25848. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25849. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25850. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25851. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25852. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25853. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25854. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25855. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25856. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25857. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25858. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25859. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25860. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25861. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25862. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25863. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25864. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25865. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25866. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25867. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25868. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25869. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25870. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25871. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25872. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25873. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25874. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25875. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25876. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25877. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25878. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25879. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25880. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25881. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25882. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25883. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25884. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25885. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25886. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25887. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25888. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25889. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25890. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25891. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25892. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25893. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25894. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25895. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25896. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25897. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25898. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25899. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25900. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25901. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25902. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25903. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25904. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25905. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25906. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25907. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25908. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25909. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25910. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25911. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25912. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25913. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25914. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25915. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25916. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25917. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25918. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25919. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25920. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25921. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25922. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25923. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25924. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25925. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25926. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25927. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25928. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25929. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25930. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25931. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25932. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25933. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25934. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25935. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25936. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25937. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25938. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25939. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25940. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25941. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25942. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25943. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25944. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25945. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25946. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25947. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25948. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25949. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25950. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25951. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25952. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25953. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25954. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25955. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25956. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25957. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25958. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25959. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25960. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25961. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25962. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25963. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25964. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25965. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25966. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25967. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25968. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25969. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25970. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25971. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25972. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25973. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25974. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25975. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25976. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25977. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25978. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25979. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25980. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25981. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25982. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25983. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25984. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25985. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25986. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25987. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25988. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25989. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25990. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25991. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25992. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25993. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25994. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25995. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25996. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25997. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25998. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25999. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26000. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26001. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26002. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26003. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26004. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26005. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26006. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26007. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26008. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26009. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26010. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26011. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26012. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26013. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26014. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26015. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26016. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26017. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26018. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26019. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26020. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26021. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26022. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26023. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26024. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26025. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26026. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26027. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26028. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26029. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26030. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26031. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26032. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26033. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26034. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26035. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26036. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26037. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26038. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26039. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26040. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26041. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26042. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26043. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26044. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26045. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26046. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26047. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26048. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26049. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26050. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26051. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26052. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26053. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26054. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26055. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26056. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26057. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26058. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26059. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26060. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26061. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26062. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26063. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26064. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26065. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26066. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26067. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26068. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26069. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26070. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26071. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26072. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26073. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26074. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26075. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26076. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26077. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26078. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26079. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26080. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26081. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26082. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26083. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26084. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26085. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26086. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26087. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26088. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26089. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26090. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26091. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26092. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26093. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26094. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26095. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26096. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26097. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26098. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26099. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26100. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26101. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26102. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26103. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26104. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26105. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26106. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26107. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26108. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26109. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26110. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26111. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26112. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26113. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26114. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26115. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26116. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26117. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26118. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26119. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26120. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26121. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26122. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26123. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26124. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26125. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26126. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26127. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26128. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26129. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26130. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26131. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26132. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26133. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26134. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26135. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26136. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26137. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26138. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26139. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26140. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26141. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26142. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26143. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26144. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26145. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26146. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26147. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26148. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26149. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26150. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26151. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26152. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26153. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26154. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26155. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26156. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26157. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26158. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26159. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26160. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26161. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26162. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26163. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26164. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26165. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26166. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26167. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26168. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26169. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26170. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26171. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26172. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26173. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26174. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26175. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26176. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26177. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26178. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26179. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26180. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26181. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26182. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26183. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26184. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26185. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26186. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26187. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26188. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26189. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26190. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26191. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26192. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26193. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26194. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26195. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26196. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26197. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26198. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26199. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26200. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26201. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26202. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26203. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26204. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26205. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26206. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26207. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26208. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26209. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26210. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26211. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26212. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26213. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26214. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26215. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26216. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26217. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26218. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26219. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26220. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26221. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26222. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26223. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26224. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26225. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26226. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26227. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26228. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26229. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26230. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26231. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26232. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26233. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26234. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26235. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26236. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26237. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26238. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26239. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26240. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26241. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26242. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26243. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26244. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26245. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26246. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26247. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26248. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26249. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26250. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26251. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26252. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26253. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26254. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26255. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26256. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26257. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26258. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26259. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26260. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26261. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26262. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26263. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26264. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26265. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26266. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26267. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26268. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26269. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26270. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26271. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26272. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26273. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26274. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26275. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26276. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26277. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26278. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26279. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26280. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26281. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26282. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26283. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26284. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26285. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26286. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26287. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26288. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26289. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26290. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26291. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26292. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26293. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26294. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26295. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26296. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26297. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26298. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26299. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26300. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26301. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26302. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26303. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26304. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26305. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26306. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26307. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26308. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26309. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26310. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26311. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26312. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26313. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26314. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26315. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26316. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26317. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26318. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26319. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26320. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26321. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26322. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26323. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26324. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26325. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26326. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26327. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26328. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26329. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26330. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26331. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26332. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26333. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26334. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26335. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26336. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26337. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26338. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26339. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26340. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26341. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26342. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26343. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26344. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26345. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26346. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26347. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26348. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26349. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26350. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26351. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26352. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26353. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26354. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26355. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26356. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26357. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26358. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26359. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26360. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26361. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26362. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26363. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26364. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26365. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26366. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26367. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26368. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26369. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26370. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26371. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26372. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26373. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26374. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26375. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26376. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26377. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26378. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26379. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26380. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26381. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26382. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26383. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26384. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26385. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26386. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26387. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26388. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26389. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26390. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26391. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26392. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26393. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26394. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26395. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26396. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26397. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26398. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26399. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26400. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26401. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26402. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26403. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26404. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26405. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26406. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26407. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26408. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26409. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26410. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26411. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26412. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26413. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26414. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26415. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26416. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26417. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26418. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26419. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26420. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26421. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26422. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26423. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26424. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26425. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26426. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26427. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26428. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26429. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26430. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26431. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26432. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26433. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26434. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26435. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26436. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26437. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26438. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26439. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26440. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26441. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26442. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26443. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26444. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26445. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26446. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26447. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26448. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26449. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26450. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26451. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26452. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26453. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26454. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26455. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26456. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26457. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26458. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26459. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26460. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26461. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26462. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26463. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26464. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26465. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26466. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26467. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26468. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26469. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26470. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26471. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26472. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26473. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26474. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26475. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26476. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26477. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26478. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26479. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26480. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26481. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26482. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26483. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26484. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26485. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26486. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26487. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26488. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26489. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26490. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26491. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26492. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26493. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26494. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26495. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26496. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26497. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26498. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26499. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26500. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26501. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26502. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26503. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26504. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26505. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26506. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26507. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26508. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26509. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26510. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26511. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26512. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26513. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26514. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26515. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26516. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26517. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26518. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26519. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26520. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26521. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26522. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26523. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26524. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26525. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26526. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26527. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26528. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26529. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26530. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26531. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26532. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26533. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26534. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26535. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26536. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26537. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26538. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26539. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26540. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26541. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26542. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26543. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26544. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26545. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26546. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26547. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26548. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26549. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26550. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26551. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26552. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26553. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26554. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26555. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26556. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26557. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26558. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26559. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26560. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26561. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26562. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26563. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26564. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26565. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26566. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26567. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26568. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26569. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26570. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26571. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26572. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26573. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26574. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26575. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26576. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26577. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26578. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26579. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26580. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26581. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26582. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26583. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26584. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26585. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26586. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26587. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26588. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26589. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26590. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26591. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26592. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26593. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26594. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26595. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26596. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26597. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26598. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26599. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26600. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26601. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26602. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26603. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26604. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26605. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26606. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26607. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26608. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26609. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26610. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26611. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26612. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26613. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26614. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26615. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26616. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26617. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26618. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26619. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26620. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26621. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26622. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26623. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26624. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26625. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26626. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26627. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26628. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26629. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26630. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26631. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26632. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26633. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26634. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26635. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26636. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26637. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26638. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26639. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26640. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26641. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26642. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26643. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26644. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26645. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26646. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26647. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26648. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26649. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26650. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26651. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26652. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26653. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26654. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26655. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26656. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26657. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26658. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26659. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26660. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26661. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26662. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26663. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26664. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26665. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26666. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26667. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26668. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26669. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26670. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26671. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26672. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26673. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26674. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26675. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26676. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26677. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26678. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26679. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26680. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26681. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26682. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26683. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26684. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26685. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26686. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26687. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26688. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26689. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26690. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26691. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26692. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26693. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26694. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26695. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26696. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26697. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26698. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26699. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26700. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26701. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26702. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26703. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26704. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26705. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26706. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26707. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26708. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26709. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26710. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26711. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26712. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26713. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26714. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26715. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26716. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26717. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26718. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26719. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26720. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26721. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26722. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26723. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26724. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26725. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26726. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26727. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26728. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26729. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26730. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26731. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26732. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26733. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26734. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26735. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26736. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26737. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26738. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26739. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26740. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26741. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26742. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26743. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26744. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26745. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26746. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26747. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26748. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26749. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26750. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26751. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26752. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26753. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26754. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26755. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26756. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26757. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26758. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26759. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26760. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26761. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26762. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26763. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26764. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26765. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26766. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26767. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26768. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26769. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26770. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26771. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26772. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26773. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26774. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26775. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26776. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26777. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26778. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26779. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26780. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26781. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26782. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26783. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26784. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26785. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26786. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26787. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26788. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26789. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26790. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26791. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26792. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26793. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26794. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26795. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26796. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26797. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26798. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26799. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26800. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26801. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26802. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26803. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26804. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26805. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26806. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26807. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26808. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26809. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26810. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26811. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26812. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26813. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26814. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26815. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26816. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26817. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26818. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26819. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26820. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26821. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26822. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26823. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26824. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26825. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26826. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26827. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26828. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26829. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26830. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26831. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26832. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26833. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26834. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26835. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26836. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26837. {"HDMI", NULL, "HDMI_DL_HL"},
  26838. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26839. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26840. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26841. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26842. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26843. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26844. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26845. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26846. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26847. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26848. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26849. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26850. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26851. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26852. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26853. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26854. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26855. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26856. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26857. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26858. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26859. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26860. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26861. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26862. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26863. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26864. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26865. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26866. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26867. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26868. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26869. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26870. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26871. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26872. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26873. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26874. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26875. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26876. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26877. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26878. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26879. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26880. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26881. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26882. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26883. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26884. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26885. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26886. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26887. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26888. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26889. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26890. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26891. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26892. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26893. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26894. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26895. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26896. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26897. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26898. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26899. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26900. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26901. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26902. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26903. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26904. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26905. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26906. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26907. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26908. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26909. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26910. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26911. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26912. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26913. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26914. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26915. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26916. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26917. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26918. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26919. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26920. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26921. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26922. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26923. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26924. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26925. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26926. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26927. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26928. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26929. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26930. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26931. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26932. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26933. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26934. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26935. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26936. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26937. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26938. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  26939. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26940. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  26941. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26942. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26943. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26944. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26945. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26946. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26947. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26948. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26949. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26950. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26951. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26952. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26953. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26954. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26955. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26956. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26957. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26958. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26959. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26960. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26961. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26962. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26963. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26964. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26965. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26966. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26967. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26968. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26969. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26970. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26971. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26972. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26973. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26974. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26975. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26976. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26977. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26978. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26979. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26980. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26981. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26982. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26983. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26984. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26985. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26986. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26987. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26988. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26989. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26990. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26991. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26992. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26993. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26994. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26995. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26996. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26997. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26998. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26999. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27000. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27001. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27002. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27003. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27004. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27005. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27006. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27007. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27008. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27009. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27010. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27011. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27012. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27013. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27014. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27015. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27016. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27017. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27018. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27019. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27020. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27021. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27022. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27023. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27024. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27025. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27026. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27027. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27028. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27029. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27030. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27031. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27032. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27033. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27034. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27035. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27036. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27037. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27038. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27039. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27040. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27041. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27042. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27043. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27044. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27045. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27046. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27047. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27048. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27049. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27050. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27051. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27052. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27053. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27054. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27055. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27056. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27057. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27058. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27059. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27060. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27061. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27062. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27063. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27064. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27065. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27066. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27067. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27068. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27069. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27070. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27071. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27072. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27073. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27074. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27075. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27076. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27077. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27078. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27079. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27080. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27081. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27082. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27083. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27084. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27085. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27086. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27087. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27088. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27089. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  27090. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27091. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27092. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27093. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27094. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27095. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27096. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27097. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27098. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27099. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27100. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27101. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27102. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27103. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27104. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27105. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27106. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27107. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27108. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27109. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27110. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27111. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27112. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27113. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27114. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27115. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27116. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27117. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27118. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  27119. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27120. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27121. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27122. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27123. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27124. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27125. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27126. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27127. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27128. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27129. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27130. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27131. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27132. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27133. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27134. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27135. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27136. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27137. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27138. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27139. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27140. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27141. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27142. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27143. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27144. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27145. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27146. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27147. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27148. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27149. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27150. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27151. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27152. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27153. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27154. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27155. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27156. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27157. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27158. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27159. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27160. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27161. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27162. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27163. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27164. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27165. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27166. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27167. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27168. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27169. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27170. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27171. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27172. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27173. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27174. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27175. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27176. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27177. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27178. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27179. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27180. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27181. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27182. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27183. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27184. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27185. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27186. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27187. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27188. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27189. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27190. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27191. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27192. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27193. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27194. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27195. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27196. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27197. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27198. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27199. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27200. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27201. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27202. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27203. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27204. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27205. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27206. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27207. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27208. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27209. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27210. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27211. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27212. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27213. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27214. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27215. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27216. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27217. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27218. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27219. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27220. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27221. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27222. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27223. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27224. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27225. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27226. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27227. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27228. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27229. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27230. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27231. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27232. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27233. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27234. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27235. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27236. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27237. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27238. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27239. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27240. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27241. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27242. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27243. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27244. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27245. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27246. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27247. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27248. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27249. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27250. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27251. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27252. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27253. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27254. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27255. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27256. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27257. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27258. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27259. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27260. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27261. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27262. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27263. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27264. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27265. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27266. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27267. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27268. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27269. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27270. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27271. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27272. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27273. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27274. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27275. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27276. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27277. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27278. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27279. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27280. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27281. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27282. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27283. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27284. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27285. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27286. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27287. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27288. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27289. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27290. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27291. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27292. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27293. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27294. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27295. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27296. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27297. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27298. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27299. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27300. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27301. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27302. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27303. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27304. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27305. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27306. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27307. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27308. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27309. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27310. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27311. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27312. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27313. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27314. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27315. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27316. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27317. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27318. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27319. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27320. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27321. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27322. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27323. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27324. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27325. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27326. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27327. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27328. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27329. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27330. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27331. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27332. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27333. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27334. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27335. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27336. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27337. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27338. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27339. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27340. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27341. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27342. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27343. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27344. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27345. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27346. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27347. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27348. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27349. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27350. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27351. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27352. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27353. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27354. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27355. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27356. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27357. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27358. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27359. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27360. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27361. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27362. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27363. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27364. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27365. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27366. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27367. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27368. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27369. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27370. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27371. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27372. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27373. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27374. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27375. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27376. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27377. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27378. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27379. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27380. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27381. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27382. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27383. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27384. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27385. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27386. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27387. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27388. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27389. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27390. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27391. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27392. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27393. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27394. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27395. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27396. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27397. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27398. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27399. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27400. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27401. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27402. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27403. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27404. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27405. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27406. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27407. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27408. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27409. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27410. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27411. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27412. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27413. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27414. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27415. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27416. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27417. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27418. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27419. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27420. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27421. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27422. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27423. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27424. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27425. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27426. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27427. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27428. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27429. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27430. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27431. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27432. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27433. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27434. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27435. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27436. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27437. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27438. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27439. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27440. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27441. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27442. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27443. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27444. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27445. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27446. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27447. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27448. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27449. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27450. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27451. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27452. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27453. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27454. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27455. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27456. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27457. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27458. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27459. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27460. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27461. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27462. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27463. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27464. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27465. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27466. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27467. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27468. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27469. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27470. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27471. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27472. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27473. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27474. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27475. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27476. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27477. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27478. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27479. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27480. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27481. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27482. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27483. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27484. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27485. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27486. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27487. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27488. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27489. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27490. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27491. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27492. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27493. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27494. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27495. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27496. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27497. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27498. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27499. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27500. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27501. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27502. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27503. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27504. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27505. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27506. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27507. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27508. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27509. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27510. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27511. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27512. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27513. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27514. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27515. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27516. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27517. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27518. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27519. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27520. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27521. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27522. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27523. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27524. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27525. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27526. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27527. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27528. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27529. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27530. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27531. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27532. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27533. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27534. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27535. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27536. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27537. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27538. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27539. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27540. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27541. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27542. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27543. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27544. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27545. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27546. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27547. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27548. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27549. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27550. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27551. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27552. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27553. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27554. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27555. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27556. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27557. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27558. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27559. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27560. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27561. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27562. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27563. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27564. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27565. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27566. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27567. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27568. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27569. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27570. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27571. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27572. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27573. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27574. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27575. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27576. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27577. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27578. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27579. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27580. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27581. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27582. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27583. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27584. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27585. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27586. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27587. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27588. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27589. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27590. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27591. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27592. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27593. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27594. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27595. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27596. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27597. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27598. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27599. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27600. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27601. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27602. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27603. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27604. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27605. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27606. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27607. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27608. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27609. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27610. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27611. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27612. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27613. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27614. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27615. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27616. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27617. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27618. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27619. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27620. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27621. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27622. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27623. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27624. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27625. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27626. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27627. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27628. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27629. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27630. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27631. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27632. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27633. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27634. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27635. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27636. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27637. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27638. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27639. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27640. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27641. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27642. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27643. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27644. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27645. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27646. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27647. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27648. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27649. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27650. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27651. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27652. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27653. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27654. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27655. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27656. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27657. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27658. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27659. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27660. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27661. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27662. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27663. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27664. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27665. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27666. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27667. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27668. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27669. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27670. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27671. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27672. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27673. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27674. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27675. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27676. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27677. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27678. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27679. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27680. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27681. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27682. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27683. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27684. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27685. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27686. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27687. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27688. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27689. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27690. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27691. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27692. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27693. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27694. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27695. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27696. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27697. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27698. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27699. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27700. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27701. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27702. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27703. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27704. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27705. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27706. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27707. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27708. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27709. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27710. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27711. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27712. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27713. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27714. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27715. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27716. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27717. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27718. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27719. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27720. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27721. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27722. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27723. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27724. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27725. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27726. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27727. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27728. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27729. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27730. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27731. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27732. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27733. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27734. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27735. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27736. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27737. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27738. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27739. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27740. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27741. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27742. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27743. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27744. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27745. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27746. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27747. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27748. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27749. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27750. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27751. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27752. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27753. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27754. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27755. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27756. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27757. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27758. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27759. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27760. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27761. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27762. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27763. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27764. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27765. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27766. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27767. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27768. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27769. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27770. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27771. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27772. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27773. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27774. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27775. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27776. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27777. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27778. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27779. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27780. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27781. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27782. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27783. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27784. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27785. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27786. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27787. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27788. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27789. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27790. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27791. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27792. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27793. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27794. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27795. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27796. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27797. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27798. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27799. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27800. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27801. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27802. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27803. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27804. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27805. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27806. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27807. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27808. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27809. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27810. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27811. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27812. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27813. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27814. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27815. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27816. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27817. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27818. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27819. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27820. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27821. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27822. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27823. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27824. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27825. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27826. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27827. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27828. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27829. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27830. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27831. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27832. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27833. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27834. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27835. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27836. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27837. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27838. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27839. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27840. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27841. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27842. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27843. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27844. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27845. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27846. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27847. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27848. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27849. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27850. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27851. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27852. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27853. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27854. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27855. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27856. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27857. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27858. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27859. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27860. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27861. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27862. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27863. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27864. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27865. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27866. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27867. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27868. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27869. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27870. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27871. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27872. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27873. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27874. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27875. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27876. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27877. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27878. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27879. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27880. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27881. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27882. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27883. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27884. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27885. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27886. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27887. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27888. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27889. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27890. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27891. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27892. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27893. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27894. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27895. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27896. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27897. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27898. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27899. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27900. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27901. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27902. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27903. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27904. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27905. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27906. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27907. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27908. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27909. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27910. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27911. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27912. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27913. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27914. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27915. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27916. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27917. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27918. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27919. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27920. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27921. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27922. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27923. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27924. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27925. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27926. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27927. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27928. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27929. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27930. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27931. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27932. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27933. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27934. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27935. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27936. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27937. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27938. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27939. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27940. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27941. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27942. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27943. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27944. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27945. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27946. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27947. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27948. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27949. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27950. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27951. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27952. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27953. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27954. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27955. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27956. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27957. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27958. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27959. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27960. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27961. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27962. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27963. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27964. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27965. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27966. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27967. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27968. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27969. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27970. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27971. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27972. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27973. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27974. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27975. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27976. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27977. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27978. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27979. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27980. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27981. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27982. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27983. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27984. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27985. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27986. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27987. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27988. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27989. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27990. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27991. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27992. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27993. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27994. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27995. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27996. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27997. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27998. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27999. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28000. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28001. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28002. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28003. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28004. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28005. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28006. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28007. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28008. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28009. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28010. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28011. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  28012. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28013. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28014. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28015. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28016. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28017. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28018. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28019. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28020. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28021. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28022. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28023. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28024. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  28025. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28026. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28027. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28028. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28029. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28030. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28031. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28032. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28033. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28034. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28035. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28036. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28037. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28038. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28039. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28040. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28041. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28042. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28043. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28044. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28045. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28046. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28047. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28048. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28049. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28050. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28051. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28052. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28053. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28054. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28055. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28056. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28057. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28058. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28059. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28060. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28061. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28062. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28063. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28064. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28065. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28066. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28067. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28068. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28069. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28070. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28071. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28072. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28073. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28074. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28075. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28076. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28077. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28078. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28079. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28080. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28081. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28082. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28083. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28084. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28085. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28086. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28087. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28088. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28089. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28090. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28091. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28092. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28093. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28094. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28095. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28096. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28097. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28098. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28099. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28100. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28101. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28102. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28103. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28104. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28105. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28106. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28107. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28108. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28109. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28110. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28111. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28112. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28113. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28114. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28115. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28116. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28117. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28118. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28119. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28120. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28121. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28122. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28123. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28124. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28125. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28126. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28127. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28128. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28129. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28130. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28131. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28132. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28133. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28134. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28135. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28136. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28137. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28138. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28139. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28140. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28141. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28142. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28143. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28144. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28145. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28146. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28147. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28148. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28149. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28150. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28151. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28152. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28153. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28154. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28155. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28156. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28157. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28158. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28159. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28160. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28161. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28162. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28163. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28164. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28165. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28166. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28167. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28168. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28169. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28170. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28171. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28172. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28173. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28174. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28175. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28176. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28177. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28178. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28179. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28180. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28181. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28182. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28183. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28184. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28185. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28186. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28187. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28188. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28189. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28190. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28191. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28192. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28193. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28194. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28195. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28196. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28197. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28198. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28199. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28200. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28201. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28202. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28203. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28204. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28205. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28206. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28207. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28208. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28209. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28210. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28211. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28212. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28213. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28214. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28215. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28216. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28217. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28218. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28219. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28220. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28221. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28222. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28223. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28224. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28225. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28226. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28227. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28228. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28229. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28230. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28231. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28232. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28233. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28234. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28235. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28236. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28237. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28238. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28239. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28240. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28241. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28242. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28243. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28244. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28245. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28246. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28247. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28248. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28249. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28250. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28251. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28252. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28253. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28254. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28255. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28256. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28257. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28258. /* Backend Enablement */
  28259. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28260. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28261. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28262. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28263. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28264. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28265. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28266. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28267. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28268. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28269. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28270. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28271. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28272. {"BE_OUT", NULL, "HDMI"},
  28273. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28274. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28275. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28276. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28277. {"BE_OUT", NULL, "MI2S_RX"},
  28278. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28279. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28280. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28281. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28282. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28283. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28284. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28285. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28286. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28287. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28288. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28289. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28290. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28291. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28292. {"BE_OUT", NULL, "INT_FM_RX"},
  28293. {"BE_OUT", NULL, "PCM_RX"},
  28294. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28295. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28296. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28297. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28298. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28299. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28300. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28301. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28302. {"BE_OUT", NULL, "INT_FM_RX"},
  28303. {"BE_OUT", NULL, "PCM_RX"},
  28304. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28305. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28306. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28307. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28308. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28309. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28310. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28311. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28312. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28313. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28314. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28315. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28316. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28317. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28318. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28319. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28320. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28321. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28322. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28323. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28324. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28325. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28326. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28327. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28328. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28329. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28330. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28331. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28332. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28333. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28334. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28335. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28336. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28337. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28338. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28339. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28340. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28341. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28342. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28343. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28344. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28345. {"BE_OUT", NULL, "PROXY_RX"},
  28346. {"PRI_I2S_TX", NULL, "BE_IN"},
  28347. {"MI2S_TX", NULL, "BE_IN"},
  28348. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28349. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28350. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28351. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28352. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28353. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28354. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28355. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28356. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28357. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28358. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28359. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28360. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28361. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28362. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28363. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28364. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28365. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28366. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28367. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28368. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28369. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28370. {"INT_FM_TX", NULL, "BE_IN"},
  28371. {"PCM_TX", NULL, "BE_IN"},
  28372. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28373. {"BE_OUT", NULL, "STUB_RX"},
  28374. {"STUB_TX", NULL, "BE_IN"},
  28375. {"STUB_1_TX", NULL, "BE_IN"},
  28376. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28377. {"AUX_PCM_TX", NULL, "BE_IN"},
  28378. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28379. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28380. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28381. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28382. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28383. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28384. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28385. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28386. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28387. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28388. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28389. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28390. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28391. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28392. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28393. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28394. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28395. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28396. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28397. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28398. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28399. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28400. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28401. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28402. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28403. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28404. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28405. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28406. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28407. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28408. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28409. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28410. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28411. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28412. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28413. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28414. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28415. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28416. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28417. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28418. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28419. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28420. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28421. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28422. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28423. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28424. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28425. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28426. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28427. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28428. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28429. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28430. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28431. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28432. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28433. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28434. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28435. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28436. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28437. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28438. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28439. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28440. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28441. {"PROXY_TX", NULL, "BE_IN"},
  28442. };
  28443. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28444. struct snd_pcm_hw_params *params)
  28445. {
  28446. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28447. unsigned int be_id = rtd->dai_link->id;
  28448. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28449. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28450. return -EINVAL;
  28451. }
  28452. mutex_lock(&routing_lock);
  28453. msm_bedais[be_id].sample_rate = params_rate(params);
  28454. msm_bedais[be_id].channel = params_channels(params);
  28455. msm_bedais[be_id].format = params_format(params);
  28456. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28457. __func__, msm_bedais[be_id].sample_rate,
  28458. msm_bedais[be_id].format, be_id);
  28459. mutex_unlock(&routing_lock);
  28460. return 0;
  28461. }
  28462. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28463. {
  28464. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28465. unsigned int be_id = rtd->dai_link->id;
  28466. int i, session_type, path_type, topology;
  28467. struct msm_pcm_routing_bdai_data *bedai;
  28468. struct msm_pcm_routing_fdai_data *fdai;
  28469. pr_debug("%s: substream->pcm->id:%s\n",
  28470. __func__, substream->pcm->id);
  28471. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28472. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28473. return -EINVAL;
  28474. }
  28475. bedai = &msm_bedais[be_id];
  28476. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28477. 0 : 1);
  28478. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28479. path_type = ADM_PATH_PLAYBACK;
  28480. else
  28481. path_type = ADM_PATH_LIVE_REC;
  28482. mutex_lock(&routing_lock);
  28483. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28484. if (!is_mm_lsm_fe_id(i))
  28485. continue;
  28486. fdai = &fe_dai_map[i][session_type];
  28487. if (fdai->strm_id != INVALID_SESSION) {
  28488. int idx;
  28489. int port_id;
  28490. unsigned long copp =
  28491. session_copp_map[i][session_type][be_id];
  28492. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28493. if (test_bit(idx, &copp))
  28494. break;
  28495. if (idx >= MAX_COPPS_PER_PORT) {
  28496. pr_debug("%s: copp idx is invalid, exiting\n",
  28497. __func__);
  28498. continue;
  28499. }
  28500. fdai->be_srate = bedai->sample_rate;
  28501. port_id = get_port_id(bedai->port_id);
  28502. topology = adm_get_topology_for_port_copp_idx(port_id,
  28503. idx);
  28504. msm_routing_unload_topology(topology);
  28505. adm_close(port_id, fdai->perf_mode, idx);
  28506. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28507. __func__, copp, i, session_type, be_id,
  28508. topology);
  28509. clear_bit(idx,
  28510. &session_copp_map[i][session_type][be_id]);
  28511. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28512. (fdai->passthr_mode == LEGACY_PCM))
  28513. msm_pcm_routing_deinit_pp(port_id,
  28514. topology);
  28515. }
  28516. }
  28517. bedai->active = 0;
  28518. bedai->sample_rate = 0;
  28519. bedai->channel = 0;
  28520. mutex_unlock(&routing_lock);
  28521. return 0;
  28522. }
  28523. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28524. {
  28525. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28526. unsigned int be_id = rtd->dai_link->id;
  28527. int i, path_type, topology;
  28528. int session_type = INVALID_SESSION;
  28529. struct msm_pcm_routing_bdai_data *bedai;
  28530. u32 channels, sample_rate;
  28531. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28532. struct msm_pcm_routing_fdai_data *fdai;
  28533. u32 session_id;
  28534. struct media_format_info voc_be_media_format;
  28535. bool is_lsm;
  28536. pr_debug("%s: substream->pcm->id:%s\n",
  28537. __func__, substream->pcm->id);
  28538. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28539. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28540. return -EINVAL;
  28541. }
  28542. bedai = &msm_bedais[be_id];
  28543. mutex_lock(&routing_lock);
  28544. if (bedai->active == 1)
  28545. goto done; /* Ignore prepare if back-end already active */
  28546. /* AFE port is not active at this point. However, still
  28547. * go ahead setting active flag under the notion that
  28548. * QDSP6 is able to handle ADM starting before AFE port
  28549. * is started.
  28550. */
  28551. bedai->active = 1;
  28552. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28553. if (!(is_mm_lsm_fe_id(i) &&
  28554. route_check_fe_id_adm_support(i)))
  28555. continue;
  28556. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28557. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28558. fdai = &fe_dai_map[i][session_type];
  28559. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28560. if (fdai->passthr_mode != LEGACY_PCM)
  28561. path_type = ADM_PATH_COMPRESSED_RX;
  28562. else
  28563. path_type = ADM_PATH_PLAYBACK;
  28564. } else {
  28565. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28566. (fdai->passthr_mode != LISTEN))
  28567. path_type = ADM_PATH_COMPRESSED_TX;
  28568. else
  28569. path_type = ADM_PATH_LIVE_REC;
  28570. }
  28571. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28572. (i <= MSM_FRONTEND_DAI_LSM8);
  28573. if (fdai->strm_id != INVALID_SESSION) {
  28574. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28575. int port_id = get_port_id(bedai->port_id);
  28576. if (session_type == SESSION_TYPE_TX &&
  28577. fdai->be_srate &&
  28578. (fdai->be_srate != bedai->sample_rate)) {
  28579. pr_debug("%s: flush strm %d diff BE rates\n",
  28580. __func__,
  28581. fdai->strm_id);
  28582. if (fdai->event_info.event_func)
  28583. fdai->event_info.event_func(
  28584. MSM_PCM_RT_EVT_BUF_RECFG,
  28585. fdai->event_info.priv_data);
  28586. fdai->be_srate = 0; /* might not need it */
  28587. }
  28588. bits_per_sample = msm_routing_get_bit_width(
  28589. bedai->format);
  28590. app_type =
  28591. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28592. if (app_type && is_lsm) {
  28593. app_type_idx =
  28594. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28595. sample_rate =
  28596. fe_dai_app_type_cfg[i][session_type][be_id]
  28597. .sample_rate;
  28598. bits_per_sample =
  28599. lsm_app_type_cfg[app_type_idx].bit_width;
  28600. } else if (app_type) {
  28601. app_type_idx =
  28602. msm_pcm_routing_get_app_type_idx(app_type);
  28603. sample_rate =
  28604. fe_dai_app_type_cfg[i][session_type]
  28605. [be_id].sample_rate;
  28606. bits_per_sample =
  28607. app_type_cfg[app_type_idx].bit_width;
  28608. } else
  28609. sample_rate = bedai->sample_rate;
  28610. /*
  28611. * check if ADM needs to be configured with different
  28612. * channel mapping than backend
  28613. */
  28614. if (!bedai->adm_override_ch)
  28615. channels = bedai->channel;
  28616. else
  28617. channels = bedai->adm_override_ch;
  28618. acdb_dev_id =
  28619. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28620. topology = msm_routing_get_adm_topology(i, session_type,
  28621. be_id);
  28622. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28623. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28624. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28625. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28626. be_bit_width = msm_routing_get_bit_width(
  28627. bedai->format);
  28628. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28629. || bedai->sample_rate == 352800) &&
  28630. be_bit_width == 32)
  28631. bits_per_sample = msm_routing_get_bit_width(
  28632. SNDRV_PCM_FORMAT_S32_LE);
  28633. copp_idx = adm_open(port_id, path_type,
  28634. sample_rate, channels, topology,
  28635. fdai->perf_mode, bits_per_sample,
  28636. app_type, acdb_dev_id,
  28637. session_type);
  28638. if ((copp_idx < 0) ||
  28639. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28640. pr_err("%s: adm open failed\n", __func__);
  28641. mutex_unlock(&routing_lock);
  28642. return -EINVAL;
  28643. }
  28644. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28645. __func__, i, session_type, be_id);
  28646. set_bit(copp_idx,
  28647. &session_copp_map[i][session_type][be_id]);
  28648. if (msm_is_resample_needed(
  28649. sample_rate,
  28650. bedai->sample_rate))
  28651. adm_copp_mfc_cfg(port_id, copp_idx,
  28652. bedai->sample_rate);
  28653. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28654. fdai->perf_mode, fdai->passthr_mode);
  28655. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28656. (fdai->passthr_mode == LEGACY_PCM))
  28657. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28658. topology, channels);
  28659. }
  28660. }
  28661. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28662. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28663. if (session_id) {
  28664. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28665. session_id);
  28666. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28667. voc_path_type = RX_PATH;
  28668. else
  28669. voc_path_type = TX_PATH;
  28670. voc_set_route_flag(session_id, voc_path_type, 1);
  28671. memset(&voc_be_media_format, 0,
  28672. sizeof(struct media_format_info));
  28673. voc_be_media_format.port_id = bedai->port_id;
  28674. voc_be_media_format.num_channels = bedai->channel;
  28675. voc_be_media_format.sample_rate = bedai->sample_rate;
  28676. voc_be_media_format.bits_per_sample = bedai->format;
  28677. /* Defaulting this to 1 for voice call usecases */
  28678. voc_be_media_format.channel_mapping[0] = 1;
  28679. voc_set_device_config(session_id, voc_path_type,
  28680. &voc_be_media_format);
  28681. if (voc_get_route_flag(session_id, RX_PATH) &&
  28682. voc_get_route_flag(session_id, TX_PATH))
  28683. voc_enable_device(session_id);
  28684. }
  28685. }
  28686. /* Check if backend is an external ec ref port and set as needed */
  28687. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28688. memset(&voc_be_media_format, 0,
  28689. sizeof(struct media_format_info));
  28690. /* Get format info for ec ref port from msm_bedais[] */
  28691. voc_be_media_format.port_id = bedai->port_id;
  28692. voc_be_media_format.num_channels = bedai->channel;
  28693. voc_be_media_format.bits_per_sample = bedai->format;
  28694. voc_be_media_format.sample_rate = bedai->sample_rate;
  28695. /* Defaulting this to 1 for voice call usecases */
  28696. voc_be_media_format.channel_mapping[0] = 1;
  28697. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28698. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28699. __func__, voc_be_media_format.port_id,
  28700. voc_be_media_format.num_channels,
  28701. voc_be_media_format.bits_per_sample,
  28702. voc_be_media_format.sample_rate);
  28703. }
  28704. done:
  28705. mutex_unlock(&routing_lock);
  28706. return 0;
  28707. }
  28708. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28709. int fe_id)
  28710. {
  28711. int index, topo_id, be_idx;
  28712. unsigned long pp_config = 0;
  28713. bool mute_on;
  28714. int latency, session_type;
  28715. bool compr_passthr_mode = true;
  28716. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28717. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28718. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  28719. __func__, port_id, copp_idx, fe_id);
  28720. return -EINVAL;
  28721. }
  28722. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28723. if (port_id == msm_bedais[be_idx].port_id)
  28724. break;
  28725. }
  28726. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28727. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28728. return -EINVAL;
  28729. }
  28730. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28731. if (msm_bedais_pp_params[index].port_id == port_id)
  28732. break;
  28733. }
  28734. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28735. pr_err("%s: Invalid backend pp params index %d\n",
  28736. __func__, index);
  28737. return -EINVAL;
  28738. }
  28739. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28740. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28741. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28742. __func__, topo_id);
  28743. return -EINVAL;
  28744. }
  28745. session_type =
  28746. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28747. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28748. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28749. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28750. compr_passthr_mode = false;
  28751. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28752. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28753. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28754. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28755. mute_on = msm_bedais_pp_params[index].mute_on;
  28756. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28757. adm_send_compressed_device_mute(port_id,
  28758. copp_idx,
  28759. mute_on);
  28760. }
  28761. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28762. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28763. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28764. &pp_config);
  28765. latency = msm_bedais_pp_params[index].latency;
  28766. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28767. adm_send_compressed_device_latency(port_id,
  28768. copp_idx,
  28769. latency);
  28770. }
  28771. return 0;
  28772. }
  28773. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28774. {
  28775. uint32_t topology = NULL_COPP_TOPOLOGY;
  28776. void *cal_info = NULL;
  28777. uint32_t size = 0;
  28778. /* Retrieve cal_info size from cal data*/
  28779. if (data_size < sizeof(struct audio_cal_type_basic) +
  28780. sizeof(struct audio_cal_info_adm_top)) {
  28781. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28782. goto done;
  28783. }
  28784. size = data_size - sizeof(struct audio_cal_type_basic);
  28785. cal_info = kzalloc(size, GFP_KERNEL);
  28786. if (!cal_info)
  28787. goto done;
  28788. memcpy(cal_info,
  28789. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28790. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28791. kfree(cal_info);
  28792. cal_info = NULL;
  28793. done:
  28794. pr_debug("%s: Using topology %d\n", __func__, topology);
  28795. return topology;
  28796. }
  28797. static void msm_routing_load_topology(size_t data_size, void *data)
  28798. {
  28799. uint32_t topology_id;
  28800. int ret = -EINVAL;
  28801. topology_id = msm_routing_get_topology(data_size, data);
  28802. if (topology_id != NULL_COPP_TOPOLOGY)
  28803. ret = q6core_load_unload_topo_modules(topology_id,
  28804. CORE_LOAD_TOPOLOGY);
  28805. if (ret < 0)
  28806. pr_debug("%s %d load topology failed\n",
  28807. __func__, topology_id);
  28808. }
  28809. static void msm_routing_unload_topology(uint32_t topology_id)
  28810. {
  28811. int ret = -EINVAL;
  28812. if (topology_id != NULL_COPP_TOPOLOGY)
  28813. ret = q6core_load_unload_topo_modules(topology_id,
  28814. CORE_UNLOAD_TOPOLOGY);
  28815. if (ret < 0)
  28816. pr_debug("%s %d unload topology failed\n",
  28817. __func__, topology_id);
  28818. }
  28819. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28820. struct snd_ctl_elem_value *ucontrol)
  28821. {
  28822. int pp_id = ucontrol->value.integer.value[0];
  28823. int port_id = 0;
  28824. int index, be_idx, i, topo_id, idx;
  28825. bool mute;
  28826. int latency, session_type;
  28827. bool compr_passthr_mode = true;
  28828. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28829. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28830. port_id = msm_bedais[be_idx].port_id;
  28831. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28832. break;
  28833. }
  28834. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28835. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28836. return -EINVAL;
  28837. }
  28838. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28839. if (msm_bedais_pp_params[index].port_id == port_id)
  28840. break;
  28841. }
  28842. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28843. pr_err("%s: Invalid pp params backend index %d\n",
  28844. __func__, index);
  28845. return -EINVAL;
  28846. }
  28847. session_type =
  28848. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28849. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28850. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28851. MSM_FRONTEND_DAI_MM_SIZE) {
  28852. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28853. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28854. compr_passthr_mode = false;
  28855. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28856. unsigned long copp =
  28857. session_copp_map[i]
  28858. [SESSION_TYPE_RX][be_idx];
  28859. if (!test_bit(idx, &copp))
  28860. continue;
  28861. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28862. idx);
  28863. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28864. continue;
  28865. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28866. __func__, port_id, copp, msm_bedais[be_idx].active,
  28867. fe_dai_map[i][session_type].passthr_mode);
  28868. switch (pp_id) {
  28869. case ADM_PP_PARAM_MUTE_ID:
  28870. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28871. mute = ucontrol->value.integer.value[1] ? true : false;
  28872. msm_bedais_pp_params[index].mute_on = mute;
  28873. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28874. &msm_bedais_pp_params[index].pp_params_config);
  28875. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28876. adm_send_compressed_device_mute(port_id,
  28877. idx, mute);
  28878. break;
  28879. case ADM_PP_PARAM_LATENCY_ID:
  28880. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28881. msm_bedais_pp_params[index].latency =
  28882. ucontrol->value.integer.value[1];
  28883. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28884. &msm_bedais_pp_params[index].pp_params_config);
  28885. latency = msm_bedais_pp_params[index].latency =
  28886. ucontrol->value.integer.value[1];
  28887. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28888. adm_send_compressed_device_latency(port_id,
  28889. idx, latency);
  28890. break;
  28891. default:
  28892. pr_info("%s, device pp param %d not supported\n",
  28893. __func__, pp_id);
  28894. break;
  28895. }
  28896. }
  28897. }
  28898. return 0;
  28899. }
  28900. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28901. struct snd_ctl_elem_value *ucontrol)
  28902. {
  28903. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28904. return 0;
  28905. }
  28906. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28907. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28908. 0, 3, msm_routing_get_device_pp_params_mixer,
  28909. msm_routing_put_device_pp_params_mixer),
  28910. };
  28911. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28912. struct snd_ctl_elem_value *ucontrol)
  28913. {
  28914. ucontrol->value.integer.value[0] =
  28915. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28916. pr_debug("%s: status %ld\n", __func__,
  28917. ucontrol->value.integer.value[0]);
  28918. return 0;
  28919. }
  28920. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28921. struct snd_ctl_elem_value *ucontrol)
  28922. {
  28923. int32_t status = 0;
  28924. status = core_set_license(ucontrol->value.integer.value[0],
  28925. APTX_CLASSIC_DEC_LICENSE_ID);
  28926. pr_debug("%s: status %d\n", __func__, status);
  28927. return status;
  28928. }
  28929. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28930. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28931. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28932. msm_aptx_dec_license_control_put),
  28933. };
  28934. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  28935. struct snd_ctl_elem_value *ucontrol)
  28936. {
  28937. return 0;
  28938. }
  28939. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  28940. struct snd_ctl_elem_value *ucontrol)
  28941. {
  28942. u16 port_id = 0;
  28943. int32_t clk_drift = 0;
  28944. uint32_t clk_reset = 0;
  28945. int be_idx, ret = -EINVAL;
  28946. be_idx = ucontrol->value.integer.value[0];
  28947. clk_drift = ucontrol->value.integer.value[1];
  28948. clk_reset = ucontrol->value.integer.value[2];
  28949. if (be_idx < 0 && be_idx >= MSM_BACKEND_DAI_MAX) {
  28950. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  28951. return -EINVAL;
  28952. }
  28953. if (!msm_bedais[be_idx].active && !clk_reset) {
  28954. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  28955. __func__, be_idx);
  28956. return -EINVAL;
  28957. }
  28958. port_id = msm_bedais[be_idx].port_id;
  28959. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  28960. __func__, clk_drift, be_idx, clk_reset, port_id);
  28961. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  28962. if (ret < 0)
  28963. pr_err("%s: failed to set pll clk drift\n", __func__);
  28964. return ret;
  28965. }
  28966. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  28967. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28968. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  28969. };
  28970. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28971. struct snd_ctl_elem_value *ucontrol)
  28972. {
  28973. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28974. uint32_t be_idx = ucontrol->value.integer.value[0];
  28975. int i;
  28976. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28977. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28978. return -EINVAL;
  28979. }
  28980. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28981. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28982. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28983. pr_err("%s: Invalid channel map %d\n",
  28984. __func__, channel_map[i]);
  28985. return -EINVAL;
  28986. }
  28987. }
  28988. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28989. return 0;
  28990. }
  28991. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28992. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28993. MSM_BACKEND_DAI_MAX, 0,
  28994. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28995. msm_routing_put_port_chmap_mixer),
  28996. };
  28997. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28998. struct snd_ctl_elem_info *uinfo)
  28999. {
  29000. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29001. uinfo->count = sizeof(be_dai_name_table);
  29002. return 0;
  29003. }
  29004. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29005. unsigned int __user *bytes,
  29006. unsigned int size)
  29007. {
  29008. int i;
  29009. int ret = 0;
  29010. if (size < sizeof(be_dai_name_table)) {
  29011. pr_err("%s: invalid size %d requested, returning\n",
  29012. __func__, size);
  29013. ret = -EINVAL;
  29014. goto done;
  29015. }
  29016. /*
  29017. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29018. * needed when adding new backends
  29019. */
  29020. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29021. be_dai_name_table[i].be_id = i;
  29022. strlcpy(be_dai_name_table[i].be_name,
  29023. msm_bedais[i].name,
  29024. LPASS_BE_NAME_MAX_LENGTH);
  29025. }
  29026. ret = copy_to_user(bytes, &be_dai_name_table,
  29027. sizeof(be_dai_name_table));
  29028. if (ret) {
  29029. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29030. ret = -EFAULT;
  29031. }
  29032. done:
  29033. return ret;
  29034. }
  29035. static const struct snd_kcontrol_new
  29036. msm_routing_be_dai_name_table_mixer_controls[] = {
  29037. {
  29038. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29039. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29040. .info = msm_routing_be_dai_name_table_info,
  29041. .name = "Backend DAI Name Table",
  29042. .tlv.c = snd_soc_bytes_tlv_callback,
  29043. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29044. .max = sizeof(be_dai_name_table),
  29045. .get = msm_routing_be_dai_name_table_tlv_get,
  29046. }
  29047. },
  29048. };
  29049. static int msm_routing_stereo_channel_reverse_control_get(
  29050. struct snd_kcontrol *kcontrol,
  29051. struct snd_ctl_elem_value *ucontrol)
  29052. {
  29053. ucontrol->value.integer.value[0] = swap_ch;
  29054. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29055. ucontrol->value.integer.value[0]);
  29056. return 0;
  29057. }
  29058. static int msm_routing_stereo_channel_reverse_control_put(
  29059. struct snd_kcontrol *kcontrol,
  29060. struct snd_ctl_elem_value *ucontrol)
  29061. {
  29062. int i, idx, be_index, port_id;
  29063. int ret = 0;
  29064. unsigned long copp;
  29065. pr_debug("%s Swap channel value:%ld\n", __func__,
  29066. ucontrol->value.integer.value[0]);
  29067. swap_ch = ucontrol->value.integer.value[0];
  29068. mutex_lock(&routing_lock);
  29069. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29070. port_id = msm_bedais[be_index].port_id;
  29071. if (!msm_bedais[be_index].active)
  29072. continue;
  29073. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29074. MSM_FRONTEND_DAI_MM_SIZE) {
  29075. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29076. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29077. if (!test_bit(idx, &copp))
  29078. continue;
  29079. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29080. __func__, port_id, idx);
  29081. ret = adm_swap_speaker_channels(
  29082. port_id, idx,
  29083. msm_bedais[be_index].sample_rate,
  29084. swap_ch);
  29085. if (ret) {
  29086. pr_err("%s:Swap_channel failed, err=%d\n",
  29087. __func__, ret);
  29088. goto done;
  29089. }
  29090. }
  29091. }
  29092. }
  29093. done:
  29094. mutex_unlock(&routing_lock);
  29095. return ret;
  29096. }
  29097. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29098. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29099. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29100. msm_routing_stereo_channel_reverse_control_put),
  29101. };
  29102. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29103. struct snd_ctl_elem_info *uinfo)
  29104. {
  29105. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29106. uinfo->count = 1;
  29107. return 0;
  29108. }
  29109. static int msm_routing_instance_id_support_put(
  29110. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29111. {
  29112. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29113. q6common_update_instance_id_support(supported);
  29114. return 0;
  29115. }
  29116. static int msm_routing_instance_id_support_get(
  29117. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29118. {
  29119. bool supported = false;
  29120. supported = q6common_is_instance_id_supported();
  29121. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29122. return 0;
  29123. }
  29124. static const struct snd_kcontrol_new
  29125. msm_routing_feature_support_mixer_controls[] = {
  29126. {
  29127. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29128. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29129. .info = msm_routing_instance_id_support_info,
  29130. .name = "Instance ID Support",
  29131. .put = msm_routing_instance_id_support_put,
  29132. .get = msm_routing_instance_id_support_get,
  29133. },
  29134. };
  29135. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29136. .hw_params = msm_pcm_routing_hw_params,
  29137. .close = msm_pcm_routing_close,
  29138. .prepare = msm_pcm_routing_prepare,
  29139. };
  29140. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29141. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29142. {
  29143. snd_soc_add_component_controls(component,
  29144. msm_source_doa_tracking_controls,
  29145. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29146. }
  29147. #else
  29148. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29149. {
  29150. return;
  29151. }
  29152. #endif
  29153. /* Not used but frame seems to require it */
  29154. static int msm_routing_probe(struct snd_soc_component *component)
  29155. {
  29156. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29157. ARRAY_SIZE(msm_qdsp6_widgets));
  29158. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29159. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29160. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29161. ARRAY_SIZE(intercon));
  29162. snd_soc_dapm_new_widgets(component->dapm.card);
  29163. snd_soc_add_component_controls(component, lsm_controls,
  29164. ARRAY_SIZE(lsm_controls));
  29165. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29166. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29167. snd_soc_add_component_controls(component, aanc_noise_level,
  29168. ARRAY_SIZE(aanc_noise_level));
  29169. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29170. ARRAY_SIZE(msm_voc_session_controls));
  29171. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29172. ARRAY_SIZE(app_type_cfg_controls));
  29173. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29174. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29175. snd_soc_add_component_controls(component, module_cfg_controls,
  29176. ARRAY_SIZE(module_cfg_controls));
  29177. snd_soc_add_component_controls(component,
  29178. stereo_to_custom_stereo_controls,
  29179. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29180. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29181. ARRAY_SIZE(ec_ref_param_controls));
  29182. snd_soc_add_component_controls(component, channel_mixer_controls,
  29183. ARRAY_SIZE(channel_mixer_controls));
  29184. msm_qti_pp_add_controls(component);
  29185. msm_dts_srs_tm_add_controls(component);
  29186. msm_dolby_dap_add_controls(component);
  29187. snd_soc_add_component_controls(component,
  29188. use_ds1_or_ds2_controls,
  29189. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29190. snd_soc_add_component_controls(component,
  29191. hifi_filter_controls,
  29192. ARRAY_SIZE(hifi_filter_controls));
  29193. snd_soc_add_component_controls(component,
  29194. use_ffecns_freeze_event_controls,
  29195. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29196. snd_soc_add_component_controls(component,
  29197. device_pp_params_mixer_controls,
  29198. ARRAY_SIZE(device_pp_params_mixer_controls));
  29199. snd_soc_add_component_controls(component,
  29200. msm_routing_be_dai_name_table_mixer_controls,
  29201. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29202. /* Add doa control based on config */
  29203. msm_routing_add_doa_control(component);
  29204. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29205. ARRAY_SIZE(msm_source_tracking_controls));
  29206. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29207. ARRAY_SIZE(adm_channel_config_controls));
  29208. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29209. ARRAY_SIZE(aptx_dec_license_controls));
  29210. snd_soc_add_component_controls(component,
  29211. stereo_channel_reverse_control,
  29212. ARRAY_SIZE(stereo_channel_reverse_control));
  29213. snd_soc_add_component_controls(
  29214. component, msm_routing_feature_support_mixer_controls,
  29215. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29216. snd_soc_add_component_controls(component,
  29217. port_multi_channel_map_mixer_controls,
  29218. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29219. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  29220. ARRAY_SIZE(pll_clk_drift_controls));
  29221. return 0;
  29222. }
  29223. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29224. {
  29225. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29226. }
  29227. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29228. {
  29229. msm_pcm_routing_hwdep_free(pcm);
  29230. }
  29231. static struct snd_soc_component_driver msm_soc_routing_component = {
  29232. .name = DRV_NAME,
  29233. .ops = &msm_routing_pcm_ops,
  29234. .probe = msm_routing_probe,
  29235. .pcm_new = msm_routing_pcm_new,
  29236. .pcm_free = msm_routing_pcm_free,
  29237. };
  29238. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29239. {
  29240. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29241. return snd_soc_register_component(&pdev->dev,
  29242. &msm_soc_routing_component,
  29243. NULL, 0);
  29244. }
  29245. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29246. {
  29247. snd_soc_unregister_component(&pdev->dev);
  29248. return 0;
  29249. }
  29250. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29251. {.compatible = "qcom,msm-pcm-routing"},
  29252. {}
  29253. };
  29254. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29255. static struct platform_driver msm_routing_pcm_driver = {
  29256. .driver = {
  29257. .name = "msm-pcm-routing",
  29258. .owner = THIS_MODULE,
  29259. .of_match_table = msm_pcm_routing_dt_match,
  29260. .suppress_bind_attrs = true,
  29261. },
  29262. .probe = msm_routing_pcm_probe,
  29263. .remove = msm_routing_pcm_remove,
  29264. };
  29265. int msm_routing_check_backend_enabled(int fedai_id)
  29266. {
  29267. int i;
  29268. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29269. /* bad ID assigned in machine driver */
  29270. pr_err("%s: bad MM ID\n", __func__);
  29271. return 0;
  29272. }
  29273. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29274. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29275. return msm_bedais[i].active;
  29276. }
  29277. return 0;
  29278. }
  29279. static int get_cal_type_index(int32_t cal_type)
  29280. {
  29281. int ret = -EINVAL;
  29282. switch (cal_type) {
  29283. case ADM_TOPOLOGY_CAL_TYPE:
  29284. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29285. break;
  29286. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29287. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29288. break;
  29289. default:
  29290. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29291. }
  29292. return ret;
  29293. }
  29294. static int msm_routing_set_cal(int32_t cal_type,
  29295. size_t data_size, void *data)
  29296. {
  29297. int ret = 0;
  29298. int cal_index;
  29299. pr_debug("%s\n", __func__);
  29300. cal_index = get_cal_type_index(cal_type);
  29301. if (cal_index < 0) {
  29302. pr_err("%s: Could not get cal index %d\n",
  29303. __func__, cal_index);
  29304. ret = -EINVAL;
  29305. goto done;
  29306. }
  29307. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29308. if (ret < 0) {
  29309. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29310. __func__, ret, cal_type);
  29311. ret = -EINVAL;
  29312. goto done;
  29313. }
  29314. /* Pre-load if it is ADM topology */
  29315. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29316. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29317. msm_routing_load_topology(data_size, data);
  29318. }
  29319. done:
  29320. return ret;
  29321. }
  29322. static void msm_routing_delete_cal_data(void)
  29323. {
  29324. pr_debug("%s\n", __func__);
  29325. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29326. }
  29327. static int msm_routing_init_cal_data(void)
  29328. {
  29329. int ret = 0;
  29330. struct cal_type_info cal_type_info[] = {
  29331. {{ADM_TOPOLOGY_CAL_TYPE,
  29332. {NULL, NULL, NULL,
  29333. msm_routing_set_cal, NULL, NULL} },
  29334. {NULL, NULL, cal_utils_match_buf_num} },
  29335. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29336. {NULL, NULL, NULL,
  29337. msm_routing_set_cal, NULL, NULL} },
  29338. {NULL, NULL, cal_utils_match_buf_num} },
  29339. };
  29340. pr_debug("%s\n", __func__);
  29341. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29342. &cal_type_info[0]);
  29343. if (ret < 0) {
  29344. pr_err("%s: could not create cal type!\n",
  29345. __func__);
  29346. ret = -EINVAL;
  29347. goto err;
  29348. }
  29349. return ret;
  29350. err:
  29351. msm_routing_delete_cal_data();
  29352. return ret;
  29353. }
  29354. int __init msm_soc_routing_platform_init(void)
  29355. {
  29356. mutex_init(&routing_lock);
  29357. if (msm_routing_init_cal_data())
  29358. pr_err("%s: could not init cal data!\n", __func__);
  29359. afe_set_routing_callback(
  29360. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29361. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29362. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29363. return platform_driver_register(&msm_routing_pcm_driver);
  29364. }
  29365. void msm_soc_routing_platform_exit(void)
  29366. {
  29367. msm_routing_delete_cal_data();
  29368. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29369. mutex_destroy(&routing_lock);
  29370. platform_driver_unregister(&msm_routing_pcm_driver);
  29371. }
  29372. MODULE_DESCRIPTION("MSM routing platform driver");
  29373. MODULE_LICENSE("GPL v2");