msm-pcm-routing-v2.c 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define 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. };
  667. /* Track ASM playback & capture sessions of DAI
  668. * Track LSM listen sessions
  669. */
  670. static struct msm_pcm_routing_fdai_data
  671. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  672. /* MULTIMEDIA1 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA2 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA3 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA4 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA5 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA6 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA7*/
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA8 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA9 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA10 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA11 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* MULTIMEDIA12 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* MULTIMEDIA13 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* MULTIMEDIA14 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* MULTIMEDIA15 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* MULTIMEDIA16 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* MULTIMEDIA17 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* MULTIMEDIA18 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* MULTIMEDIA19 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* MULTIMEDIA20 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* MULTIMEDIA21 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* MULTIMEDIA22 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* MULTIMEDIA23 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* MULTIMEDIA26 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA27 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA28 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA29 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* MULTIMEDIA30 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* VOIP */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* AFE_RX */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* AFE_TX */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* VOICE_STUB */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* DTMF_RX */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* QCHAT */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* VOLTE_STUB */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* LSM1 */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* LSM2 */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* LSM3 */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM4 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM5 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM6 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM7 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* LSM8 */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* VOICE2_STUB */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* VOICEMMODE1 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. /* VOICEMMODE2 */
  808. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  809. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  810. };
  811. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  812. [MSM_BACKEND_DAI_MAX];
  813. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  814. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  815. static struct msm_pcm_stream_app_type_cfg
  816. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  817. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  818. /* The caller of this should acquire routing lock */
  819. void msm_pcm_routing_get_bedai_info(int be_idx,
  820. struct msm_pcm_routing_bdai_data *be_dai)
  821. {
  822. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  823. memcpy(be_dai, &msm_bedais[be_idx],
  824. sizeof(struct msm_pcm_routing_bdai_data));
  825. }
  826. /* The caller of this should acquire routing lock */
  827. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  828. struct msm_pcm_routing_fdai_data *fe_dai)
  829. {
  830. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  831. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  832. sizeof(struct msm_pcm_routing_fdai_data));
  833. }
  834. void msm_pcm_routing_acquire_lock(void)
  835. {
  836. mutex_lock(&routing_lock);
  837. }
  838. void msm_pcm_routing_release_lock(void)
  839. {
  840. mutex_unlock(&routing_lock);
  841. }
  842. static int msm_pcm_routing_get_app_type_idx(int app_type)
  843. {
  844. int idx;
  845. pr_debug("%s: app_type: %d\n", __func__, app_type);
  846. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  847. if (app_type_cfg[idx].app_type == app_type)
  848. return idx;
  849. }
  850. pr_info("%s: App type not available, fallback to default\n", __func__);
  851. return 0;
  852. }
  853. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  854. {
  855. int idx;
  856. pr_debug("%s: app_type: %d\n", __func__, app_type);
  857. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  858. if (lsm_app_type_cfg[idx].app_type == app_type)
  859. return idx;
  860. }
  861. pr_debug("%s: App type not available, fallback to default\n", __func__);
  862. return 0;
  863. }
  864. static int get_port_id(int port_id)
  865. {
  866. int ret = port_id;
  867. if (port_id == AFE_LOOPBACK_TX) {
  868. /*
  869. * Return afe_loopback_tx_port_id if set. Else return
  870. * msm_ec_ref_port_id to maintain backward compatibility.
  871. */
  872. if (afe_loopback_tx_port_id != -1)
  873. ret = afe_loopback_tx_port_id;
  874. else
  875. ret = msm_ec_ref_port_id;
  876. }
  877. return ret;
  878. }
  879. static bool is_mm_lsm_fe_id(int fe_id)
  880. {
  881. bool rc = true;
  882. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  883. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  884. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  885. rc = false;
  886. }
  887. return rc;
  888. }
  889. /*
  890. * msm_pcm_routing_send_chmix_cfg:
  891. * send the channel mixer command to mix the input channels
  892. * into output channels.
  893. *
  894. * @fe_id: front end id
  895. * @ip_channel_cnt: input channel count
  896. * @op_channel_cnt: output channel count
  897. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  898. * @session_type: indicates session is of type TX or RX
  899. * @stream_type: indicates either Audio or Listen stream type
  900. */
  901. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  902. int op_channel_cnt, int *ch_wght_coeff,
  903. int session_type, int stream_type)
  904. {
  905. int rc = 0, idx = 0;
  906. int be_index = 0, port_id;
  907. unsigned int session_id = 0;
  908. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  909. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  910. stream_type);
  911. if (!is_mm_lsm_fe_id(fe_id)) {
  912. /* bad ID assigned in machine driver */
  913. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  914. return -EINVAL;
  915. }
  916. if (ch_wght_coeff == NULL) {
  917. pr_err("%s: Null channel weightage coefficients passed\n",
  918. __func__);
  919. return -EINVAL;
  920. }
  921. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  922. port_id = msm_bedais[be_index].port_id;
  923. if (!msm_bedais[be_index].active ||
  924. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  925. continue;
  926. session_id = fe_dai_map[fe_id][session_type].strm_id;
  927. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  928. unsigned long copp =
  929. session_copp_map[fe_id][session_type][be_index];
  930. if (!test_bit(idx, &copp))
  931. continue;
  932. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  933. session_id, ip_channel_cnt,
  934. op_channel_cnt, ch_wght_coeff,
  935. session_type, stream_type);
  936. if (rc < 0)
  937. pr_err("%s: err setting channel mix config\n",
  938. __func__);
  939. }
  940. }
  941. return 0;
  942. }
  943. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  944. /**
  945. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  946. * setting before use case start.
  947. *
  948. * @fe_id: frontend idx
  949. * @type: stream direction type
  950. * @params: parameters of channel mixer setting
  951. *
  952. * Return 0 for success
  953. */
  954. int msm_pcm_routing_set_channel_mixer_cfg(
  955. int fe_id, int type,
  956. struct msm_pcm_channel_mixer *params)
  957. {
  958. int i, j = 0;
  959. channel_mixer_v2[fe_id][type].enable = params->enable;
  960. channel_mixer_v2[fe_id][type].rule = params->rule;
  961. channel_mixer_v2[fe_id][type].input_channel =
  962. params->input_channel;
  963. channel_mixer_v2[fe_id][type].output_channel =
  964. params->output_channel;
  965. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  966. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  967. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  968. params->in_ch_map[i];
  969. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  970. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  971. params->out_ch_map[i];
  972. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  973. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  974. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  975. params->channel_weight[i][j];
  976. channel_mixer_v2[fe_id][type].override_in_ch_map =
  977. params->override_in_ch_map;
  978. channel_mixer_v2[fe_id][type].override_out_ch_map =
  979. params->override_out_ch_map;
  980. return 0;
  981. }
  982. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  983. int msm_pcm_routing_reg_stream_app_type_cfg(
  984. int fedai_id, int session_type, int be_id,
  985. struct msm_pcm_stream_app_type_cfg *cfg_data)
  986. {
  987. int ret = 0;
  988. if (cfg_data == NULL) {
  989. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  990. ret = -EINVAL;
  991. goto done;
  992. }
  993. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  994. __func__, fedai_id, session_type, be_id,
  995. cfg_data->app_type, cfg_data->acdb_dev_id,
  996. cfg_data->sample_rate);
  997. if (!is_mm_lsm_fe_id(fedai_id)) {
  998. pr_err("%s: Invalid machine driver ID %d\n",
  999. __func__, fedai_id);
  1000. ret = -EINVAL;
  1001. goto done;
  1002. }
  1003. if (session_type != SESSION_TYPE_RX &&
  1004. session_type != SESSION_TYPE_TX) {
  1005. pr_err("%s: Invalid session type %d\n",
  1006. __func__, session_type);
  1007. ret = -EINVAL;
  1008. goto done;
  1009. }
  1010. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1011. pr_err("%s: Received out of bounds be_id %d\n",
  1012. __func__, be_id);
  1013. ret = -EINVAL;
  1014. goto done;
  1015. }
  1016. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1017. /*
  1018. * Store the BE ID of the configuration information set as the latest so
  1019. * the get mixer control knows what to return.
  1020. */
  1021. last_be_id_configured[fedai_id][session_type] = be_id;
  1022. done:
  1023. return ret;
  1024. }
  1025. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1026. /**
  1027. * msm_pcm_routing_get_stream_app_type_cfg
  1028. *
  1029. * Receives fedai_id, session_type, be_id, and populates app_type,
  1030. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1031. * -EINVAL and does not alter passed values.
  1032. *
  1033. * fedai_id - Passed value, front end ID for which app type config is wanted
  1034. * session_type - Passed value, session type for which app type config
  1035. * is wanted
  1036. * be_id - Returned value, back end device id the app type config data is for
  1037. * cfg_data - Returned value, configuration data used by app type config
  1038. */
  1039. int msm_pcm_routing_get_stream_app_type_cfg(
  1040. int fedai_id, int session_type, int *bedai_id,
  1041. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1042. {
  1043. int be_id;
  1044. int ret = 0;
  1045. if (bedai_id == NULL) {
  1046. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1047. ret = -EINVAL;
  1048. goto done;
  1049. } else if (cfg_data == NULL) {
  1050. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1051. ret = -EINVAL;
  1052. goto done;
  1053. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1054. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. } else if (session_type != SESSION_TYPE_RX &&
  1058. session_type != SESSION_TYPE_TX) {
  1059. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1060. ret = -EINVAL;
  1061. goto done;
  1062. }
  1063. be_id = last_be_id_configured[fedai_id][session_type];
  1064. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1065. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1066. ret = -EINVAL;
  1067. goto done;
  1068. }
  1069. *bedai_id = be_id;
  1070. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1071. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1072. __func__, fedai_id, session_type, *bedai_id,
  1073. cfg_data->app_type, cfg_data->acdb_dev_id,
  1074. cfg_data->sample_rate);
  1075. done:
  1076. return ret;
  1077. }
  1078. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1079. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1080. int cal_index)
  1081. {
  1082. struct list_head *ptr, *next;
  1083. struct cal_block_data *cal_block = NULL;
  1084. pr_debug("%s\n", __func__);
  1085. list_for_each_safe(ptr, next,
  1086. &cal_data[cal_index]->cal_blocks) {
  1087. cal_block = list_entry(ptr,
  1088. struct cal_block_data, list);
  1089. if (cal_utils_is_cal_stale(cal_block))
  1090. continue;
  1091. if (((struct audio_cal_info_adm_top *)cal_block
  1092. ->cal_info)->path == path) {
  1093. return cal_block;
  1094. }
  1095. }
  1096. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1097. return NULL;
  1098. }
  1099. static struct cal_block_data *msm_routing_find_topology(int path,
  1100. int app_type,
  1101. int acdb_id,
  1102. int cal_index,
  1103. bool exact)
  1104. {
  1105. struct list_head *ptr, *next;
  1106. struct cal_block_data *cal_block = NULL;
  1107. struct audio_cal_info_adm_top *cal_info;
  1108. pr_debug("%s\n", __func__);
  1109. list_for_each_safe(ptr, next,
  1110. &cal_data[cal_index]->cal_blocks) {
  1111. cal_block = list_entry(ptr,
  1112. struct cal_block_data, list);
  1113. if (cal_utils_is_cal_stale(cal_block))
  1114. continue;
  1115. cal_info = (struct audio_cal_info_adm_top *)
  1116. cal_block->cal_info;
  1117. if ((cal_info->path == path) &&
  1118. (cal_info->app_type == app_type) &&
  1119. (cal_info->acdb_id == acdb_id)) {
  1120. return cal_block;
  1121. }
  1122. }
  1123. pr_debug("%s: Can't find topology for path %d, app %d, "
  1124. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1125. exact ? "fail" : "defaulting to search by path");
  1126. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1127. cal_index);
  1128. }
  1129. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1130. int acdb_dev_id, int idx,
  1131. bool exact)
  1132. {
  1133. int topology = -EINVAL;
  1134. struct cal_block_data *cal_block = NULL;
  1135. mutex_lock(&cal_data[idx]->lock);
  1136. cal_block = msm_routing_find_topology(session_type, app_type,
  1137. acdb_dev_id, idx, exact);
  1138. if (cal_block != NULL) {
  1139. topology = ((struct audio_cal_info_adm_top *)
  1140. cal_block->cal_info)->topology;
  1141. }
  1142. mutex_unlock(&cal_data[idx]->lock);
  1143. return topology;
  1144. }
  1145. /*
  1146. * Retrieving cal_block will mark cal_block as stale.
  1147. * Hence it cannot be reused or resent unless the flag
  1148. * is reset.
  1149. */
  1150. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1151. int be_id)
  1152. {
  1153. int topology = NULL_COPP_TOPOLOGY;
  1154. int app_type = 0, acdb_dev_id = 0;
  1155. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1156. __func__, fedai_id, session_type, be_id);
  1157. if (cal_data == NULL)
  1158. goto done;
  1159. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1160. acdb_dev_id =
  1161. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1162. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1163. topology = msm_routing_find_topology_on_index(session_type,
  1164. app_type,
  1165. acdb_dev_id,
  1166. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1167. true /*exact*/);
  1168. if (topology < 0) {
  1169. pr_debug("%s: Check for compatible topology\n", __func__);
  1170. topology = msm_routing_find_topology_on_index(session_type,
  1171. app_type,
  1172. acdb_dev_id,
  1173. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1174. false /*exact*/);
  1175. if (topology < 0)
  1176. topology = NULL_COPP_TOPOLOGY;
  1177. }
  1178. done:
  1179. pr_debug("%s: Using topology %d\n", __func__, topology);
  1180. return topology;
  1181. }
  1182. static uint8_t is_be_dai_extproc(int be_dai)
  1183. {
  1184. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1185. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1186. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1187. return 1;
  1188. else
  1189. return 0;
  1190. }
  1191. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1192. int path_type, int perf_mode,
  1193. uint32_t passthr_mode)
  1194. {
  1195. int i, port_type, j, num_copps = 0;
  1196. struct route_payload payload;
  1197. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1198. path_type == ADM_PATH_COMPRESSED_RX) ?
  1199. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1200. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1201. if (!is_be_dai_extproc(i) &&
  1202. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1203. (msm_bedais[i].active) &&
  1204. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1205. int port_id = get_port_id(msm_bedais[i].port_id);
  1206. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1207. unsigned long copp =
  1208. session_copp_map[fedai_id][sess_type][i];
  1209. if (test_bit(j, &copp)) {
  1210. payload.port_id[num_copps] = port_id;
  1211. payload.copp_idx[num_copps] = j;
  1212. payload.app_type[num_copps] =
  1213. fe_dai_app_type_cfg
  1214. [fedai_id][sess_type][i]
  1215. .app_type;
  1216. payload.acdb_dev_id[num_copps] =
  1217. fe_dai_app_type_cfg
  1218. [fedai_id][sess_type][i]
  1219. .acdb_dev_id;
  1220. payload.sample_rate[num_copps] =
  1221. fe_dai_app_type_cfg
  1222. [fedai_id][sess_type][i]
  1223. .sample_rate;
  1224. num_copps++;
  1225. }
  1226. }
  1227. }
  1228. }
  1229. if (num_copps) {
  1230. payload.num_copps = num_copps;
  1231. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1232. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1233. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1234. }
  1235. }
  1236. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1237. int stream_type)
  1238. {
  1239. int i, session_type, path_type, port_type;
  1240. u32 mode = 0;
  1241. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1242. /* bad ID assigned in machine driver */
  1243. pr_err("%s: bad MM ID\n", __func__);
  1244. return;
  1245. }
  1246. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1247. session_type = SESSION_TYPE_RX;
  1248. path_type = ADM_PATH_PLAYBACK;
  1249. port_type = MSM_AFE_PORT_TYPE_RX;
  1250. } else {
  1251. session_type = SESSION_TYPE_TX;
  1252. path_type = ADM_PATH_LIVE_REC;
  1253. port_type = MSM_AFE_PORT_TYPE_TX;
  1254. }
  1255. mutex_lock(&routing_lock);
  1256. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1257. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1258. if (!is_be_dai_extproc(i) &&
  1259. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1260. (msm_bedais[i].active) &&
  1261. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1262. mode = afe_get_port_type(msm_bedais[i].port_id);
  1263. adm_connect_afe_port(mode, dspst_id,
  1264. msm_bedais[i].port_id);
  1265. break;
  1266. }
  1267. }
  1268. mutex_unlock(&routing_lock);
  1269. }
  1270. static bool route_check_fe_id_adm_support(int fe_id)
  1271. {
  1272. bool rc = true;
  1273. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1274. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1275. /* fe id is listen while port is set to afe */
  1276. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1277. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1278. __func__, fe_id, lsm_port_index);
  1279. rc = false;
  1280. }
  1281. }
  1282. return rc;
  1283. }
  1284. /*
  1285. * msm_pcm_routing_get_pp_ch_cnt:
  1286. * Read the processed channel count
  1287. *
  1288. * @fe_id: Front end ID
  1289. * @session_type: Inidicates RX or TX session type
  1290. */
  1291. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1292. {
  1293. struct msm_pcm_stream_app_type_cfg cfg_data;
  1294. int be_id = 0, app_type_idx = 0, app_type = 0;
  1295. int ret = -EINVAL;
  1296. memset(&cfg_data, 0, sizeof(cfg_data));
  1297. if (!is_mm_lsm_fe_id(fe_id)) {
  1298. pr_err("%s: bad MM ID\n", __func__);
  1299. return -EINVAL;
  1300. }
  1301. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1302. &be_id, &cfg_data);
  1303. if (ret) {
  1304. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1305. return ret;
  1306. }
  1307. app_type = cfg_data.app_type;
  1308. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1309. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1310. }
  1311. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1312. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1313. int dspst_id, int stream_type,
  1314. uint32_t passthr_mode)
  1315. {
  1316. int i, j, session_type, path_type, port_type, topology;
  1317. int num_copps = 0;
  1318. struct route_payload payload;
  1319. u32 channels, sample_rate;
  1320. u16 bit_width = 16, be_bit_width;
  1321. bool is_lsm;
  1322. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1323. __func__, fe_id, perf_mode, dspst_id,
  1324. stream_type, passthr_mode);
  1325. if (!is_mm_lsm_fe_id(fe_id)) {
  1326. /* bad ID assigned in machine driver */
  1327. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1328. return -EINVAL;
  1329. }
  1330. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1331. session_type = SESSION_TYPE_RX;
  1332. if (passthr_mode != LEGACY_PCM)
  1333. path_type = ADM_PATH_COMPRESSED_RX;
  1334. else
  1335. path_type = ADM_PATH_PLAYBACK;
  1336. port_type = MSM_AFE_PORT_TYPE_RX;
  1337. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1338. session_type = SESSION_TYPE_TX;
  1339. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1340. path_type = ADM_PATH_COMPRESSED_TX;
  1341. else
  1342. path_type = ADM_PATH_LIVE_REC;
  1343. port_type = MSM_AFE_PORT_TYPE_TX;
  1344. } else {
  1345. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1346. return -EINVAL;
  1347. }
  1348. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1349. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1350. mutex_lock(&routing_lock);
  1351. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1352. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1353. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1354. if (!route_check_fe_id_adm_support(fe_id)) {
  1355. /* ignore adm open if not supported for fe_id */
  1356. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1357. mutex_unlock(&routing_lock);
  1358. return 0;
  1359. }
  1360. payload.num_copps = 0; /* only RX needs to use payload */
  1361. /* re-enable EQ if active */
  1362. msm_qti_pp_send_eq_values(fe_id);
  1363. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1364. if (!is_be_dai_extproc(i) &&
  1365. (afe_get_port_type(msm_bedais[i].port_id) ==
  1366. port_type) &&
  1367. (msm_bedais[i].active) &&
  1368. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1369. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1370. int port_id = get_port_id(msm_bedais[i].port_id);
  1371. /*
  1372. * check if ADM needs to be configured with different
  1373. * channel mapping than backend
  1374. */
  1375. if (!msm_bedais[i].adm_override_ch)
  1376. channels = msm_bedais[i].channel;
  1377. else
  1378. channels = msm_bedais[i].adm_override_ch;
  1379. bit_width = msm_routing_get_bit_width(
  1380. msm_bedais[i].format);
  1381. app_type =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1383. if (app_type && is_lsm) {
  1384. app_type_idx =
  1385. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1386. sample_rate =
  1387. fe_dai_app_type_cfg[fe_id][session_type][i]
  1388. .sample_rate;
  1389. bit_width =
  1390. lsm_app_type_cfg[app_type_idx].bit_width;
  1391. } else if (app_type) {
  1392. app_type_idx =
  1393. msm_pcm_routing_get_app_type_idx(
  1394. app_type);
  1395. sample_rate =
  1396. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1397. bit_width =
  1398. app_type_cfg[app_type_idx].bit_width;
  1399. } else {
  1400. sample_rate = msm_bedais[i].sample_rate;
  1401. }
  1402. acdb_dev_id =
  1403. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1404. topology = msm_routing_get_adm_topology(fe_id,
  1405. session_type,
  1406. i);
  1407. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1408. || (passthr_mode ==
  1409. COMPRESSED_PASSTHROUGH_GEN)
  1410. || (passthr_mode ==
  1411. COMPRESSED_PASSTHROUGH_IEC61937))
  1412. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1413. pr_debug("%s: Before adm open topology %d\n", __func__,
  1414. topology);
  1415. be_bit_width = msm_routing_get_bit_width(
  1416. msm_bedais[i].format);
  1417. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1418. == 384000 || msm_bedais[i].sample_rate ==
  1419. 352800) && be_bit_width == 32)
  1420. bit_width = msm_routing_get_bit_width(
  1421. SNDRV_PCM_FORMAT_S32_LE);
  1422. copp_idx =
  1423. adm_open(port_id, path_type, sample_rate,
  1424. channels, topology, perf_mode,
  1425. bit_width, app_type, acdb_dev_id,
  1426. session_type);
  1427. if ((copp_idx < 0) ||
  1428. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1429. pr_err("%s:adm open failed coppid:%d\n",
  1430. __func__, copp_idx);
  1431. mutex_unlock(&routing_lock);
  1432. return -EINVAL;
  1433. }
  1434. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1435. __func__, fe_id, session_type, i);
  1436. set_bit(copp_idx,
  1437. &session_copp_map[fe_id][session_type][i]);
  1438. if (msm_is_resample_needed(
  1439. sample_rate,
  1440. msm_bedais[i].sample_rate))
  1441. adm_copp_mfc_cfg(port_id, copp_idx,
  1442. msm_bedais[i].sample_rate);
  1443. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1444. unsigned long copp =
  1445. session_copp_map[fe_id][session_type][i];
  1446. if (test_bit(j, &copp)) {
  1447. payload.port_id[num_copps] = port_id;
  1448. payload.copp_idx[num_copps] = j;
  1449. payload.app_type[num_copps] =
  1450. fe_dai_app_type_cfg
  1451. [fe_id][session_type][i]
  1452. .app_type;
  1453. payload.acdb_dev_id[num_copps] =
  1454. fe_dai_app_type_cfg
  1455. [fe_id][session_type][i]
  1456. .acdb_dev_id;
  1457. payload.sample_rate[num_copps] =
  1458. fe_dai_app_type_cfg
  1459. [fe_id][session_type][i]
  1460. .sample_rate;
  1461. num_copps++;
  1462. }
  1463. }
  1464. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1465. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1466. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1467. msm_routing_send_device_pp_params(port_id,
  1468. copp_idx, fe_id);
  1469. }
  1470. }
  1471. if (num_copps) {
  1472. payload.num_copps = num_copps;
  1473. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1474. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1475. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1476. }
  1477. mutex_unlock(&routing_lock);
  1478. return 0;
  1479. }
  1480. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1481. {
  1482. u32 session_id;
  1483. switch (val) {
  1484. case MSM_FRONTEND_DAI_QCHAT:
  1485. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1486. break;
  1487. case MSM_FRONTEND_DAI_VOIP:
  1488. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1489. break;
  1490. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1491. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1492. break;
  1493. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1494. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1495. break;
  1496. default:
  1497. session_id = 0;
  1498. }
  1499. pr_debug("%s session_id 0x%x", __func__, session_id);
  1500. return session_id;
  1501. }
  1502. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1503. int dspst_id, int stream_type)
  1504. {
  1505. int copp_idx = 0;
  1506. int sess_type = 0;
  1507. int j = 0, be_id = 0;
  1508. int ret = 0;
  1509. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1510. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1511. return 0;
  1512. }
  1513. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1514. sess_type = SESSION_TYPE_RX;
  1515. else
  1516. sess_type = SESSION_TYPE_TX;
  1517. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1518. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1519. __func__, fe_id, sess_type);
  1520. return 0;
  1521. }
  1522. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1523. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1524. channel_mixer_v2[fe_id][sess_type].input_channel;
  1525. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1526. __func__, sess_type, fe_id,
  1527. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1528. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1529. msm_bedais[be_id].active);
  1530. if ((msm_bedais[be_id].active) &&
  1531. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1532. unsigned long copp =
  1533. session_copp_map[fe_id][sess_type][be_id];
  1534. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1535. if (test_bit(j, &copp)) {
  1536. copp_idx = j;
  1537. break;
  1538. }
  1539. }
  1540. ret = adm_programable_channel_mixer(
  1541. msm_bedais[be_id].port_id,
  1542. copp_idx, dspst_id, sess_type,
  1543. &channel_mixer_v2[fe_id][sess_type], 0);
  1544. }
  1545. return ret;
  1546. }
  1547. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1548. int dspst_id, int stream_type)
  1549. {
  1550. int copp_idx = 0;
  1551. int sess_type = 0;
  1552. int i = 0, j = 0, be_id;
  1553. int ret = 0;
  1554. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1555. dspst_id, stream_type);
  1556. if (ret) {
  1557. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1558. fe_id);
  1559. return ret;
  1560. }
  1561. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1562. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1563. return 0;
  1564. }
  1565. if (!(channel_mixer[fe_id].enable)) {
  1566. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1567. __func__, fe_id);
  1568. return 0;
  1569. }
  1570. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1571. sess_type = SESSION_TYPE_RX;
  1572. else
  1573. sess_type = SESSION_TYPE_TX;
  1574. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1575. ++i) {
  1576. be_id = channel_input[fe_id][i] - 1;
  1577. channel_mixer[fe_id].input_channels[i] =
  1578. msm_bedais[be_id].channel;
  1579. if ((msm_bedais[be_id].active) &&
  1580. test_bit(fe_id,
  1581. &msm_bedais[be_id].fe_sessions[0])) {
  1582. unsigned long copp =
  1583. session_copp_map[fe_id][sess_type][be_id];
  1584. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1585. if (test_bit(j, &copp)) {
  1586. copp_idx = j;
  1587. break;
  1588. }
  1589. }
  1590. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1591. __func__,
  1592. fe_id, be_id, msm_bedais[be_id].channel,
  1593. copp_idx);
  1594. ret = adm_programable_channel_mixer(
  1595. get_port_id(msm_bedais[be_id].port_id),
  1596. copp_idx, dspst_id, sess_type,
  1597. channel_mixer + fe_id, i);
  1598. }
  1599. }
  1600. return ret;
  1601. }
  1602. /**
  1603. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1604. * setting during runtime.
  1605. *
  1606. * @be_id: backend index
  1607. * @session_id: session index
  1608. * @session_type: session type
  1609. * @params: parameters for channel mixer
  1610. *
  1611. * Retuen: 0 for success, else error
  1612. */
  1613. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1614. int session_type,
  1615. struct msm_pcm_channel_mixer *params)
  1616. {
  1617. int rc = 0;
  1618. int port_id, copp_idx = 0;
  1619. be_id--;
  1620. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1621. pr_err("%s: invalid backend id %d\n", __func__,
  1622. be_id);
  1623. return -EINVAL;
  1624. }
  1625. port_id = msm_bedais[be_id].port_id;
  1626. copp_idx = adm_get_default_copp_idx(port_id);
  1627. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1628. __func__, port_id, copp_idx, session_id);
  1629. if ((params->input_channel < 0) ||
  1630. (params->input_channel > ADM_MAX_CHANNELS)) {
  1631. pr_err("%s: invalid input channel %d\n", __func__,
  1632. params->input_channel);
  1633. return -EINVAL;
  1634. }
  1635. if ((params->output_channel < 0) ||
  1636. (params->output_channel > ADM_MAX_CHANNELS)) {
  1637. pr_err("%s: invalid output channel %d\n", __func__,
  1638. params->output_channel);
  1639. return -EINVAL;
  1640. }
  1641. params->input_channels[0] = params->input_channel;
  1642. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1643. __func__, session_type,
  1644. params->override_in_ch_map,
  1645. params->override_out_ch_map,
  1646. msm_bedais[be_id].active);
  1647. rc = adm_programable_channel_mixer(port_id,
  1648. copp_idx,
  1649. session_id,
  1650. session_type,
  1651. params,
  1652. 0);
  1653. if (rc) {
  1654. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1655. rc = -EINVAL;
  1656. }
  1657. return rc;
  1658. }
  1659. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1660. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1661. int dspst_id, int stream_type)
  1662. {
  1663. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1664. struct route_payload payload;
  1665. u32 channels, sample_rate;
  1666. uint16_t bits_per_sample = 16, be_bit_width;
  1667. uint32_t passthr_mode = LEGACY_PCM;
  1668. int ret = 0;
  1669. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1670. /* bad ID assigned in machine driver */
  1671. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1672. return -EINVAL;
  1673. }
  1674. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1675. session_type = SESSION_TYPE_RX;
  1676. path_type = ADM_PATH_PLAYBACK;
  1677. port_type = MSM_AFE_PORT_TYPE_RX;
  1678. } else {
  1679. session_type = SESSION_TYPE_TX;
  1680. path_type = ADM_PATH_LIVE_REC;
  1681. port_type = MSM_AFE_PORT_TYPE_TX;
  1682. }
  1683. mutex_lock(&routing_lock);
  1684. payload.num_copps = 0; /* only RX needs to use payload */
  1685. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1686. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1687. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1688. /* re-enable EQ if active */
  1689. msm_qti_pp_send_eq_values(fedai_id);
  1690. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1691. if (!is_be_dai_extproc(i) &&
  1692. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1693. (msm_bedais[i].active) &&
  1694. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1695. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1696. int port_id = get_port_id(msm_bedais[i].port_id);
  1697. /*
  1698. * check if ADM needs to be configured with different
  1699. * channel mapping than backend
  1700. */
  1701. if (!msm_bedais[i].adm_override_ch)
  1702. channels = msm_bedais[i].channel;
  1703. else
  1704. channels = msm_bedais[i].adm_override_ch;
  1705. bits_per_sample = msm_routing_get_bit_width(
  1706. msm_bedais[i].format);
  1707. app_type =
  1708. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1709. if (app_type) {
  1710. app_type_idx =
  1711. msm_pcm_routing_get_app_type_idx(app_type);
  1712. sample_rate =
  1713. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1714. .sample_rate;
  1715. bits_per_sample =
  1716. app_type_cfg[app_type_idx].bit_width;
  1717. } else
  1718. sample_rate = msm_bedais[i].sample_rate;
  1719. acdb_dev_id =
  1720. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1721. .acdb_dev_id;
  1722. topology = msm_routing_get_adm_topology(fedai_id,
  1723. session_type,
  1724. i);
  1725. be_bit_width = msm_routing_get_bit_width(
  1726. msm_bedais[i].format);
  1727. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1728. 384000 ||msm_bedais[i].sample_rate == 352800)
  1729. && be_bit_width == 32)
  1730. bits_per_sample = msm_routing_get_bit_width(
  1731. SNDRV_PCM_FORMAT_S32_LE);
  1732. copp_idx = adm_open(port_id, path_type,
  1733. sample_rate, channels, topology,
  1734. perf_mode, bits_per_sample,
  1735. app_type, acdb_dev_id,
  1736. session_type);
  1737. if ((copp_idx < 0) ||
  1738. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1739. pr_err("%s: adm open failed copp_idx:%d\n",
  1740. __func__, copp_idx);
  1741. mutex_unlock(&routing_lock);
  1742. return -EINVAL;
  1743. }
  1744. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1745. __func__, fedai_id, session_type, i);
  1746. set_bit(copp_idx,
  1747. &session_copp_map[fedai_id][session_type][i]);
  1748. if (msm_is_resample_needed(
  1749. sample_rate,
  1750. msm_bedais[i].sample_rate))
  1751. adm_copp_mfc_cfg(port_id, copp_idx,
  1752. msm_bedais[i].sample_rate);
  1753. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1754. unsigned long copp =
  1755. session_copp_map[fedai_id][session_type][i];
  1756. if (test_bit(j, &copp)) {
  1757. payload.port_id[num_copps] = port_id;
  1758. payload.copp_idx[num_copps] = j;
  1759. payload.app_type[num_copps] =
  1760. fe_dai_app_type_cfg
  1761. [fedai_id][session_type]
  1762. [i].app_type;
  1763. payload.acdb_dev_id[num_copps] =
  1764. fe_dai_app_type_cfg
  1765. [fedai_id][session_type]
  1766. [i].acdb_dev_id;
  1767. payload.sample_rate[num_copps] =
  1768. fe_dai_app_type_cfg
  1769. [fedai_id][session_type]
  1770. [i].sample_rate;
  1771. num_copps++;
  1772. }
  1773. }
  1774. if (perf_mode == LEGACY_PCM_MODE)
  1775. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1776. topology, channels);
  1777. }
  1778. }
  1779. if (num_copps) {
  1780. payload.num_copps = num_copps;
  1781. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1782. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1783. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1784. }
  1785. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1786. dspst_id, stream_type);
  1787. mutex_unlock(&routing_lock);
  1788. return ret;
  1789. }
  1790. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1791. int dspst_id, int stream_type,
  1792. struct msm_pcm_routing_evt event_info)
  1793. {
  1794. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1795. stream_type)) {
  1796. pr_err("%s: failed to reg phy stream\n", __func__);
  1797. return -EINVAL;
  1798. }
  1799. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1800. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1801. else
  1802. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1803. return 0;
  1804. }
  1805. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1806. {
  1807. int i, port_type, session_type, path_type, topology, port_id;
  1808. struct msm_pcm_routing_fdai_data *fdai;
  1809. if (!is_mm_lsm_fe_id(fedai_id)) {
  1810. /* bad ID assigned in machine driver */
  1811. pr_err("%s: bad MM ID\n", __func__);
  1812. return;
  1813. }
  1814. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1815. port_type = MSM_AFE_PORT_TYPE_RX;
  1816. session_type = SESSION_TYPE_RX;
  1817. path_type = ADM_PATH_PLAYBACK;
  1818. } else {
  1819. port_type = MSM_AFE_PORT_TYPE_TX;
  1820. session_type = SESSION_TYPE_TX;
  1821. path_type = ADM_PATH_LIVE_REC;
  1822. }
  1823. mutex_lock(&routing_lock);
  1824. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1825. if (!is_be_dai_extproc(i) &&
  1826. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1827. (msm_bedais[i].active) &&
  1828. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1829. int idx;
  1830. unsigned long copp =
  1831. session_copp_map[fedai_id][session_type][i];
  1832. fdai = &fe_dai_map[fedai_id][session_type];
  1833. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1834. if (test_bit(idx, &copp))
  1835. break;
  1836. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1837. pr_debug("%s: copp idx is invalid, exiting\n",
  1838. __func__);
  1839. continue;
  1840. }
  1841. port_id = get_port_id(msm_bedais[i].port_id);
  1842. topology = adm_get_topology_for_port_copp_idx(
  1843. port_id, idx);
  1844. msm_routing_unload_topology(topology);
  1845. adm_close(port_id, fdai->perf_mode, idx);
  1846. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1847. __func__, copp, fedai_id, session_type, i);
  1848. clear_bit(idx,
  1849. &session_copp_map[fedai_id][session_type][i]);
  1850. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1851. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1852. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1853. (fdai->passthr_mode == LEGACY_PCM))
  1854. msm_pcm_routing_deinit_pp(port_id, topology);
  1855. }
  1856. }
  1857. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1858. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1859. mutex_unlock(&routing_lock);
  1860. }
  1861. /* Check if FE/BE route is set */
  1862. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1863. {
  1864. bool rc = false;
  1865. if (!is_mm_lsm_fe_id(fe_id)) {
  1866. /* recheck FE ID in the mixer control defined in this file */
  1867. pr_err("%s: bad MM ID\n", __func__);
  1868. return rc;
  1869. }
  1870. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1871. rc = true;
  1872. return rc;
  1873. }
  1874. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1875. {
  1876. int session_type, path_type, topology;
  1877. u32 channels, sample_rate;
  1878. uint16_t bits_per_sample = 16, be_bit_width;
  1879. struct msm_pcm_routing_fdai_data *fdai;
  1880. uint32_t passthr_mode;
  1881. bool is_lsm;
  1882. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1883. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1884. afe_get_port_type(msm_bedais[reg].port_id) ==
  1885. MSM_AFE_PORT_TYPE_RX) {
  1886. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1887. __func__, set, msm_bedais[reg].port_id);
  1888. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1889. } else if (!is_mm_lsm_fe_id(val)) {
  1890. /* recheck FE ID in the mixer control defined in this file */
  1891. pr_err("%s: bad MM ID\n", __func__);
  1892. return;
  1893. }
  1894. if (!route_check_fe_id_adm_support(val)) {
  1895. /* ignore adm open if not supported for fe_id */
  1896. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1897. if (set)
  1898. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1899. else
  1900. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1901. return;
  1902. }
  1903. session_type =
  1904. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1905. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1906. fdai = &fe_dai_map[val][session_type];
  1907. passthr_mode = fdai->passthr_mode;
  1908. if (session_type == SESSION_TYPE_RX) {
  1909. if (passthr_mode != LEGACY_PCM)
  1910. path_type = ADM_PATH_COMPRESSED_RX;
  1911. else
  1912. path_type = ADM_PATH_PLAYBACK;
  1913. } else {
  1914. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1915. path_type = ADM_PATH_COMPRESSED_TX;
  1916. else
  1917. path_type = ADM_PATH_LIVE_REC;
  1918. }
  1919. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1920. (val <= MSM_FRONTEND_DAI_LSM8);
  1921. mutex_lock(&routing_lock);
  1922. if (set) {
  1923. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1924. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1925. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1926. voc_start_playback(set, msm_bedais[reg].port_id);
  1927. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1928. if (msm_bedais[reg].active && fdai->strm_id !=
  1929. INVALID_SESSION) {
  1930. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1931. int port_id = get_port_id(msm_bedais[reg].port_id);
  1932. /*
  1933. * check if ADM needs to be configured with different
  1934. * channel mapping than backend
  1935. */
  1936. if (!msm_bedais[reg].adm_override_ch)
  1937. channels = msm_bedais[reg].channel;
  1938. else
  1939. channels = msm_bedais[reg].adm_override_ch;
  1940. if (session_type == SESSION_TYPE_TX &&
  1941. fdai->be_srate &&
  1942. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1943. pr_debug("%s: flush strm %d diff BE rates\n",
  1944. __func__, fdai->strm_id);
  1945. if (fdai->event_info.event_func)
  1946. fdai->event_info.event_func(
  1947. MSM_PCM_RT_EVT_BUF_RECFG,
  1948. fdai->event_info.priv_data);
  1949. fdai->be_srate = 0; /* might not need it */
  1950. }
  1951. bits_per_sample = msm_routing_get_bit_width(
  1952. msm_bedais[reg].format);
  1953. app_type =
  1954. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1955. if (app_type && is_lsm) {
  1956. app_type_idx =
  1957. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1958. sample_rate =
  1959. fe_dai_app_type_cfg[val][session_type][reg]
  1960. .sample_rate;
  1961. bits_per_sample =
  1962. lsm_app_type_cfg[app_type_idx].bit_width;
  1963. } else if (app_type) {
  1964. app_type_idx =
  1965. msm_pcm_routing_get_app_type_idx(app_type);
  1966. sample_rate =
  1967. fe_dai_app_type_cfg[val][session_type][reg]
  1968. .sample_rate;
  1969. bits_per_sample =
  1970. app_type_cfg[app_type_idx].bit_width;
  1971. } else
  1972. sample_rate = msm_bedais[reg].sample_rate;
  1973. topology = msm_routing_get_adm_topology(val,
  1974. session_type,
  1975. reg);
  1976. acdb_dev_id =
  1977. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1978. be_bit_width = msm_routing_get_bit_width(
  1979. msm_bedais[reg].format);
  1980. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1981. == 384000 ||msm_bedais[reg].sample_rate ==
  1982. 352800) && be_bit_width == 32)
  1983. bits_per_sample = msm_routing_get_bit_width(
  1984. SNDRV_PCM_FORMAT_S32_LE);
  1985. copp_idx = adm_open(port_id, path_type,
  1986. sample_rate, channels, topology,
  1987. fdai->perf_mode, bits_per_sample,
  1988. app_type, acdb_dev_id,
  1989. session_type);
  1990. if ((copp_idx < 0) ||
  1991. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1992. pr_err("%s: adm open failed\n", __func__);
  1993. mutex_unlock(&routing_lock);
  1994. return;
  1995. }
  1996. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1997. __func__, val, session_type, reg);
  1998. set_bit(copp_idx,
  1999. &session_copp_map[val][session_type][reg]);
  2000. if (msm_is_resample_needed(
  2001. sample_rate,
  2002. msm_bedais[reg].sample_rate))
  2003. adm_copp_mfc_cfg(port_id, copp_idx,
  2004. msm_bedais[reg].sample_rate);
  2005. if (session_type == SESSION_TYPE_RX &&
  2006. fdai->event_info.event_func)
  2007. fdai->event_info.event_func(
  2008. MSM_PCM_RT_EVT_DEVSWITCH,
  2009. fdai->event_info.priv_data);
  2010. msm_pcm_routing_build_matrix(val, session_type,
  2011. path_type,
  2012. fdai->perf_mode,
  2013. passthr_mode);
  2014. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2015. (passthr_mode == LEGACY_PCM))
  2016. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2017. topology, channels);
  2018. }
  2019. } else {
  2020. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2021. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2022. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2023. voc_start_playback(set, msm_bedais[reg].port_id);
  2024. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2025. if (msm_bedais[reg].active && fdai->strm_id !=
  2026. INVALID_SESSION) {
  2027. int idx;
  2028. int port_id;
  2029. unsigned long copp =
  2030. session_copp_map[val][session_type][reg];
  2031. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2032. if (test_bit(idx, &copp))
  2033. break;
  2034. if (idx >= MAX_COPPS_PER_PORT) {
  2035. pr_debug("%s: copp idx is invalid, exiting\n",
  2036. __func__);
  2037. mutex_unlock(&routing_lock);
  2038. return;
  2039. }
  2040. port_id = get_port_id(msm_bedais[reg].port_id);
  2041. topology = adm_get_topology_for_port_copp_idx(port_id,
  2042. idx);
  2043. msm_routing_unload_topology(topology);
  2044. adm_close(port_id, fdai->perf_mode, idx);
  2045. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2046. __func__, copp, val, session_type, reg,
  2047. topology);
  2048. clear_bit(idx,
  2049. &session_copp_map[val][session_type][reg]);
  2050. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2051. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2052. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2053. (passthr_mode == LEGACY_PCM))
  2054. msm_pcm_routing_deinit_pp(port_id, topology);
  2055. msm_pcm_routing_build_matrix(val, session_type,
  2056. path_type,
  2057. fdai->perf_mode,
  2058. passthr_mode);
  2059. }
  2060. }
  2061. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2062. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2063. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2064. mutex_unlock(&routing_lock);
  2065. }
  2066. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2067. struct snd_ctl_elem_value *ucontrol)
  2068. {
  2069. struct soc_mixer_control *mc =
  2070. (struct soc_mixer_control *)kcontrol->private_value;
  2071. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2072. ucontrol->value.integer.value[0] = 1;
  2073. else
  2074. ucontrol->value.integer.value[0] = 0;
  2075. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2076. ucontrol->value.integer.value[0]);
  2077. return 0;
  2078. }
  2079. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2080. struct snd_ctl_elem_value *ucontrol)
  2081. {
  2082. struct snd_soc_dapm_widget *widget =
  2083. snd_soc_dapm_kcontrol_widget(kcontrol);
  2084. struct soc_mixer_control *mc =
  2085. (struct soc_mixer_control *)kcontrol->private_value;
  2086. struct snd_soc_dapm_update *update = NULL;
  2087. if (ucontrol->value.integer.value[0] &&
  2088. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2089. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2090. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2091. update);
  2092. } else if (!ucontrol->value.integer.value[0] &&
  2093. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2094. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2095. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2096. update);
  2097. }
  2098. return 1;
  2099. }
  2100. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2101. struct snd_ctl_elem_value *ucontrol)
  2102. {
  2103. struct soc_mixer_control *mc =
  2104. (struct soc_mixer_control *)kcontrol->private_value;
  2105. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2106. ucontrol->value.integer.value[0] = 1;
  2107. else
  2108. ucontrol->value.integer.value[0] = 0;
  2109. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2110. ucontrol->value.integer.value[0]);
  2111. return 0;
  2112. }
  2113. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2114. struct snd_ctl_elem_value *ucontrol)
  2115. {
  2116. struct snd_soc_dapm_widget *widget =
  2117. snd_soc_dapm_kcontrol_widget(kcontrol);
  2118. struct soc_mixer_control *mc =
  2119. (struct soc_mixer_control *)kcontrol->private_value;
  2120. struct snd_soc_dapm_update *update = NULL;
  2121. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2122. ucontrol->value.integer.value[0]);
  2123. if (ucontrol->value.integer.value[0]) {
  2124. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2125. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2126. snd_soc_dapm_mixer_update_power(widget->dapm,
  2127. kcontrol, 1, update);
  2128. } else if (!ucontrol->value.integer.value[0]) {
  2129. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2130. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2131. snd_soc_dapm_mixer_update_power(widget->dapm,
  2132. kcontrol, 0, update);
  2133. }
  2134. return 1;
  2135. }
  2136. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2137. {
  2138. u32 session_id = 0;
  2139. u16 path_type;
  2140. struct media_format_info voc_be_media_format;
  2141. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2142. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2143. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2144. __func__, val, session_id);
  2145. mutex_lock(&routing_lock);
  2146. if (set)
  2147. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2148. else
  2149. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2150. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2151. afe_get_port_type(msm_bedais[reg].port_id) ==
  2152. MSM_AFE_PORT_TYPE_RX) {
  2153. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2154. __func__, set, msm_bedais[reg].port_id);
  2155. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2156. }
  2157. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2158. MSM_AFE_PORT_TYPE_RX)
  2159. path_type = RX_PATH;
  2160. else
  2161. path_type = TX_PATH;
  2162. if (set) {
  2163. if (msm_bedais[reg].active) {
  2164. voc_set_route_flag(session_id, path_type, 1);
  2165. memset(&voc_be_media_format, 0,
  2166. sizeof(struct media_format_info));
  2167. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2168. voc_be_media_format.num_channels =
  2169. msm_bedais[reg].channel;
  2170. voc_be_media_format.sample_rate =
  2171. msm_bedais[reg].sample_rate;
  2172. voc_be_media_format.bits_per_sample =
  2173. msm_bedais[reg].format;
  2174. /* Defaulting this to 1 for voice call usecases */
  2175. voc_be_media_format.channel_mapping[0] = 1;
  2176. voc_set_device_config(session_id, path_type,
  2177. &voc_be_media_format);
  2178. if (voc_get_route_flag(session_id, TX_PATH) &&
  2179. voc_get_route_flag(session_id, RX_PATH))
  2180. voc_enable_device(session_id);
  2181. } else {
  2182. pr_debug("%s BE is not active\n", __func__);
  2183. }
  2184. } else {
  2185. voc_set_route_flag(session_id, path_type, 0);
  2186. voc_disable_device(session_id);
  2187. }
  2188. mutex_unlock(&routing_lock);
  2189. }
  2190. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2191. struct snd_ctl_elem_value *ucontrol)
  2192. {
  2193. struct soc_mixer_control *mc =
  2194. (struct soc_mixer_control *)kcontrol->private_value;
  2195. mutex_lock(&routing_lock);
  2196. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2197. ucontrol->value.integer.value[0] = 1;
  2198. else
  2199. ucontrol->value.integer.value[0] = 0;
  2200. mutex_unlock(&routing_lock);
  2201. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2202. ucontrol->value.integer.value[0]);
  2203. return 0;
  2204. }
  2205. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2206. struct snd_ctl_elem_value *ucontrol)
  2207. {
  2208. struct snd_soc_dapm_widget *widget =
  2209. snd_soc_dapm_kcontrol_widget(kcontrol);
  2210. struct soc_mixer_control *mc =
  2211. (struct soc_mixer_control *)kcontrol->private_value;
  2212. struct snd_soc_dapm_update *update = NULL;
  2213. if (ucontrol->value.integer.value[0]) {
  2214. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2215. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2216. update);
  2217. } else {
  2218. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2219. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2220. update);
  2221. }
  2222. return 1;
  2223. }
  2224. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2225. struct snd_ctl_elem_value *ucontrol)
  2226. {
  2227. struct soc_mixer_control *mc =
  2228. (struct soc_mixer_control *)kcontrol->private_value;
  2229. mutex_lock(&routing_lock);
  2230. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2231. ucontrol->value.integer.value[0] = 1;
  2232. else
  2233. ucontrol->value.integer.value[0] = 0;
  2234. mutex_unlock(&routing_lock);
  2235. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2236. ucontrol->value.integer.value[0]);
  2237. return 0;
  2238. }
  2239. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2240. struct snd_ctl_elem_value *ucontrol)
  2241. {
  2242. struct snd_soc_dapm_widget *widget =
  2243. snd_soc_dapm_kcontrol_widget(kcontrol);
  2244. struct soc_mixer_control *mc =
  2245. (struct soc_mixer_control *)kcontrol->private_value;
  2246. struct snd_soc_dapm_update *update = NULL;
  2247. if (ucontrol->value.integer.value[0]) {
  2248. mutex_lock(&routing_lock);
  2249. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2250. mutex_unlock(&routing_lock);
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2252. update);
  2253. } else {
  2254. mutex_lock(&routing_lock);
  2255. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2256. mutex_unlock(&routing_lock);
  2257. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2258. update);
  2259. }
  2260. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2261. ucontrol->value.integer.value[0]);
  2262. return 1;
  2263. }
  2264. /*
  2265. * Return the mapping between port ID and backend ID to enable the AFE callback
  2266. * to determine the acdb_dev_id from the port id
  2267. */
  2268. int msm_pcm_get_be_id_from_port_id(int port_id)
  2269. {
  2270. int i;
  2271. int be_id = -EINVAL;
  2272. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2273. if (msm_bedais[i].port_id == port_id) {
  2274. be_id = i;
  2275. break;
  2276. }
  2277. }
  2278. return be_id;
  2279. }
  2280. /*
  2281. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2282. * correct AFE calibration information by comparing the header information.
  2283. */
  2284. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2285. {
  2286. int acdb_id = -EINVAL;
  2287. int i = 0;
  2288. int session;
  2289. int port_type = afe_get_port_type(port_id);
  2290. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2291. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2292. __func__, port_id, be_id, port_type);
  2293. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2294. session = SESSION_TYPE_TX;
  2295. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2296. session = SESSION_TYPE_RX;
  2297. } else {
  2298. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2299. acdb_id = -EINVAL;
  2300. goto exit;
  2301. }
  2302. if (be_id < 0) {
  2303. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2304. goto exit;
  2305. }
  2306. mutex_lock(&routing_lock);
  2307. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2308. MSM_FRONTEND_DAI_MAX);
  2309. if (i < MSM_FRONTEND_DAI_MAX)
  2310. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2311. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2312. __func__, i, session, be_id, acdb_id);
  2313. mutex_unlock(&routing_lock);
  2314. exit:
  2315. return acdb_id;
  2316. }
  2317. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2318. struct snd_ctl_elem_value *ucontrol)
  2319. {
  2320. ucontrol->value.integer.value[0] = fm_switch_enable;
  2321. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2322. ucontrol->value.integer.value[0]);
  2323. return 0;
  2324. }
  2325. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2326. struct snd_ctl_elem_value *ucontrol)
  2327. {
  2328. struct snd_soc_dapm_widget *widget =
  2329. snd_soc_dapm_kcontrol_widget(kcontrol);
  2330. struct snd_soc_dapm_update *update = NULL;
  2331. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2332. ucontrol->value.integer.value[0]);
  2333. if (ucontrol->value.integer.value[0])
  2334. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2335. update);
  2336. else
  2337. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2338. update);
  2339. fm_switch_enable = ucontrol->value.integer.value[0];
  2340. return 1;
  2341. }
  2342. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2343. struct snd_ctl_elem_value *ucontrol)
  2344. {
  2345. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2346. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2347. ucontrol->value.integer.value[0]);
  2348. return 0;
  2349. }
  2350. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2351. struct snd_ctl_elem_value *ucontrol)
  2352. {
  2353. struct snd_soc_dapm_widget *widget =
  2354. snd_soc_dapm_kcontrol_widget(kcontrol);
  2355. struct snd_soc_dapm_update *update = NULL;
  2356. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2357. ucontrol->value.integer.value[0]);
  2358. if (ucontrol->value.integer.value[0])
  2359. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2360. 1, update);
  2361. else
  2362. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2363. 0, update);
  2364. hfp_switch_enable = ucontrol->value.integer.value[0];
  2365. return 1;
  2366. }
  2367. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2368. struct snd_ctl_elem_value *ucontrol)
  2369. {
  2370. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2371. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2372. ucontrol->value.integer.value[0]);
  2373. return 0;
  2374. }
  2375. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2376. struct snd_ctl_elem_value *ucontrol)
  2377. {
  2378. struct snd_soc_dapm_widget *widget =
  2379. snd_soc_dapm_kcontrol_widget(kcontrol);
  2380. struct snd_soc_dapm_update *update = NULL;
  2381. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2382. ucontrol->value.integer.value[0]);
  2383. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2384. if (a2dp_switch_enable)
  2385. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2386. 1, update);
  2387. else
  2388. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2389. 0, update);
  2390. return 1;
  2391. }
  2392. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2393. struct snd_ctl_elem_value *ucontrol)
  2394. {
  2395. ucontrol->value.integer.value[0] = sco_switch_enable;
  2396. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2397. ucontrol->value.integer.value[0]);
  2398. return 0;
  2399. }
  2400. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2401. struct snd_ctl_elem_value *ucontrol)
  2402. {
  2403. struct snd_soc_dapm_widget *widget =
  2404. snd_soc_dapm_kcontrol_widget(kcontrol);
  2405. struct snd_soc_dapm_update *update = NULL;
  2406. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2407. ucontrol->value.integer.value[0]);
  2408. sco_switch_enable = ucontrol->value.integer.value[0];
  2409. if (sco_switch_enable)
  2410. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2411. 1, update);
  2412. else
  2413. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2414. 0, update);
  2415. return 1;
  2416. }
  2417. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2418. struct snd_ctl_elem_value *ucontrol)
  2419. {
  2420. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2421. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2422. ucontrol->value.integer.value[0]);
  2423. return 0;
  2424. }
  2425. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2426. struct snd_ctl_elem_value *ucontrol)
  2427. {
  2428. struct snd_soc_dapm_widget *widget =
  2429. snd_soc_dapm_kcontrol_widget(kcontrol);
  2430. struct snd_soc_dapm_update *update = NULL;
  2431. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2432. ucontrol->value.integer.value[0]);
  2433. if (ucontrol->value.integer.value[0])
  2434. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2435. update);
  2436. else
  2437. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2438. update);
  2439. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2440. return 1;
  2441. }
  2442. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2443. struct snd_ctl_elem_value *ucontrol)
  2444. {
  2445. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2446. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2447. ucontrol->value.integer.value[0]);
  2448. return 0;
  2449. }
  2450. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2451. struct snd_ctl_elem_value *ucontrol)
  2452. {
  2453. struct snd_soc_dapm_widget *widget =
  2454. snd_soc_dapm_kcontrol_widget(kcontrol);
  2455. struct snd_soc_dapm_update *update = NULL;
  2456. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2457. ucontrol->value.integer.value[0]);
  2458. if (ucontrol->value.integer.value[0])
  2459. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2460. update);
  2461. else
  2462. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2463. update);
  2464. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2465. return 1;
  2466. }
  2467. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2468. struct snd_ctl_elem_value *ucontrol)
  2469. {
  2470. ucontrol->value.integer.value[0] = usb_switch_enable;
  2471. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2472. ucontrol->value.integer.value[0]);
  2473. return 0;
  2474. }
  2475. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2476. struct snd_ctl_elem_value *ucontrol)
  2477. {
  2478. struct snd_soc_dapm_widget *widget =
  2479. snd_soc_dapm_kcontrol_widget(kcontrol);
  2480. struct snd_soc_dapm_update *update = NULL;
  2481. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2482. ucontrol->value.integer.value[0]);
  2483. if (ucontrol->value.integer.value[0])
  2484. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2485. 1, update);
  2486. else
  2487. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2488. 0, update);
  2489. usb_switch_enable = ucontrol->value.integer.value[0];
  2490. return 1;
  2491. }
  2492. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2493. struct snd_ctl_elem_value *ucontrol)
  2494. {
  2495. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2496. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2497. ucontrol->value.integer.value[0]);
  2498. return 0;
  2499. }
  2500. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2501. struct snd_ctl_elem_value *ucontrol)
  2502. {
  2503. struct snd_soc_dapm_widget *widget =
  2504. snd_soc_dapm_kcontrol_widget(kcontrol);
  2505. struct snd_soc_dapm_update *update = NULL;
  2506. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2507. ucontrol->value.integer.value[0]);
  2508. if (ucontrol->value.integer.value[0])
  2509. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2510. update);
  2511. else
  2512. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2513. update);
  2514. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2515. return 1;
  2516. }
  2517. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2518. struct snd_ctl_elem_value *ucontrol)
  2519. {
  2520. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2521. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2522. ucontrol->value.integer.value[0]);
  2523. return 0;
  2524. }
  2525. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2526. struct snd_ctl_elem_value *ucontrol)
  2527. {
  2528. struct snd_soc_dapm_widget *widget =
  2529. snd_soc_dapm_kcontrol_widget(kcontrol);
  2530. struct snd_soc_dapm_update *update = NULL;
  2531. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2532. ucontrol->value.integer.value[0]);
  2533. if (ucontrol->value.integer.value[0])
  2534. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2535. update);
  2536. else
  2537. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2538. update);
  2539. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2540. return 1;
  2541. }
  2542. static int msm_routing_get_tert_mi2s_switch_mixer(
  2543. struct snd_kcontrol *kcontrol,
  2544. struct snd_ctl_elem_value *ucontrol)
  2545. {
  2546. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2547. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2548. ucontrol->value.integer.value[0]);
  2549. return 0;
  2550. }
  2551. static int msm_routing_put_tert_mi2s_switch_mixer(
  2552. struct snd_kcontrol *kcontrol,
  2553. struct snd_ctl_elem_value *ucontrol)
  2554. {
  2555. struct snd_soc_dapm_widget *widget =
  2556. snd_soc_dapm_kcontrol_widget(kcontrol);
  2557. struct snd_soc_dapm_update *update = NULL;
  2558. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2559. ucontrol->value.integer.value[0]);
  2560. if (ucontrol->value.integer.value[0])
  2561. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2562. update);
  2563. else
  2564. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2565. update);
  2566. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2567. return 1;
  2568. }
  2569. static int msm_routing_get_quat_mi2s_switch_mixer(
  2570. struct snd_kcontrol *kcontrol,
  2571. struct snd_ctl_elem_value *ucontrol)
  2572. {
  2573. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2574. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2575. ucontrol->value.integer.value[0]);
  2576. return 0;
  2577. }
  2578. static int msm_routing_put_quat_mi2s_switch_mixer(
  2579. struct snd_kcontrol *kcontrol,
  2580. struct snd_ctl_elem_value *ucontrol)
  2581. {
  2582. struct snd_soc_dapm_widget *widget =
  2583. snd_soc_dapm_kcontrol_widget(kcontrol);
  2584. struct snd_soc_dapm_update *update = NULL;
  2585. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2586. ucontrol->value.integer.value[0]);
  2587. if (ucontrol->value.integer.value[0])
  2588. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2589. update);
  2590. else
  2591. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2592. update);
  2593. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2594. return 1;
  2595. }
  2596. static int msm_routing_get_quin_mi2s_switch_mixer(
  2597. struct snd_kcontrol *kcontrol,
  2598. struct snd_ctl_elem_value *ucontrol)
  2599. {
  2600. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2601. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. return 0;
  2604. }
  2605. static int msm_routing_put_quin_mi2s_switch_mixer(
  2606. struct snd_kcontrol *kcontrol,
  2607. struct snd_ctl_elem_value *ucontrol)
  2608. {
  2609. struct snd_soc_dapm_widget *widget =
  2610. snd_soc_dapm_kcontrol_widget(kcontrol);
  2611. struct snd_soc_dapm_update *update = NULL;
  2612. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2613. ucontrol->value.integer.value[0]);
  2614. if (ucontrol->value.integer.value[0])
  2615. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2616. update);
  2617. else
  2618. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2619. update);
  2620. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2621. return 1;
  2622. }
  2623. static int msm_routing_get_sen_mi2s_switch_mixer(
  2624. struct snd_kcontrol *kcontrol,
  2625. struct snd_ctl_elem_value *ucontrol)
  2626. {
  2627. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2628. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2629. ucontrol->value.integer.value[0]);
  2630. return 0;
  2631. }
  2632. static int msm_routing_put_sen_mi2s_switch_mixer(
  2633. struct snd_kcontrol *kcontrol,
  2634. struct snd_ctl_elem_value *ucontrol)
  2635. {
  2636. struct snd_soc_dapm_widget *widget =
  2637. snd_soc_dapm_kcontrol_widget(kcontrol);
  2638. struct snd_soc_dapm_update *update = NULL;
  2639. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2640. ucontrol->value.integer.value[0]);
  2641. if (ucontrol->value.integer.value[0])
  2642. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2643. update);
  2644. else
  2645. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2646. update);
  2647. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2648. return 1;
  2649. }
  2650. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2651. struct snd_ctl_elem_value *ucontrol)
  2652. {
  2653. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2654. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2655. ucontrol->value.integer.value[0]);
  2656. return 0;
  2657. }
  2658. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2659. struct snd_ctl_elem_value *ucontrol)
  2660. {
  2661. struct snd_soc_dapm_widget *widget =
  2662. snd_soc_dapm_kcontrol_widget(kcontrol);
  2663. struct snd_soc_dapm_update *update = NULL;
  2664. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2665. ucontrol->value.integer.value[0]);
  2666. if (ucontrol->value.integer.value[0])
  2667. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2668. update);
  2669. else
  2670. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2671. update);
  2672. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2673. return 1;
  2674. }
  2675. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2676. struct snd_ctl_elem_value *ucontrol)
  2677. {
  2678. ucontrol->value.integer.value[0] = lsm_port_index;
  2679. return 0;
  2680. }
  2681. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2682. struct snd_ctl_elem_value *ucontrol)
  2683. {
  2684. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2685. int mux = ucontrol->value.enumerated.item[0];
  2686. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2687. if (mux >= e->items) {
  2688. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2689. return -EINVAL;
  2690. }
  2691. pr_debug("%s: LSM enable %ld\n", __func__,
  2692. ucontrol->value.integer.value[0]);
  2693. switch (ucontrol->value.integer.value[0]) {
  2694. case 1:
  2695. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2696. break;
  2697. case 2:
  2698. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2699. break;
  2700. case 3:
  2701. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2702. break;
  2703. case 4:
  2704. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2705. break;
  2706. case 5:
  2707. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2708. break;
  2709. case 6:
  2710. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2711. break;
  2712. case 7:
  2713. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2714. break;
  2715. case 8:
  2716. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2717. break;
  2718. case 9:
  2719. lsm_port = ADM_LSM_PORT_ID;
  2720. break;
  2721. case 10:
  2722. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2723. break;
  2724. case 11:
  2725. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2726. break;
  2727. case 12:
  2728. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2729. break;
  2730. case 13:
  2731. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2732. break;
  2733. case 14:
  2734. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2735. break;
  2736. case 15:
  2737. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2738. break;
  2739. case 16:
  2740. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2741. break;
  2742. default:
  2743. pr_err("Default lsm port");
  2744. break;
  2745. }
  2746. set_lsm_port(lsm_port);
  2747. lsm_port_index = ucontrol->value.integer.value[0];
  2748. return 0;
  2749. }
  2750. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2751. struct snd_ctl_elem_value *ucontrol)
  2752. {
  2753. int i;
  2754. u16 port_id;
  2755. enum afe_mad_type mad_type;
  2756. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2757. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2758. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2759. strlen(lsm_port_text[i])))
  2760. break;
  2761. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2762. pr_warn("%s: Invalid id name %s\n", __func__,
  2763. kcontrol->id.name);
  2764. return -EINVAL;
  2765. }
  2766. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2767. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2768. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2769. strlen(lsm_port_text[7])))
  2770. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2771. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2772. strlen(lsm_port_text[8])))
  2773. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2774. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2775. strlen(lsm_port_text[10])))
  2776. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2777. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2778. strlen(lsm_port_text[14])))
  2779. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2780. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2781. strlen(lsm_port_text[15])))
  2782. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2783. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2784. strlen(lsm_port_text[16])))
  2785. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2786. mad_type = afe_port_get_mad_type(port_id);
  2787. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2788. mad_type);
  2789. switch (mad_type) {
  2790. case MAD_HW_NONE:
  2791. ucontrol->value.integer.value[0] = MADNONE;
  2792. break;
  2793. case MAD_HW_AUDIO:
  2794. ucontrol->value.integer.value[0] = MADAUDIO;
  2795. break;
  2796. case MAD_HW_BEACON:
  2797. ucontrol->value.integer.value[0] = MADBEACON;
  2798. break;
  2799. case MAD_HW_ULTRASOUND:
  2800. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2801. break;
  2802. case MAD_SW_AUDIO:
  2803. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2804. break;
  2805. default:
  2806. pr_warn("%s: Unknown\n", __func__);
  2807. return -EINVAL;
  2808. }
  2809. return 0;
  2810. }
  2811. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2812. struct snd_ctl_elem_value *ucontrol)
  2813. {
  2814. int i;
  2815. u16 port_id;
  2816. enum afe_mad_type mad_type;
  2817. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2818. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2819. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2820. strlen(lsm_port_text[i])))
  2821. break;
  2822. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2823. pr_warn("%s: Invalid id name %s\n", __func__,
  2824. kcontrol->id.name);
  2825. return -EINVAL;
  2826. }
  2827. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2828. switch (ucontrol->value.integer.value[0]) {
  2829. case MADNONE:
  2830. mad_type = MAD_HW_NONE;
  2831. break;
  2832. case MADAUDIO:
  2833. mad_type = MAD_HW_AUDIO;
  2834. break;
  2835. case MADBEACON:
  2836. mad_type = MAD_HW_BEACON;
  2837. break;
  2838. case MADULTRASOUND:
  2839. mad_type = MAD_HW_ULTRASOUND;
  2840. break;
  2841. case MADSWAUDIO:
  2842. mad_type = MAD_SW_AUDIO;
  2843. break;
  2844. default:
  2845. pr_warn("%s: Unknown\n", __func__);
  2846. return -EINVAL;
  2847. }
  2848. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2849. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2850. strlen(lsm_port_text[7])))
  2851. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2852. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2853. strlen(lsm_port_text[8])))
  2854. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2855. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2856. strlen(lsm_port_text[10])))
  2857. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2858. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2859. strlen(lsm_port_text[14])))
  2860. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2861. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2862. strlen(lsm_port_text[15])))
  2863. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2864. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2865. strlen(lsm_port_text[16])))
  2866. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2867. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2868. mad_type);
  2869. return afe_port_set_mad_type(port_id, mad_type);
  2870. }
  2871. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2872. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2873. adm_override_chs_text);
  2874. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2875. {
  2876. int backend_id;
  2877. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2878. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2879. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2880. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2881. } else {
  2882. pr_err("%s: unsupported backend id: %s",
  2883. __func__, kcontrol->id.name);
  2884. return -EINVAL;
  2885. }
  2886. return backend_id;
  2887. }
  2888. static int msm_routing_adm_channel_config_get(
  2889. struct snd_kcontrol *kcontrol,
  2890. struct snd_ctl_elem_value *ucontrol)
  2891. {
  2892. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2893. if (backend_id >= 0) {
  2894. mutex_lock(&routing_lock);
  2895. ucontrol->value.integer.value[0] =
  2896. msm_bedais[backend_id].adm_override_ch;
  2897. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2898. ucontrol->value.integer.value[0], backend_id);
  2899. mutex_unlock(&routing_lock);
  2900. }
  2901. return 0;
  2902. }
  2903. static int msm_routing_adm_channel_config_put(
  2904. struct snd_kcontrol *kcontrol,
  2905. struct snd_ctl_elem_value *ucontrol)
  2906. {
  2907. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2908. if (backend_id >= 0) {
  2909. mutex_lock(&routing_lock);
  2910. msm_bedais[backend_id].adm_override_ch =
  2911. ucontrol->value.integer.value[0];
  2912. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2913. __func__, backend_id,
  2914. msm_bedais[backend_id].adm_override_ch);
  2915. mutex_unlock(&routing_lock);
  2916. }
  2917. return 0;
  2918. }
  2919. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2920. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2921. msm_routing_adm_channel_config_get,
  2922. msm_routing_adm_channel_config_put),
  2923. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2924. msm_routing_adm_channel_config_get,
  2925. msm_routing_adm_channel_config_put),
  2926. };
  2927. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2928. struct snd_ctl_elem_value *ucontrol)
  2929. {
  2930. mutex_lock(&routing_lock);
  2931. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2932. mutex_unlock(&routing_lock);
  2933. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2934. ucontrol->value.integer.value[0]);
  2935. return 0;
  2936. };
  2937. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2938. struct snd_ctl_elem_value *ucontrol)
  2939. {
  2940. struct aanc_data aanc_info;
  2941. mutex_lock(&routing_lock);
  2942. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2943. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2944. ucontrol->value.integer.value[0]);
  2945. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2946. if (ucontrol->value.integer.value[0] == 0) {
  2947. aanc_info.aanc_active = false;
  2948. aanc_info.aanc_tx_port = 0;
  2949. aanc_info.aanc_rx_port = 0;
  2950. } else {
  2951. aanc_info.aanc_active = true;
  2952. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2953. aanc_info.aanc_tx_port =
  2954. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2955. }
  2956. afe_set_aanc_info(&aanc_info);
  2957. mutex_unlock(&routing_lock);
  2958. return 0;
  2959. };
  2960. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2961. struct snd_ctl_elem_value *ucontrol)
  2962. {
  2963. int idx = 0, shift = 0;
  2964. struct soc_mixer_control *mc =
  2965. (struct soc_mixer_control *)kcontrol->private_value;
  2966. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2967. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2968. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2969. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2970. return -EINVAL;
  2971. }
  2972. if (test_bit(shift,
  2973. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2974. ucontrol->value.integer.value[0] = 1;
  2975. else
  2976. ucontrol->value.integer.value[0] = 0;
  2977. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2978. ucontrol->value.integer.value[0]);
  2979. return 0;
  2980. }
  2981. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2982. struct snd_ctl_elem_value *ucontrol)
  2983. {
  2984. int idx = 0, shift = 0;
  2985. struct soc_mixer_control *mc =
  2986. (struct soc_mixer_control *)kcontrol->private_value;
  2987. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2988. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2989. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2990. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2991. return -EINVAL;
  2992. }
  2993. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2994. __func__, mc->shift, mc->rshift,
  2995. ucontrol->value.integer.value[0], idx, shift);
  2996. if (ucontrol->value.integer.value[0]) {
  2997. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2998. msm_bedais[mc->rshift].port_id);
  2999. set_bit(shift,
  3000. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3001. } else {
  3002. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3003. msm_bedais[mc->rshift].port_id);
  3004. clear_bit(shift,
  3005. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3006. }
  3007. return 1;
  3008. }
  3009. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3010. struct snd_ctl_elem_value *ucontrol)
  3011. {
  3012. u16 fe_id = 0;
  3013. fe_id = ((struct soc_mixer_control *)
  3014. kcontrol->private_value)->shift;
  3015. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3016. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3017. return -EINVAL;
  3018. }
  3019. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3020. return 0;
  3021. }
  3022. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3023. struct snd_ctl_elem_value *ucontrol)
  3024. {
  3025. u16 fe_id = 0;
  3026. fe_id = ((struct soc_mixer_control *)
  3027. kcontrol->private_value)->shift;
  3028. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3029. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3030. return -EINVAL;
  3031. }
  3032. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3033. return 1;
  3034. }
  3035. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3036. struct snd_ctl_elem_value *ucontrol)
  3037. {
  3038. u16 fe_id = 0;
  3039. fe_id = ((struct soc_multi_mixer_control *)
  3040. kcontrol->private_value)->shift;
  3041. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3042. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3043. return -EINVAL;
  3044. }
  3045. ucontrol->value.integer.value[0] =
  3046. channel_mixer[fe_id].output_channel;
  3047. return 0;
  3048. }
  3049. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3050. struct snd_ctl_elem_value *ucontrol)
  3051. {
  3052. u16 fe_id = 0;
  3053. fe_id = ((struct soc_multi_mixer_control *)
  3054. kcontrol->private_value)->shift;
  3055. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3056. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3057. return -EINVAL;
  3058. }
  3059. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3060. fe_id,
  3061. (unsigned int)(ucontrol->value.integer.value[0]));
  3062. channel_mixer[fe_id].output_channel =
  3063. (unsigned int)(ucontrol->value.integer.value[0]);
  3064. return 1;
  3065. }
  3066. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3067. /* If new backend is added, need update this array */
  3068. static const char *const be_name[] = {
  3069. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3070. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3071. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3072. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3073. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3074. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3075. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3076. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3077. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3078. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3079. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3080. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3081. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3082. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3083. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3084. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3085. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3086. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3087. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3088. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3089. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3090. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3091. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3092. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3093. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3094. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3095. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3096. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3097. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3098. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3099. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3100. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3101. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3102. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3103. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3104. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3105. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3106. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3107. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3108. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3109. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3110. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3111. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3112. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3113. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3114. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3115. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3116. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3117. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3118. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3119. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3120. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3121. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3122. "SEC_META_MI2S_RX"
  3123. };
  3124. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3126. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3128. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3130. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3132. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3134. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3136. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3138. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3140. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3142. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3146. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3148. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3158. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3159. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3160. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3161. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3162. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3163. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3164. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3165. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3166. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3167. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3168. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3169. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3170. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3171. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3172. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3173. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3174. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3175. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3176. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3177. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3178. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3179. unsigned int channels,
  3180. unsigned int items, const char *const names[])
  3181. {
  3182. if (uinfo->value.enumerated.item >= items)
  3183. uinfo->value.enumerated.item = items - 1;
  3184. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3185. sizeof(uinfo->value.enumerated.name),
  3186. "ALSA: too long item name '%s'\n",
  3187. names[uinfo->value.enumerated.item]);
  3188. strlcpy(uinfo->value.enumerated.name,
  3189. names[uinfo->value.enumerated.item],
  3190. sizeof(uinfo->value.enumerated.name));
  3191. return 0;
  3192. }
  3193. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3194. struct snd_ctl_elem_info *uinfo)
  3195. {
  3196. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3197. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3198. uinfo->count = 1;
  3199. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3200. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3201. return 0;
  3202. }
  3203. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3204. struct snd_ctl_elem_value *ucontrol)
  3205. {
  3206. u16 fe_id = 0;
  3207. fe_id = ((struct soc_enum *)
  3208. kcontrol->private_value)->shift_l;
  3209. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3210. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3211. return -EINVAL;
  3212. }
  3213. pr_debug("%s: FE %d %s\n", __func__,
  3214. fe_id,
  3215. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3216. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3217. return 0;
  3218. }
  3219. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3220. struct snd_ctl_elem_value *ucontrol)
  3221. {
  3222. u16 fe_id = 0;
  3223. fe_id = ((struct soc_enum *)
  3224. kcontrol->private_value)->shift_l;
  3225. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3226. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3227. return -EINVAL;
  3228. }
  3229. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3230. pr_debug("%s: %s FE %d\n", __func__,
  3231. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3232. fe_id);
  3233. return 0;
  3234. }
  3235. static int msm_pcm_channel_input_be_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(be_name);
  3242. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3243. return 0;
  3244. }
  3245. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3246. struct snd_ctl_elem_value *ucontrol)
  3247. {
  3248. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3249. u16 fe_id = 0, in_ch = 0;
  3250. fe_id = e->shift_l;
  3251. in_ch = e->shift_r;
  3252. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3253. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3254. return -EINVAL;
  3255. }
  3256. if (in_ch >= ADM_MAX_CHANNELS) {
  3257. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3258. return -EINVAL;
  3259. }
  3260. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3261. return 1;
  3262. }
  3263. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3264. struct snd_ctl_elem_value *ucontrol)
  3265. {
  3266. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3267. u16 fe_id = 0, in_ch = 0;
  3268. fe_id = e->shift_l;
  3269. in_ch = e->shift_r;
  3270. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3271. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3272. return -EINVAL;
  3273. }
  3274. if (in_ch >= ADM_MAX_CHANNELS) {
  3275. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3276. return -EINVAL;
  3277. }
  3278. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3279. return 1;
  3280. }
  3281. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3282. struct snd_ctl_elem_info *uinfo)
  3283. {
  3284. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3285. uinfo->count = ADM_MAX_CHANNELS;
  3286. uinfo->value.integer.min = 0;
  3287. uinfo->value.integer.max = WEIGHT_0_DB;
  3288. return 0;
  3289. }
  3290. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3291. struct snd_ctl_elem_value *ucontrol)
  3292. {
  3293. u16 fe_id = 0, out_ch = 0;
  3294. int i, weight;
  3295. fe_id = ((struct soc_multi_mixer_control *)
  3296. kcontrol->private_value)->shift;
  3297. out_ch = ((struct soc_multi_mixer_control *)
  3298. kcontrol->private_value)->rshift;
  3299. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3300. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3301. return -EINVAL;
  3302. }
  3303. if (out_ch >= ADM_MAX_CHANNELS) {
  3304. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3305. return -EINVAL;
  3306. }
  3307. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3308. __func__, fe_id,
  3309. ucontrol->value.integer.value[0],
  3310. ucontrol->value.integer.value[1],
  3311. ucontrol->value.integer.value[2],
  3312. ucontrol->value.integer.value[3],
  3313. ucontrol->value.integer.value[4],
  3314. ucontrol->value.integer.value[5],
  3315. ucontrol->value.integer.value[6],
  3316. ucontrol->value.integer.value[7]);
  3317. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3318. weight = ucontrol->value.integer.value[i];
  3319. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3320. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3321. __func__, fe_id, out_ch, i,
  3322. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3323. }
  3324. return 0;
  3325. }
  3326. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3327. struct snd_ctl_elem_value *ucontrol)
  3328. {
  3329. u16 fe_id = 0, out_ch = 0;
  3330. int i;
  3331. fe_id = ((struct soc_multi_mixer_control *)
  3332. kcontrol->private_value)->shift;
  3333. out_ch = ((struct soc_multi_mixer_control *)
  3334. kcontrol->private_value)->rshift;
  3335. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3336. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3337. return -EINVAL;
  3338. }
  3339. if (out_ch >= ADM_MAX_CHANNELS) {
  3340. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3341. return -EINVAL;
  3342. }
  3343. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3344. ucontrol->value.integer.value[i] =
  3345. channel_mixer[fe_id].channel_weight[out_ch][i];
  3346. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3347. __func__, fe_id,
  3348. ucontrol->value.integer.value[0],
  3349. ucontrol->value.integer.value[1],
  3350. ucontrol->value.integer.value[2],
  3351. ucontrol->value.integer.value[3],
  3352. ucontrol->value.integer.value[4],
  3353. ucontrol->value.integer.value[5],
  3354. ucontrol->value.integer.value[6],
  3355. ucontrol->value.integer.value[7]);
  3356. return 0;
  3357. }
  3358. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3359. struct snd_ctl_elem_info *uinfo)
  3360. {
  3361. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3362. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3363. /* Valid channel map value ranges from 1 to 64 */
  3364. uinfo->value.integer.min = 0;
  3365. uinfo->value.integer.max = 64;
  3366. return 0;
  3367. }
  3368. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3369. struct snd_ctl_elem_value *ucontrol)
  3370. {
  3371. u16 fe_id = 0;
  3372. int i, ch_map;
  3373. fe_id = ((struct soc_multi_mixer_control *)
  3374. kcontrol->private_value)->shift;
  3375. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3376. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3377. return -EINVAL;
  3378. }
  3379. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3380. ch_map = ucontrol->value.integer.value[i];
  3381. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3382. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3383. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3384. }
  3385. /* Make override_out_ch_map false if ch map is reset */
  3386. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3387. channel_mixer[fe_id].override_out_ch_map = false;
  3388. else
  3389. channel_mixer[fe_id].override_out_ch_map = true;
  3390. return 0;
  3391. }
  3392. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3393. struct snd_ctl_elem_value *ucontrol)
  3394. {
  3395. u16 fe_id = 0;
  3396. int i;
  3397. fe_id = ((struct soc_multi_mixer_control *)
  3398. kcontrol->private_value)->shift;
  3399. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3400. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3401. return -EINVAL;
  3402. }
  3403. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3404. ucontrol->value.integer.value[i] =
  3405. channel_mixer[fe_id].out_ch_map[i];
  3406. return 0;
  3407. }
  3408. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3409. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3410. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3411. msm_pcm_get_channel_rule_index,
  3412. msm_pcm_put_channel_rule_index),
  3413. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3415. msm_pcm_get_channel_rule_index,
  3416. msm_pcm_put_channel_rule_index),
  3417. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3419. msm_pcm_get_channel_rule_index,
  3420. msm_pcm_put_channel_rule_index),
  3421. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3423. msm_pcm_get_channel_rule_index,
  3424. msm_pcm_put_channel_rule_index),
  3425. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3427. msm_pcm_get_channel_rule_index,
  3428. msm_pcm_put_channel_rule_index),
  3429. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3431. msm_pcm_get_channel_rule_index,
  3432. msm_pcm_put_channel_rule_index),
  3433. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3435. msm_pcm_get_channel_rule_index,
  3436. msm_pcm_put_channel_rule_index),
  3437. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3439. msm_pcm_get_channel_rule_index,
  3440. msm_pcm_put_channel_rule_index),
  3441. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3443. msm_pcm_get_channel_rule_index,
  3444. msm_pcm_put_channel_rule_index),
  3445. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3447. msm_pcm_get_channel_rule_index,
  3448. msm_pcm_put_channel_rule_index),
  3449. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3451. msm_pcm_get_channel_rule_index,
  3452. msm_pcm_put_channel_rule_index),
  3453. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3455. msm_pcm_get_out_chs,
  3456. msm_pcm_put_out_chs),
  3457. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3459. msm_pcm_get_out_chs,
  3460. msm_pcm_put_out_chs),
  3461. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3463. msm_pcm_get_out_chs,
  3464. msm_pcm_put_out_chs),
  3465. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3467. msm_pcm_get_out_chs,
  3468. msm_pcm_put_out_chs),
  3469. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3471. msm_pcm_get_out_chs,
  3472. msm_pcm_put_out_chs),
  3473. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3475. msm_pcm_get_out_chs,
  3476. msm_pcm_put_out_chs),
  3477. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3478. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3479. msm_pcm_get_out_chs,
  3480. msm_pcm_put_out_chs),
  3481. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3483. msm_pcm_get_out_chs,
  3484. msm_pcm_put_out_chs),
  3485. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3486. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3487. msm_pcm_get_out_chs,
  3488. msm_pcm_put_out_chs),
  3489. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3491. msm_pcm_get_out_chs,
  3492. msm_pcm_put_out_chs),
  3493. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3494. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3495. msm_pcm_get_out_chs,
  3496. msm_pcm_put_out_chs),
  3497. {
  3498. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3499. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3500. .name = "MultiMedia1 Channel Mixer",
  3501. .info = msm_pcm_channel_mixer_info,
  3502. .get = msm_pcm_channel_mixer_get,
  3503. .put = msm_pcm_channel_mixer_put,
  3504. .private_value = (unsigned long)&(mm1_channel_mux)
  3505. },
  3506. {
  3507. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3508. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3509. .name = "MultiMedia2 Channel Mixer",
  3510. .info = msm_pcm_channel_mixer_info,
  3511. .get = msm_pcm_channel_mixer_get,
  3512. .put = msm_pcm_channel_mixer_put,
  3513. .private_value = (unsigned long)&(mm2_channel_mux)
  3514. },
  3515. {
  3516. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3517. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3518. .name = "MultiMedia3 Channel Mixer",
  3519. .info = msm_pcm_channel_mixer_info,
  3520. .get = msm_pcm_channel_mixer_get,
  3521. .put = msm_pcm_channel_mixer_put,
  3522. .private_value = (unsigned long)&(mm3_channel_mux)
  3523. },
  3524. {
  3525. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3527. .name = "MultiMedia4 Channel Mixer",
  3528. .info = msm_pcm_channel_mixer_info,
  3529. .get = msm_pcm_channel_mixer_get,
  3530. .put = msm_pcm_channel_mixer_put,
  3531. .private_value = (unsigned long)&(mm4_channel_mux)
  3532. },
  3533. {
  3534. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3535. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3536. .name = "MultiMedia18 Channel Mixer",
  3537. .info = msm_pcm_channel_mixer_info,
  3538. .get = msm_pcm_channel_mixer_get,
  3539. .put = msm_pcm_channel_mixer_put,
  3540. .private_value = (unsigned long)&(mm18_channel_mux)
  3541. },
  3542. {
  3543. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3544. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3545. .name = "MultiMedia19 Channel Mixer",
  3546. .info = msm_pcm_channel_mixer_info,
  3547. .get = msm_pcm_channel_mixer_get,
  3548. .put = msm_pcm_channel_mixer_put,
  3549. .private_value = (unsigned long)&(mm19_channel_mux)
  3550. },
  3551. {
  3552. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3553. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3554. .name = "MultiMedia28 Channel Mixer",
  3555. .info = msm_pcm_channel_mixer_info,
  3556. .get = msm_pcm_channel_mixer_get,
  3557. .put = msm_pcm_channel_mixer_put,
  3558. .private_value = (unsigned long)&(mm28_channel_mux)
  3559. },
  3560. {
  3561. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3562. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3563. .name = "MultiMedia29 Channel Mixer",
  3564. .info = msm_pcm_channel_mixer_info,
  3565. .get = msm_pcm_channel_mixer_get,
  3566. .put = msm_pcm_channel_mixer_put,
  3567. .private_value = (unsigned long)&(mm29_channel_mux)
  3568. },
  3569. {
  3570. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3571. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3572. .name = "MultiMedia30 Channel Mixer",
  3573. .info = msm_pcm_channel_mixer_info,
  3574. .get = msm_pcm_channel_mixer_get,
  3575. .put = msm_pcm_channel_mixer_put,
  3576. .private_value = (unsigned long)&(mm30_channel_mux)
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel1",
  3582. .info = msm_pcm_channel_weight_info,
  3583. .get = msm_pcm_channel_weight_get,
  3584. .put = msm_pcm_channel_weight_put,
  3585. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3586. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel2",
  3592. .info = msm_pcm_channel_weight_info,
  3593. .get = msm_pcm_channel_weight_get,
  3594. .put = msm_pcm_channel_weight_put,
  3595. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3596. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel3",
  3602. .info = msm_pcm_channel_weight_info,
  3603. .get = msm_pcm_channel_weight_get,
  3604. .put = msm_pcm_channel_weight_put,
  3605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel4",
  3612. .info = msm_pcm_channel_weight_info,
  3613. .get = msm_pcm_channel_weight_get,
  3614. .put = msm_pcm_channel_weight_put,
  3615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel5",
  3622. .info = msm_pcm_channel_weight_info,
  3623. .get = msm_pcm_channel_weight_get,
  3624. .put = msm_pcm_channel_weight_put,
  3625. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3626. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel6",
  3632. .info = msm_pcm_channel_weight_info,
  3633. .get = msm_pcm_channel_weight_get,
  3634. .put = msm_pcm_channel_weight_put,
  3635. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3636. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel7",
  3642. .info = msm_pcm_channel_weight_info,
  3643. .get = msm_pcm_channel_weight_get,
  3644. .put = msm_pcm_channel_weight_put,
  3645. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3646. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel8",
  3652. .info = msm_pcm_channel_weight_info,
  3653. .get = msm_pcm_channel_weight_get,
  3654. .put = msm_pcm_channel_weight_put,
  3655. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3656. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel9",
  3662. .info = msm_pcm_channel_weight_info,
  3663. .get = msm_pcm_channel_weight_get,
  3664. .put = msm_pcm_channel_weight_put,
  3665. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3666. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia1 Output Channel10",
  3672. .info = msm_pcm_channel_weight_info,
  3673. .get = msm_pcm_channel_weight_get,
  3674. .put = msm_pcm_channel_weight_put,
  3675. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3676. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia1 Output Channel11",
  3682. .info = msm_pcm_channel_weight_info,
  3683. .get = msm_pcm_channel_weight_get,
  3684. .put = msm_pcm_channel_weight_put,
  3685. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3686. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia1 Output Channel12",
  3692. .info = msm_pcm_channel_weight_info,
  3693. .get = msm_pcm_channel_weight_get,
  3694. .put = msm_pcm_channel_weight_put,
  3695. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3696. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia1 Output Channel13",
  3702. .info = msm_pcm_channel_weight_info,
  3703. .get = msm_pcm_channel_weight_get,
  3704. .put = msm_pcm_channel_weight_put,
  3705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3706. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia1 Output Channel14",
  3712. .info = msm_pcm_channel_weight_info,
  3713. .get = msm_pcm_channel_weight_get,
  3714. .put = msm_pcm_channel_weight_put,
  3715. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3716. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia2 Output Channel1",
  3722. .info = msm_pcm_channel_weight_info,
  3723. .get = msm_pcm_channel_weight_get,
  3724. .put = msm_pcm_channel_weight_put,
  3725. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3726. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia2 Output Channel2",
  3732. .info = msm_pcm_channel_weight_info,
  3733. .get = msm_pcm_channel_weight_get,
  3734. .put = msm_pcm_channel_weight_put,
  3735. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3736. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia2 Output Channel3",
  3742. .info = msm_pcm_channel_weight_info,
  3743. .get = msm_pcm_channel_weight_get,
  3744. .put = msm_pcm_channel_weight_put,
  3745. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3746. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia3 Output Channel1",
  3752. .info = msm_pcm_channel_weight_info,
  3753. .get = msm_pcm_channel_weight_get,
  3754. .put = msm_pcm_channel_weight_put,
  3755. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3756. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia3 Output Channel2",
  3762. .info = msm_pcm_channel_weight_info,
  3763. .get = msm_pcm_channel_weight_get,
  3764. .put = msm_pcm_channel_weight_put,
  3765. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3766. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel1",
  3772. .info = msm_pcm_channel_weight_info,
  3773. .get = msm_pcm_channel_weight_get,
  3774. .put = msm_pcm_channel_weight_put,
  3775. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3776. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel2",
  3782. .info = msm_pcm_channel_weight_info,
  3783. .get = msm_pcm_channel_weight_get,
  3784. .put = msm_pcm_channel_weight_put,
  3785. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3786. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel3",
  3792. .info = msm_pcm_channel_weight_info,
  3793. .get = msm_pcm_channel_weight_get,
  3794. .put = msm_pcm_channel_weight_put,
  3795. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3796. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel4",
  3802. .info = msm_pcm_channel_weight_info,
  3803. .get = msm_pcm_channel_weight_get,
  3804. .put = msm_pcm_channel_weight_put,
  3805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel5",
  3812. .info = msm_pcm_channel_weight_info,
  3813. .get = msm_pcm_channel_weight_get,
  3814. .put = msm_pcm_channel_weight_put,
  3815. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3816. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel6",
  3822. .info = msm_pcm_channel_weight_info,
  3823. .get = msm_pcm_channel_weight_get,
  3824. .put = msm_pcm_channel_weight_put,
  3825. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3826. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel7",
  3832. .info = msm_pcm_channel_weight_info,
  3833. .get = msm_pcm_channel_weight_get,
  3834. .put = msm_pcm_channel_weight_put,
  3835. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3836. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel8",
  3842. .info = msm_pcm_channel_weight_info,
  3843. .get = msm_pcm_channel_weight_get,
  3844. .put = msm_pcm_channel_weight_put,
  3845. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3846. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel9",
  3852. .info = msm_pcm_channel_weight_info,
  3853. .get = msm_pcm_channel_weight_get,
  3854. .put = msm_pcm_channel_weight_put,
  3855. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3856. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia18 Output Channel10",
  3862. .info = msm_pcm_channel_weight_info,
  3863. .get = msm_pcm_channel_weight_get,
  3864. .put = msm_pcm_channel_weight_put,
  3865. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3866. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia18 Output Channel11",
  3872. .info = msm_pcm_channel_weight_info,
  3873. .get = msm_pcm_channel_weight_get,
  3874. .put = msm_pcm_channel_weight_put,
  3875. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3876. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia18 Output Channel12",
  3882. .info = msm_pcm_channel_weight_info,
  3883. .get = msm_pcm_channel_weight_get,
  3884. .put = msm_pcm_channel_weight_put,
  3885. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3886. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia18 Output Channel13",
  3892. .info = msm_pcm_channel_weight_info,
  3893. .get = msm_pcm_channel_weight_get,
  3894. .put = msm_pcm_channel_weight_put,
  3895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3896. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia18 Output Channel14",
  3902. .info = msm_pcm_channel_weight_info,
  3903. .get = msm_pcm_channel_weight_get,
  3904. .put = msm_pcm_channel_weight_put,
  3905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3906. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel1",
  3912. .info = msm_pcm_channel_weight_info,
  3913. .get = msm_pcm_channel_weight_get,
  3914. .put = msm_pcm_channel_weight_put,
  3915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3916. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel2",
  3922. .info = msm_pcm_channel_weight_info,
  3923. .get = msm_pcm_channel_weight_get,
  3924. .put = msm_pcm_channel_weight_put,
  3925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3926. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel3",
  3932. .info = msm_pcm_channel_weight_info,
  3933. .get = msm_pcm_channel_weight_get,
  3934. .put = msm_pcm_channel_weight_put,
  3935. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3936. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel4",
  3942. .info = msm_pcm_channel_weight_info,
  3943. .get = msm_pcm_channel_weight_get,
  3944. .put = msm_pcm_channel_weight_put,
  3945. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3946. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel5",
  3952. .info = msm_pcm_channel_weight_info,
  3953. .get = msm_pcm_channel_weight_get,
  3954. .put = msm_pcm_channel_weight_put,
  3955. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3956. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel6",
  3962. .info = msm_pcm_channel_weight_info,
  3963. .get = msm_pcm_channel_weight_get,
  3964. .put = msm_pcm_channel_weight_put,
  3965. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3966. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel7",
  3972. .info = msm_pcm_channel_weight_info,
  3973. .get = msm_pcm_channel_weight_get,
  3974. .put = msm_pcm_channel_weight_put,
  3975. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3976. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel8",
  3982. .info = msm_pcm_channel_weight_info,
  3983. .get = msm_pcm_channel_weight_get,
  3984. .put = msm_pcm_channel_weight_put,
  3985. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3986. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel9",
  3992. .info = msm_pcm_channel_weight_info,
  3993. .get = msm_pcm_channel_weight_get,
  3994. .put = msm_pcm_channel_weight_put,
  3995. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3996. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia19 Output Channel10",
  4002. .info = msm_pcm_channel_weight_info,
  4003. .get = msm_pcm_channel_weight_get,
  4004. .put = msm_pcm_channel_weight_put,
  4005. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4006. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia19 Output Channel11",
  4012. .info = msm_pcm_channel_weight_info,
  4013. .get = msm_pcm_channel_weight_get,
  4014. .put = msm_pcm_channel_weight_put,
  4015. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4016. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia19 Output Channel12",
  4022. .info = msm_pcm_channel_weight_info,
  4023. .get = msm_pcm_channel_weight_get,
  4024. .put = msm_pcm_channel_weight_put,
  4025. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4026. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia19 Output Channel13",
  4032. .info = msm_pcm_channel_weight_info,
  4033. .get = msm_pcm_channel_weight_get,
  4034. .put = msm_pcm_channel_weight_put,
  4035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia19 Output Channel14",
  4042. .info = msm_pcm_channel_weight_info,
  4043. .get = msm_pcm_channel_weight_get,
  4044. .put = msm_pcm_channel_weight_put,
  4045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel1",
  4052. .info = msm_pcm_channel_weight_info,
  4053. .get = msm_pcm_channel_weight_get,
  4054. .put = msm_pcm_channel_weight_put,
  4055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4056. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel2",
  4062. .info = msm_pcm_channel_weight_info,
  4063. .get = msm_pcm_channel_weight_get,
  4064. .put = msm_pcm_channel_weight_put,
  4065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4066. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel3",
  4072. .info = msm_pcm_channel_weight_info,
  4073. .get = msm_pcm_channel_weight_get,
  4074. .put = msm_pcm_channel_weight_put,
  4075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel4",
  4082. .info = msm_pcm_channel_weight_info,
  4083. .get = msm_pcm_channel_weight_get,
  4084. .put = msm_pcm_channel_weight_put,
  4085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel5",
  4092. .info = msm_pcm_channel_weight_info,
  4093. .get = msm_pcm_channel_weight_get,
  4094. .put = msm_pcm_channel_weight_put,
  4095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4096. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel6",
  4102. .info = msm_pcm_channel_weight_info,
  4103. .get = msm_pcm_channel_weight_get,
  4104. .put = msm_pcm_channel_weight_put,
  4105. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4106. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel7",
  4112. .info = msm_pcm_channel_weight_info,
  4113. .get = msm_pcm_channel_weight_get,
  4114. .put = msm_pcm_channel_weight_put,
  4115. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4116. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel8",
  4122. .info = msm_pcm_channel_weight_info,
  4123. .get = msm_pcm_channel_weight_get,
  4124. .put = msm_pcm_channel_weight_put,
  4125. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4126. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel9",
  4132. .info = msm_pcm_channel_weight_info,
  4133. .get = msm_pcm_channel_weight_get,
  4134. .put = msm_pcm_channel_weight_put,
  4135. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4136. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia28 Output Channel10",
  4142. .info = msm_pcm_channel_weight_info,
  4143. .get = msm_pcm_channel_weight_get,
  4144. .put = msm_pcm_channel_weight_put,
  4145. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4146. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia28 Output Channel11",
  4152. .info = msm_pcm_channel_weight_info,
  4153. .get = msm_pcm_channel_weight_get,
  4154. .put = msm_pcm_channel_weight_put,
  4155. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4156. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia28 Output Channel12",
  4162. .info = msm_pcm_channel_weight_info,
  4163. .get = msm_pcm_channel_weight_get,
  4164. .put = msm_pcm_channel_weight_put,
  4165. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4166. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia28 Output Channel13",
  4172. .info = msm_pcm_channel_weight_info,
  4173. .get = msm_pcm_channel_weight_get,
  4174. .put = msm_pcm_channel_weight_put,
  4175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4176. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia28 Output Channel14",
  4182. .info = msm_pcm_channel_weight_info,
  4183. .get = msm_pcm_channel_weight_get,
  4184. .put = msm_pcm_channel_weight_put,
  4185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4186. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel1",
  4192. .info = msm_pcm_channel_weight_info,
  4193. .get = msm_pcm_channel_weight_get,
  4194. .put = msm_pcm_channel_weight_put,
  4195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4196. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel2",
  4202. .info = msm_pcm_channel_weight_info,
  4203. .get = msm_pcm_channel_weight_get,
  4204. .put = msm_pcm_channel_weight_put,
  4205. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4206. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel3",
  4212. .info = msm_pcm_channel_weight_info,
  4213. .get = msm_pcm_channel_weight_get,
  4214. .put = msm_pcm_channel_weight_put,
  4215. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4216. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel4",
  4222. .info = msm_pcm_channel_weight_info,
  4223. .get = msm_pcm_channel_weight_get,
  4224. .put = msm_pcm_channel_weight_put,
  4225. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4226. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel5",
  4232. .info = msm_pcm_channel_weight_info,
  4233. .get = msm_pcm_channel_weight_get,
  4234. .put = msm_pcm_channel_weight_put,
  4235. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4236. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel6",
  4242. .info = msm_pcm_channel_weight_info,
  4243. .get = msm_pcm_channel_weight_get,
  4244. .put = msm_pcm_channel_weight_put,
  4245. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4246. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel7",
  4252. .info = msm_pcm_channel_weight_info,
  4253. .get = msm_pcm_channel_weight_get,
  4254. .put = msm_pcm_channel_weight_put,
  4255. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4256. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel8",
  4262. .info = msm_pcm_channel_weight_info,
  4263. .get = msm_pcm_channel_weight_get,
  4264. .put = msm_pcm_channel_weight_put,
  4265. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4266. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel9",
  4272. .info = msm_pcm_channel_weight_info,
  4273. .get = msm_pcm_channel_weight_get,
  4274. .put = msm_pcm_channel_weight_put,
  4275. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4276. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia29 Output Channel10",
  4282. .info = msm_pcm_channel_weight_info,
  4283. .get = msm_pcm_channel_weight_get,
  4284. .put = msm_pcm_channel_weight_put,
  4285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia29 Output Channel11",
  4292. .info = msm_pcm_channel_weight_info,
  4293. .get = msm_pcm_channel_weight_get,
  4294. .put = msm_pcm_channel_weight_put,
  4295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia29 Output Channel12",
  4302. .info = msm_pcm_channel_weight_info,
  4303. .get = msm_pcm_channel_weight_get,
  4304. .put = msm_pcm_channel_weight_put,
  4305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia29 Output Channel13",
  4312. .info = msm_pcm_channel_weight_info,
  4313. .get = msm_pcm_channel_weight_get,
  4314. .put = msm_pcm_channel_weight_put,
  4315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia29 Output Channel14",
  4322. .info = msm_pcm_channel_weight_info,
  4323. .get = msm_pcm_channel_weight_get,
  4324. .put = msm_pcm_channel_weight_put,
  4325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel1",
  4332. .info = msm_pcm_channel_weight_info,
  4333. .get = msm_pcm_channel_weight_get,
  4334. .put = msm_pcm_channel_weight_put,
  4335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel2",
  4342. .info = msm_pcm_channel_weight_info,
  4343. .get = msm_pcm_channel_weight_get,
  4344. .put = msm_pcm_channel_weight_put,
  4345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel3",
  4352. .info = msm_pcm_channel_weight_info,
  4353. .get = msm_pcm_channel_weight_get,
  4354. .put = msm_pcm_channel_weight_put,
  4355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel4",
  4362. .info = msm_pcm_channel_weight_info,
  4363. .get = msm_pcm_channel_weight_get,
  4364. .put = msm_pcm_channel_weight_put,
  4365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4366. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel5",
  4372. .info = msm_pcm_channel_weight_info,
  4373. .get = msm_pcm_channel_weight_get,
  4374. .put = msm_pcm_channel_weight_put,
  4375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4376. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel6",
  4382. .info = msm_pcm_channel_weight_info,
  4383. .get = msm_pcm_channel_weight_get,
  4384. .put = msm_pcm_channel_weight_put,
  4385. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4386. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel7",
  4392. .info = msm_pcm_channel_weight_info,
  4393. .get = msm_pcm_channel_weight_get,
  4394. .put = msm_pcm_channel_weight_put,
  4395. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4396. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel8",
  4402. .info = msm_pcm_channel_weight_info,
  4403. .get = msm_pcm_channel_weight_get,
  4404. .put = msm_pcm_channel_weight_put,
  4405. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4406. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel9",
  4412. .info = msm_pcm_channel_weight_info,
  4413. .get = msm_pcm_channel_weight_get,
  4414. .put = msm_pcm_channel_weight_put,
  4415. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4416. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia30 Output Channel10",
  4422. .info = msm_pcm_channel_weight_info,
  4423. .get = msm_pcm_channel_weight_get,
  4424. .put = msm_pcm_channel_weight_put,
  4425. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4426. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4427. },
  4428. {
  4429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4430. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4431. .name = "MultiMedia30 Output Channel11",
  4432. .info = msm_pcm_channel_weight_info,
  4433. .get = msm_pcm_channel_weight_get,
  4434. .put = msm_pcm_channel_weight_put,
  4435. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4436. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4437. },
  4438. {
  4439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4441. .name = "MultiMedia30 Output Channel12",
  4442. .info = msm_pcm_channel_weight_info,
  4443. .get = msm_pcm_channel_weight_get,
  4444. .put = msm_pcm_channel_weight_put,
  4445. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4446. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4447. },
  4448. {
  4449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4451. .name = "MultiMedia30 Output Channel13",
  4452. .info = msm_pcm_channel_weight_info,
  4453. .get = msm_pcm_channel_weight_get,
  4454. .put = msm_pcm_channel_weight_put,
  4455. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4456. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4457. },
  4458. {
  4459. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4460. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4461. .name = "MultiMedia30 Output Channel14",
  4462. .info = msm_pcm_channel_weight_info,
  4463. .get = msm_pcm_channel_weight_get,
  4464. .put = msm_pcm_channel_weight_put,
  4465. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4466. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4467. },
  4468. {
  4469. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4470. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4471. .name = "MultiMedia1 Channel1",
  4472. .info = msm_pcm_channel_input_be_info,
  4473. .get = msm_pcm_channel_input_be_get,
  4474. .put = msm_pcm_channel_input_be_put,
  4475. .private_value = (unsigned long)&(mm1_ch1_enum)
  4476. },
  4477. {
  4478. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4479. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4480. .name = "MultiMedia1 Channel2",
  4481. .info = msm_pcm_channel_input_be_info,
  4482. .get = msm_pcm_channel_input_be_get,
  4483. .put = msm_pcm_channel_input_be_put,
  4484. .private_value = (unsigned long)&(mm1_ch2_enum)
  4485. },
  4486. {
  4487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4489. .name = "MultiMedia1 Channel3",
  4490. .info = msm_pcm_channel_input_be_info,
  4491. .get = msm_pcm_channel_input_be_get,
  4492. .put = msm_pcm_channel_input_be_put,
  4493. .private_value = (unsigned long)&(mm1_ch3_enum)
  4494. },
  4495. {
  4496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4498. .name = "MultiMedia1 Channel4",
  4499. .info = msm_pcm_channel_input_be_info,
  4500. .get = msm_pcm_channel_input_be_get,
  4501. .put = msm_pcm_channel_input_be_put,
  4502. .private_value = (unsigned long)&(mm1_ch4_enum)
  4503. },
  4504. {
  4505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4507. .name = "MultiMedia1 Channel5",
  4508. .info = msm_pcm_channel_input_be_info,
  4509. .get = msm_pcm_channel_input_be_get,
  4510. .put = msm_pcm_channel_input_be_put,
  4511. .private_value = (unsigned long)&(mm1_ch5_enum)
  4512. },
  4513. {
  4514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4515. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4516. .name = "MultiMedia1 Channel6",
  4517. .info = msm_pcm_channel_input_be_info,
  4518. .get = msm_pcm_channel_input_be_get,
  4519. .put = msm_pcm_channel_input_be_put,
  4520. .private_value = (unsigned long)&(mm1_ch6_enum)
  4521. },
  4522. {
  4523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4525. .name = "MultiMedia1 Channel7",
  4526. .info = msm_pcm_channel_input_be_info,
  4527. .get = msm_pcm_channel_input_be_get,
  4528. .put = msm_pcm_channel_input_be_put,
  4529. .private_value = (unsigned long)&(mm1_ch7_enum)
  4530. },
  4531. {
  4532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4533. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4534. .name = "MultiMedia1 Channel8",
  4535. .info = msm_pcm_channel_input_be_info,
  4536. .get = msm_pcm_channel_input_be_get,
  4537. .put = msm_pcm_channel_input_be_put,
  4538. .private_value = (unsigned long)&(mm1_ch8_enum)
  4539. },
  4540. {
  4541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4543. .name = "MultiMedia18 Channel1",
  4544. .info = msm_pcm_channel_input_be_info,
  4545. .get = msm_pcm_channel_input_be_get,
  4546. .put = msm_pcm_channel_input_be_put,
  4547. .private_value = (unsigned long)&(mm18_ch1_enum)
  4548. },
  4549. {
  4550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4552. .name = "MultiMedia18 Channel2",
  4553. .info = msm_pcm_channel_input_be_info,
  4554. .get = msm_pcm_channel_input_be_get,
  4555. .put = msm_pcm_channel_input_be_put,
  4556. .private_value = (unsigned long)&(mm18_ch2_enum)
  4557. },
  4558. {
  4559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4561. .name = "MultiMedia19 Channel1",
  4562. .info = msm_pcm_channel_input_be_info,
  4563. .get = msm_pcm_channel_input_be_get,
  4564. .put = msm_pcm_channel_input_be_put,
  4565. .private_value = (unsigned long)&(mm19_ch1_enum)
  4566. },
  4567. {
  4568. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4569. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4570. .name = "MultiMedia19 Channel2",
  4571. .info = msm_pcm_channel_input_be_info,
  4572. .get = msm_pcm_channel_input_be_get,
  4573. .put = msm_pcm_channel_input_be_put,
  4574. .private_value = (unsigned long)&(mm19_ch2_enum)
  4575. },
  4576. {
  4577. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4578. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4579. .name = "MultiMedia28 Channel1",
  4580. .info = msm_pcm_channel_input_be_info,
  4581. .get = msm_pcm_channel_input_be_get,
  4582. .put = msm_pcm_channel_input_be_put,
  4583. .private_value = (unsigned long)&(mm28_ch1_enum)
  4584. },
  4585. {
  4586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4587. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4588. .name = "MultiMedia28 Channel2",
  4589. .info = msm_pcm_channel_input_be_info,
  4590. .get = msm_pcm_channel_input_be_get,
  4591. .put = msm_pcm_channel_input_be_put,
  4592. .private_value = (unsigned long)&(mm28_ch2_enum)
  4593. },
  4594. {
  4595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4597. .name = "MultiMedia29 Channel1",
  4598. .info = msm_pcm_channel_input_be_info,
  4599. .get = msm_pcm_channel_input_be_get,
  4600. .put = msm_pcm_channel_input_be_put,
  4601. .private_value = (unsigned long)&(mm29_ch1_enum)
  4602. },
  4603. {
  4604. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4605. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4606. .name = "MultiMedia29 Channel2",
  4607. .info = msm_pcm_channel_input_be_info,
  4608. .get = msm_pcm_channel_input_be_get,
  4609. .put = msm_pcm_channel_input_be_put,
  4610. .private_value = (unsigned long)&(mm29_ch2_enum)
  4611. },
  4612. {
  4613. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4614. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4615. .name = "MultiMedia30 Channel1",
  4616. .info = msm_pcm_channel_input_be_info,
  4617. .get = msm_pcm_channel_input_be_get,
  4618. .put = msm_pcm_channel_input_be_put,
  4619. .private_value = (unsigned long)&(mm30_ch1_enum)
  4620. },
  4621. {
  4622. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4623. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4624. .name = "MultiMedia30 Channel2",
  4625. .info = msm_pcm_channel_input_be_info,
  4626. .get = msm_pcm_channel_input_be_get,
  4627. .put = msm_pcm_channel_input_be_put,
  4628. .private_value = (unsigned long)&(mm30_ch2_enum)
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia1 Output Channel Map",
  4634. .info = msm_pcm_channel_output_map_info,
  4635. .get = msm_pcm_channel_output_map_get,
  4636. .put = msm_pcm_channel_output_map_put,
  4637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia2 Output Channel Map",
  4644. .info = msm_pcm_channel_output_map_info,
  4645. .get = msm_pcm_channel_output_map_get,
  4646. .put = msm_pcm_channel_output_map_put,
  4647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia3 Output Channel Map",
  4654. .info = msm_pcm_channel_output_map_info,
  4655. .get = msm_pcm_channel_output_map_get,
  4656. .put = msm_pcm_channel_output_map_put,
  4657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia4 Output Channel Map",
  4664. .info = msm_pcm_channel_output_map_info,
  4665. .get = msm_pcm_channel_output_map_get,
  4666. .put = msm_pcm_channel_output_map_put,
  4667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia5 Output Channel Map",
  4674. .info = msm_pcm_channel_output_map_info,
  4675. .get = msm_pcm_channel_output_map_get,
  4676. .put = msm_pcm_channel_output_map_put,
  4677. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4678. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia6 Output Channel Map",
  4684. .info = msm_pcm_channel_output_map_info,
  4685. .get = msm_pcm_channel_output_map_get,
  4686. .put = msm_pcm_channel_output_map_put,
  4687. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4688. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4689. },
  4690. {
  4691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4693. .name = "MultiMedia18 Output Channel Map",
  4694. .info = msm_pcm_channel_output_map_info,
  4695. .get = msm_pcm_channel_output_map_get,
  4696. .put = msm_pcm_channel_output_map_put,
  4697. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4698. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4699. },
  4700. {
  4701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4703. .name = "MultiMedia19 Output Channel Map",
  4704. .info = msm_pcm_channel_output_map_info,
  4705. .get = msm_pcm_channel_output_map_get,
  4706. .put = msm_pcm_channel_output_map_put,
  4707. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4708. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4709. },
  4710. {
  4711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4713. .name = "MultiMedia28 Output Channel Map",
  4714. .info = msm_pcm_channel_output_map_info,
  4715. .get = msm_pcm_channel_output_map_get,
  4716. .put = msm_pcm_channel_output_map_put,
  4717. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4718. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4719. },
  4720. {
  4721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4723. .name = "MultiMedia29 Output Channel Map",
  4724. .info = msm_pcm_channel_output_map_info,
  4725. .get = msm_pcm_channel_output_map_get,
  4726. .put = msm_pcm_channel_output_map_put,
  4727. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4728. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4729. },
  4730. {
  4731. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4732. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4733. .name = "MultiMedia30 Output Channel Map",
  4734. .info = msm_pcm_channel_output_map_info,
  4735. .get = msm_pcm_channel_output_map_get,
  4736. .put = msm_pcm_channel_output_map_put,
  4737. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4738. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4739. },
  4740. };
  4741. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4742. struct snd_ctl_elem_value *ucontrol)
  4743. {
  4744. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4745. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4746. ucontrol->value.integer.value[0]);
  4747. return 0;
  4748. }
  4749. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4750. struct snd_ctl_elem_value *ucontrol)
  4751. {
  4752. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4753. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4754. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4755. return 0;
  4756. }
  4757. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4758. struct snd_ctl_elem_value *ucontrol)
  4759. {
  4760. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4761. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4762. ucontrol->value.integer.value[0]);
  4763. return 0;
  4764. }
  4765. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4766. struct snd_ctl_elem_value *ucontrol)
  4767. {
  4768. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4769. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4770. __func__, msm_ec_ref_ch_downmixed);
  4771. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4772. return 0;
  4773. }
  4774. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4775. struct snd_ctl_elem_value *ucontrol)
  4776. {
  4777. int i = 0, ret = 0;
  4778. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4779. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4780. kcontrol->private_value)->shift;
  4781. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4782. weights[i] = ucontrol->value.integer.value[i];
  4783. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4784. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4785. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4786. return ret;
  4787. }
  4788. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4789. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4790. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4791. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4792. struct snd_ctl_elem_value *ucontrol)
  4793. {
  4794. switch (msm_ec_ref_bit_format) {
  4795. case SNDRV_PCM_FORMAT_S24_LE:
  4796. ucontrol->value.integer.value[0] = 2;
  4797. break;
  4798. case SNDRV_PCM_FORMAT_S16_LE:
  4799. ucontrol->value.integer.value[0] = 1;
  4800. break;
  4801. default:
  4802. ucontrol->value.integer.value[0] = 0;
  4803. break;
  4804. }
  4805. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4806. __func__, ucontrol->value.integer.value[0]);
  4807. return 0;
  4808. }
  4809. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4810. struct snd_ctl_elem_value *ucontrol)
  4811. {
  4812. u16 bit_width = 0;
  4813. switch (ucontrol->value.integer.value[0]) {
  4814. case 2:
  4815. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4816. break;
  4817. case 1:
  4818. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4819. break;
  4820. default:
  4821. msm_ec_ref_bit_format = 0;
  4822. break;
  4823. }
  4824. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4825. bit_width = 16;
  4826. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4827. bit_width = 24;
  4828. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4829. __func__, msm_ec_ref_bit_format);
  4830. adm_ec_ref_rx_bit_width(bit_width);
  4831. return 0;
  4832. }
  4833. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4834. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4835. struct snd_ctl_elem_value *ucontrol)
  4836. {
  4837. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4838. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4839. __func__, ucontrol->value.integer.value[0]);
  4840. return 0;
  4841. }
  4842. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4843. struct snd_ctl_elem_value *ucontrol)
  4844. {
  4845. switch (ucontrol->value.integer.value[0]) {
  4846. case 0:
  4847. msm_ec_ref_sampling_rate = 0;
  4848. break;
  4849. case 1:
  4850. msm_ec_ref_sampling_rate = 8000;
  4851. break;
  4852. case 2:
  4853. msm_ec_ref_sampling_rate = 16000;
  4854. break;
  4855. case 3:
  4856. msm_ec_ref_sampling_rate = 32000;
  4857. break;
  4858. case 4:
  4859. msm_ec_ref_sampling_rate = 44100;
  4860. break;
  4861. case 5:
  4862. msm_ec_ref_sampling_rate = 48000;
  4863. break;
  4864. case 6:
  4865. msm_ec_ref_sampling_rate = 96000;
  4866. break;
  4867. case 7:
  4868. msm_ec_ref_sampling_rate = 192000;
  4869. break;
  4870. case 8:
  4871. msm_ec_ref_sampling_rate = 384000;
  4872. break;
  4873. default:
  4874. msm_ec_ref_sampling_rate = 48000;
  4875. break;
  4876. }
  4877. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4878. __func__, msm_ec_ref_sampling_rate);
  4879. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4880. return 0;
  4881. }
  4882. static int get_ec_ref_port_id(int value, int *index)
  4883. {
  4884. int port_id;
  4885. switch (value) {
  4886. case 0:
  4887. *index = 0;
  4888. port_id = AFE_PORT_INVALID;
  4889. break;
  4890. case 1:
  4891. *index = 1;
  4892. port_id = SLIMBUS_0_RX;
  4893. break;
  4894. case 2:
  4895. *index = 2;
  4896. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4897. break;
  4898. case 3:
  4899. *index = 3;
  4900. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4901. break;
  4902. case 4:
  4903. *index = 4;
  4904. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4905. break;
  4906. case 5:
  4907. *index = 5;
  4908. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4909. break;
  4910. case 6:
  4911. *index = 6;
  4912. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4913. break;
  4914. case 7:
  4915. *index = 7;
  4916. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4917. break;
  4918. case 9:
  4919. *index = 9;
  4920. port_id = SLIMBUS_5_RX;
  4921. break;
  4922. case 10:
  4923. *index = 10;
  4924. port_id = SLIMBUS_1_TX;
  4925. break;
  4926. case 11:
  4927. *index = 11;
  4928. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4929. break;
  4930. case 12:
  4931. *index = 12;
  4932. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4933. break;
  4934. case 13:
  4935. *index = 13;
  4936. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4937. break;
  4938. case 14:
  4939. *index = 14;
  4940. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4941. break;
  4942. case 15:
  4943. *index = 15;
  4944. port_id = SLIMBUS_6_RX;
  4945. break;
  4946. case 16:
  4947. *index = 16;
  4948. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4949. break;
  4950. case 17:
  4951. *index = 17;
  4952. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4953. break;
  4954. case 18:
  4955. *index = 18;
  4956. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4957. break;
  4958. case 19:
  4959. *index = 19;
  4960. port_id = AFE_PORT_ID_USB_RX;
  4961. break;
  4962. case 20:
  4963. *index = 20;
  4964. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4965. break;
  4966. case 21:
  4967. *index = 21;
  4968. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4969. break;
  4970. case 22:
  4971. *index = 22;
  4972. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4973. break;
  4974. case 23:
  4975. *index = 23;
  4976. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4977. break;
  4978. case 24:
  4979. *index = 24;
  4980. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4981. break;
  4982. case 25:
  4983. *index = 25;
  4984. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4985. break;
  4986. case 26:
  4987. *index = 26;
  4988. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4989. break;
  4990. case 27:
  4991. *index = 27;
  4992. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4993. break;
  4994. case 28:
  4995. *index = 28;
  4996. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4997. break;
  4998. case 29:
  4999. *index = 29;
  5000. port_id = SLIMBUS_7_RX;
  5001. break;
  5002. case 30:
  5003. *index = 30;
  5004. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5005. break;
  5006. case 31:
  5007. *index = 31;
  5008. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5009. break;
  5010. case 32:
  5011. *index = 32;
  5012. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5013. break;
  5014. case 33:
  5015. *index = 33;
  5016. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5017. break;
  5018. case 34:
  5019. *index = 34;
  5020. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5021. break;
  5022. case 35:
  5023. *index = 35;
  5024. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5025. break;
  5026. case 36:
  5027. *index = 36;
  5028. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5029. break;
  5030. case 37:
  5031. *index = 37;
  5032. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5033. break;
  5034. case 38:
  5035. *index = 38;
  5036. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5037. break;
  5038. default:
  5039. *index = 0; /* NONE */
  5040. pr_err("%s: Invalid value %d\n", __func__, value);
  5041. port_id = AFE_PORT_INVALID;
  5042. break;
  5043. }
  5044. return port_id;
  5045. }
  5046. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5047. struct snd_ctl_elem_value *ucontrol)
  5048. {
  5049. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5050. mutex_lock(&routing_lock);
  5051. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5052. mutex_unlock(&routing_lock);
  5053. return 0;
  5054. }
  5055. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5056. struct snd_ctl_elem_value *ucontrol)
  5057. {
  5058. int value = ucontrol->value.integer.value[0];
  5059. mutex_lock(&routing_lock);
  5060. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5061. &afe_loopback_tx_port_index);
  5062. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5063. __func__, afe_loopback_tx_port_index);
  5064. mutex_unlock(&routing_lock);
  5065. return 0;
  5066. }
  5067. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5068. "32000", "44100", "48000", "96000", "192000", "384000"};
  5069. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5070. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5071. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5072. ec_ref_bit_format_text),
  5073. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5074. };
  5075. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5076. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5077. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5078. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5079. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5080. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5081. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5082. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5083. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5084. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5085. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5086. "DISPLAY_PORT1", "SEN_MI2S_RX",
  5087. };
  5088. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5089. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5090. };
  5091. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5092. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5093. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5094. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5095. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5096. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5097. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5098. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5099. msm_route_ec_ref_params_enum[0],
  5100. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5101. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5102. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5103. msm_ec_ref_chmixer_weights_put),
  5104. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5105. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5106. msm_ec_ref_chmixer_weights_put),
  5107. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5108. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5109. msm_ec_ref_chmixer_weights_put),
  5110. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5111. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5112. msm_ec_ref_chmixer_weights_put),
  5113. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5114. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5115. msm_ec_ref_chmixer_weights_put),
  5116. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5117. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5118. msm_ec_ref_chmixer_weights_put),
  5119. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5120. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5121. msm_ec_ref_chmixer_weights_put),
  5122. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5123. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5124. msm_ec_ref_chmixer_weights_put),
  5125. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5126. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5127. };
  5128. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5129. struct snd_ctl_elem_value *ucontrol)
  5130. {
  5131. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5132. mutex_lock(&routing_lock);
  5133. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5134. mutex_unlock(&routing_lock);
  5135. return 0;
  5136. }
  5137. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5138. struct snd_ctl_elem_value *ucontrol)
  5139. {
  5140. int value = ucontrol->value.integer.value[0];
  5141. struct snd_soc_dapm_widget *widget =
  5142. snd_soc_dapm_kcontrol_widget(kcontrol);
  5143. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5144. struct snd_soc_dapm_update *update = NULL;
  5145. mutex_lock(&routing_lock);
  5146. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5147. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5148. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5149. __func__, msm_route_ec_ref_rx);
  5150. mutex_unlock(&routing_lock);
  5151. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5152. msm_route_ec_ref_rx, e, update);
  5153. return 0;
  5154. }
  5155. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5156. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5157. msm_route_ec_ref_rx_enum[0],
  5158. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5159. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5160. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5161. msm_route_ec_ref_rx_enum[0],
  5162. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5163. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5164. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5165. msm_route_ec_ref_rx_enum[0],
  5166. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5167. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5168. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5169. msm_route_ec_ref_rx_enum[0],
  5170. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5171. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5172. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5173. msm_route_ec_ref_rx_enum[0],
  5174. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5175. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5176. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5177. msm_route_ec_ref_rx_enum[0],
  5178. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5179. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5180. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5181. msm_route_ec_ref_rx_enum[0],
  5182. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5183. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5184. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5185. msm_route_ec_ref_rx_enum[0],
  5186. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5187. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5188. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5189. msm_route_ec_ref_rx_enum[0],
  5190. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5191. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5192. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5193. msm_route_ec_ref_rx_enum[0],
  5194. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5195. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5196. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5197. msm_route_ec_ref_rx_enum[0],
  5198. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5199. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5200. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5201. msm_route_ec_ref_rx_enum[0],
  5202. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5203. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5204. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5205. msm_route_ec_ref_rx_enum[0],
  5206. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5207. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5208. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5209. msm_route_ec_ref_rx_enum[0],
  5210. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5211. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5212. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5213. msm_route_ec_ref_rx_enum[0],
  5214. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5215. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5216. struct snd_ctl_elem_value *ucontrol)
  5217. {
  5218. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5219. mutex_lock(&routing_lock);
  5220. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5221. mutex_unlock(&routing_lock);
  5222. return 0;
  5223. }
  5224. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5225. struct snd_ctl_elem_value *ucontrol)
  5226. {
  5227. struct snd_soc_dapm_widget *widget =
  5228. snd_soc_dapm_kcontrol_widget(kcontrol);
  5229. int mux = ucontrol->value.enumerated.item[0];
  5230. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5231. int ret = 1;
  5232. bool state = true;
  5233. uint16_t ext_ec_ref_port_id;
  5234. struct snd_soc_dapm_update *update = NULL;
  5235. if (mux >= e->items) {
  5236. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5237. return -EINVAL;
  5238. }
  5239. mutex_lock(&routing_lock);
  5240. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5241. switch (msm_route_ext_ec_ref) {
  5242. case EXT_EC_REF_PRI_MI2S_TX:
  5243. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5244. break;
  5245. case EXT_EC_REF_SEC_MI2S_TX:
  5246. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5247. break;
  5248. case EXT_EC_REF_TERT_MI2S_TX:
  5249. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5250. break;
  5251. case EXT_EC_REF_QUAT_MI2S_TX:
  5252. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5253. break;
  5254. case EXT_EC_REF_QUIN_MI2S_TX:
  5255. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5256. break;
  5257. case EXT_EC_REF_SLIM_1_TX:
  5258. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5259. break;
  5260. case EXT_EC_REF_PRI_TDM_TX:
  5261. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5262. break;
  5263. case EXT_EC_REF_SEC_TDM_TX:
  5264. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5265. break;
  5266. case EXT_EC_REF_NONE:
  5267. default:
  5268. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5269. state = false;
  5270. break;
  5271. }
  5272. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5273. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5274. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5275. mutex_unlock(&routing_lock);
  5276. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5277. update);
  5278. } else {
  5279. ret = -EINVAL;
  5280. mutex_unlock(&routing_lock);
  5281. }
  5282. return ret;
  5283. }
  5284. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5285. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5286. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5287. "SLIM_1_TX", "PRI_TDM_TX",
  5288. "SEC_TDM_TX"};
  5289. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5290. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5291. };
  5292. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5293. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5294. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5295. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5296. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5297. MSM_BACKEND_DAI_PRI_I2S_RX,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_PRI_I2S_RX,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_PRI_I2S_RX,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_PRI_I2S_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_PRI_I2S_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_PRI_I2S_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_PRI_I2S_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_PRI_I2S_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_PRI_I2S_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_PRI_I2S_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_PRI_I2S_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_PRI_I2S_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_PRI_I2S_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_PRI_I2S_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_PRI_I2S_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_PRI_I2S_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_PRI_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_PRI_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_PRI_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_PRI_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_PRI_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_PRI_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_PRI_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. };
  5389. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5390. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_SEC_I2S_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_SEC_I2S_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_SEC_I2S_RX,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_SEC_I2S_RX,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_SEC_I2S_RX,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_SEC_I2S_RX,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_SEC_I2S_RX,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_SEC_I2S_RX,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_SEC_I2S_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_SEC_I2S_RX,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_SEC_I2S_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_SEC_I2S_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_SEC_I2S_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_SEC_I2S_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_SEC_I2S_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_SEC_I2S_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_SEC_I2S_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_SEC_I2S_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_SEC_I2S_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_SEC_I2S_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_SEC_I2S_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_SEC_I2S_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_SEC_I2S_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. };
  5483. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5484. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. };
  5577. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5578. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5587. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5591. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5595. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5599. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. };
  5671. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5672. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. };
  5741. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5742. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5751. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5755. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. };
  5835. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5836. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5845. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5849. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. };
  5929. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5930. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_MI2S_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_MI2S_RX,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_MI2S_RX,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_MI2S_RX,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_MI2S_RX,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_MI2S_RX,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_MI2S_RX,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_MI2S_RX,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_MI2S_RX,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_MI2S_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_MI2S_RX,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_MI2S_RX,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_MI2S_RX,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_MI2S_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_MI2S_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_MI2S_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. };
  6023. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6024. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. };
  6121. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6122. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6139. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. };
  6215. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6216. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. };
  6305. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6306. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6327. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6331. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6332. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6333. msm_routing_put_audio_mixer),
  6334. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6335. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6339. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6343. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6344. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6345. msm_routing_put_audio_mixer),
  6346. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6351. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6355. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6363. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. };
  6391. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6392. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. };
  6397. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6398. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. };
  6491. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6492. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6586. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. };
  6589. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6590. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. };
  6655. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6656. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. };
  6721. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6722. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. };
  6811. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6812. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. };
  6901. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6902. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_HDMI_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_HDMI_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_HDMI_RX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_HDMI_RX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_HDMI_RX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_HDMI_RX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_HDMI_RX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_HDMI_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_HDMI_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_HDMI_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_HDMI_RX,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_HDMI_RX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_HDMI_RX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_HDMI_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_HDMI_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_HDMI_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_HDMI_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_HDMI_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_HDMI_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_HDMI_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_HDMI_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_HDMI_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_HDMI_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. };
  6995. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6996. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. };
  7065. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7066. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7111. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7115. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7119. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7123. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7124. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7125. msm_routing_put_audio_mixer),
  7126. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7127. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7131. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. };
  7135. /* incall music delivery mixer */
  7136. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7137. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. };
  7158. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7159. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. };
  7176. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7177. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. };
  7194. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7195. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. };
  7264. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. };
  7334. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7335. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. };
  7404. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7405. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. };
  7474. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7475. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. };
  7544. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7545. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. };
  7614. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7615. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. };
  7684. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7685. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. };
  7754. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7755. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. };
  7824. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. };
  7894. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7895. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. };
  7964. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7965. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. };
  8034. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. };
  8104. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8105. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_USB_RX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_USB_RX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_USB_RX,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_USB_RX,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_USB_RX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_USB_RX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_USB_RX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_USB_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_USB_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_USB_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_USB_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_USB_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_USB_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_USB_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_USB_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_USB_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_USB_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. };
  8174. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8175. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. };
  8268. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8269. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. };
  8338. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8339. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_INT_FM_RX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_INT_FM_RX,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_INT_FM_RX,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_INT_FM_RX,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_INT_FM_RX,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_INT_FM_RX,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_INT_FM_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_INT_FM_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_INT_FM_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_INT_FM_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_INT_FM_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_INT_FM_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_INT_FM_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_INT_FM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_INT_FM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_INT_FM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_INT_FM_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_INT_FM_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_INT_FM_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_INT_FM_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_INT_FM_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_INT_FM_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_INT_FM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. };
  8432. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_AFE_PCM_RX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_AFE_PCM_RX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_AFE_PCM_RX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_AFE_PCM_RX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_AFE_PCM_RX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_AFE_PCM_RX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_AFE_PCM_RX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_AFE_PCM_RX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_AFE_PCM_RX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_AFE_PCM_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_AFE_PCM_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_AFE_PCM_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_AFE_PCM_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_AFE_PCM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_AFE_PCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_AFE_PCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_AFE_PCM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_AFE_PCM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_AFE_PCM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_AFE_PCM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_AFE_PCM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_AFE_PCM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_AFE_PCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. };
  8526. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8527. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_AUXPCM_RX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_AUXPCM_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_AUXPCM_RX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_AUXPCM_RX,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_AUXPCM_RX,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_AUXPCM_RX,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_AUXPCM_RX,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_AUXPCM_RX,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_AUXPCM_RX,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_AUXPCM_RX,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_AUXPCM_RX,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_AUXPCM_RX,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_AUXPCM_RX,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_AUXPCM_RX,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_AUXPCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_AUXPCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_AUXPCM_RX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_AUXPCM_RX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_AUXPCM_RX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_AUXPCM_RX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_AUXPCM_RX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_AUXPCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. };
  8624. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. };
  8722. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. };
  8792. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. };
  8862. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8863. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. };
  8932. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8933. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. };
  9002. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. };
  9080. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9081. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. };
  9158. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9159. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. };
  9236. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9237. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. };
  9314. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9315. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. };
  9384. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9385. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. };
  9462. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9463. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. };
  9540. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9541. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. };
  9618. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. };
  9696. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9697. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. };
  9766. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9767. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. };
  9844. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9845. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. };
  9914. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9915. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. };
  9992. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. };
  10070. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10071. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10125. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10126. msm_routing_put_audio_mixer),
  10127. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10129. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10130. msm_routing_put_audio_mixer),
  10131. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10133. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10134. msm_routing_put_audio_mixer),
  10135. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10136. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10137. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10138. msm_routing_put_audio_mixer),
  10139. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10141. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10142. msm_routing_put_audio_mixer),
  10143. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. };
  10148. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10149. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. };
  10226. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  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_QUAT_TDM_RX_0,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. };
  10308. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10309. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10343. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10344. msm_routing_put_audio_mixer),
  10345. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10348. msm_routing_put_audio_mixer),
  10349. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10351. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10352. msm_routing_put_audio_mixer),
  10353. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10355. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10356. msm_routing_put_audio_mixer),
  10357. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10359. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10360. msm_routing_put_audio_mixer),
  10361. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10363. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10364. msm_routing_put_audio_mixer),
  10365. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. };
  10378. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10379. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10442. msm_routing_put_audio_mixer),
  10443. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10445. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10446. msm_routing_put_audio_mixer),
  10447. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10449. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10450. msm_routing_put_audio_mixer),
  10451. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10453. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. };
  10460. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10461. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10499. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10500. msm_routing_put_audio_mixer),
  10501. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10503. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10504. msm_routing_put_audio_mixer),
  10505. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10507. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10508. msm_routing_put_audio_mixer),
  10509. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10511. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10512. msm_routing_put_audio_mixer),
  10513. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. };
  10542. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10543. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10580. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10581. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10582. msm_routing_put_audio_mixer),
  10583. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10585. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10586. msm_routing_put_audio_mixer),
  10587. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10589. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10590. msm_routing_put_audio_mixer),
  10591. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10593. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10594. msm_routing_put_audio_mixer),
  10595. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. };
  10624. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10648. msm_routing_put_audio_mixer),
  10649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10656. msm_routing_put_audio_mixer),
  10657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10668. msm_routing_put_audio_mixer),
  10669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10684. msm_routing_put_audio_mixer),
  10685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10688. msm_routing_put_audio_mixer),
  10689. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10691. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10692. msm_routing_put_audio_mixer),
  10693. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10695. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10696. msm_routing_put_audio_mixer),
  10697. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10699. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10700. msm_routing_put_audio_mixer),
  10701. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10703. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10704. msm_routing_put_audio_mixer),
  10705. };
  10706. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10707. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10753. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10754. msm_routing_put_audio_mixer),
  10755. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10757. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10758. msm_routing_put_audio_mixer),
  10759. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10761. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10766. msm_routing_put_audio_mixer),
  10767. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10769. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10770. msm_routing_put_audio_mixer),
  10771. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. };
  10776. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  10777. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. };
  10842. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10843. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. };
  10920. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  10921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. };
  10990. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10991. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. };
  11072. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11073. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11096. msm_routing_put_audio_mixer),
  11097. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11099. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11100. msm_routing_put_audio_mixer),
  11101. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11104. msm_routing_put_audio_mixer),
  11105. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. };
  11138. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11139. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. };
  11220. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11221. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. };
  11294. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11295. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. };
  11360. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11361. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. };
  11434. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11435. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. };
  11508. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11509. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11511. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11512. msm_routing_put_audio_mixer),
  11513. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. };
  11582. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11583. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_PRI_I2S_TX,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_MI2S_TX,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_AUXPCM_TX,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_INT_FM_TX,
  11653. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_AFE_PCM_TX,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11662. msm_routing_put_audio_mixer),
  11663. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11665. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11666. msm_routing_put_audio_mixer),
  11667. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11670. msm_routing_put_audio_mixer),
  11671. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_USB_TX,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. };
  11856. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11857. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_INT_FM_TX,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_MI2S_TX,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11866. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11868. msm_routing_put_audio_mixer),
  11869. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_USB_TX,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. };
  12082. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12083. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_INT_FM_TX,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_MI2S_TX,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_AFE_PCM_TX,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_AUXPCM_TX,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12113. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12114. msm_routing_put_audio_mixer),
  12115. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12141. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. };
  12304. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12305. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_INT_FM_TX,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_AFE_PCM_TX,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12392. msm_routing_put_audio_mixer),
  12393. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_USB_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. };
  12518. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12519. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_INT_FM_TX,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_MI2S_TX,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_AFE_PCM_TX,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_AUXPCM_TX,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_USB_TX,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. };
  12764. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12765. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_INT_FM_TX,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_AUXPCM_TX,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_USB_TX,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. };
  12986. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12987. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_INT_FM_TX,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_AFE_PCM_TX,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13089. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13094. msm_routing_put_audio_mixer),
  13095. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13098. msm_routing_put_audio_mixer),
  13099. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13102. msm_routing_put_audio_mixer),
  13103. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13106. msm_routing_put_audio_mixer),
  13107. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13110. msm_routing_put_audio_mixer),
  13111. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13114. msm_routing_put_audio_mixer),
  13115. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13118. msm_routing_put_audio_mixer),
  13119. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13125. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13126. msm_routing_put_audio_mixer),
  13127. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13130. msm_routing_put_audio_mixer),
  13131. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13133. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13134. msm_routing_put_audio_mixer),
  13135. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13137. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13138. msm_routing_put_audio_mixer),
  13139. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13141. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13142. msm_routing_put_audio_mixer),
  13143. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_USB_TX,
  13145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13146. msm_routing_put_audio_mixer),
  13147. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13149. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13150. msm_routing_put_audio_mixer),
  13151. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13153. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13154. msm_routing_put_audio_mixer),
  13155. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13157. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13158. msm_routing_put_audio_mixer),
  13159. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13161. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13166. msm_routing_put_audio_mixer),
  13167. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13170. msm_routing_put_audio_mixer),
  13171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13173. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13174. msm_routing_put_audio_mixer),
  13175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13177. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13178. msm_routing_put_audio_mixer),
  13179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13181. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13190. msm_routing_put_audio_mixer),
  13191. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13194. msm_routing_put_audio_mixer),
  13195. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13198. msm_routing_put_audio_mixer),
  13199. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13200. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13202. msm_routing_put_audio_mixer),
  13203. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13205. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13206. msm_routing_put_audio_mixer),
  13207. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13210. msm_routing_put_audio_mixer),
  13211. };
  13212. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13213. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_INT_FM_TX,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13251. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13252. msm_routing_put_audio_mixer),
  13253. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_AFE_PCM_TX,
  13255. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13256. msm_routing_put_audio_mixer),
  13257. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13259. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13260. msm_routing_put_audio_mixer),
  13261. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13263. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13283. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13288. msm_routing_put_audio_mixer),
  13289. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13291. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13292. msm_routing_put_audio_mixer),
  13293. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13296. msm_routing_put_audio_mixer),
  13297. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13324. msm_routing_put_audio_mixer),
  13325. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_USB_TX,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_MI2S_TX,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_AUXPCM_TX,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13371. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13372. msm_routing_put_audio_mixer),
  13373. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13375. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13376. msm_routing_put_audio_mixer),
  13377. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13379. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13380. msm_routing_put_audio_mixer),
  13381. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13383. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13384. msm_routing_get_audio_mixer,
  13385. msm_routing_put_audio_mixer),
  13386. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13388. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13389. msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13394. msm_routing_get_audio_mixer,
  13395. msm_routing_put_audio_mixer),
  13396. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13399. msm_routing_get_audio_mixer,
  13400. msm_routing_put_audio_mixer),
  13401. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13403. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13404. msm_routing_get_audio_mixer,
  13405. msm_routing_put_audio_mixer),
  13406. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13408. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13409. msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13422. msm_routing_put_audio_mixer),
  13423. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. };
  13428. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13429. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13430. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13431. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13432. msm_routing_put_audio_mixer),
  13433. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13434. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13436. msm_routing_put_audio_mixer),
  13437. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13439. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13440. msm_routing_put_audio_mixer),
  13441. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_INT_FM_TX,
  13443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13444. msm_routing_put_audio_mixer),
  13445. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13447. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13448. msm_routing_put_audio_mixer),
  13449. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_AFE_PCM_TX,
  13451. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13452. msm_routing_put_audio_mixer),
  13453. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13456. msm_routing_put_audio_mixer),
  13457. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13459. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13460. msm_routing_put_audio_mixer),
  13461. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13463. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13464. msm_routing_put_audio_mixer),
  13465. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13466. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13468. msm_routing_put_audio_mixer),
  13469. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13470. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13471. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13472. msm_routing_put_audio_mixer),
  13473. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13474. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13475. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13476. msm_routing_put_audio_mixer),
  13477. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13479. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13480. msm_routing_put_audio_mixer),
  13481. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13483. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13484. msm_routing_put_audio_mixer),
  13485. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13487. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13488. msm_routing_put_audio_mixer),
  13489. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13492. msm_routing_put_audio_mixer),
  13493. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13495. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13496. msm_routing_put_audio_mixer),
  13497. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13499. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13500. msm_routing_put_audio_mixer),
  13501. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13504. msm_routing_put_audio_mixer),
  13505. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13507. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13508. msm_routing_put_audio_mixer),
  13509. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13511. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13512. msm_routing_put_audio_mixer),
  13513. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13515. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13516. msm_routing_put_audio_mixer),
  13517. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13520. msm_routing_put_audio_mixer),
  13521. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13523. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13524. msm_routing_put_audio_mixer),
  13525. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13527. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13528. msm_routing_put_audio_mixer),
  13529. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13531. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13532. msm_routing_put_audio_mixer),
  13533. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13535. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13536. msm_routing_put_audio_mixer),
  13537. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13539. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13540. msm_routing_put_audio_mixer),
  13541. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13544. msm_routing_put_audio_mixer),
  13545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13548. msm_routing_put_audio_mixer),
  13549. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13552. msm_routing_put_audio_mixer),
  13553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13556. msm_routing_put_audio_mixer),
  13557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13559. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13560. msm_routing_put_audio_mixer),
  13561. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13563. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13564. msm_routing_put_audio_mixer),
  13565. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13567. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13568. msm_routing_put_audio_mixer),
  13569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13571. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13572. msm_routing_put_audio_mixer),
  13573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13575. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13576. msm_routing_put_audio_mixer),
  13577. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13579. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13580. msm_routing_put_audio_mixer),
  13581. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13583. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13584. msm_routing_put_audio_mixer),
  13585. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13587. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13588. msm_routing_put_audio_mixer),
  13589. };
  13590. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13591. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13602. msm_routing_put_audio_mixer),
  13603. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_INT_FM_TX,
  13605. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_AFE_PCM_TX,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13614. msm_routing_put_audio_mixer),
  13615. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13622. msm_routing_put_audio_mixer),
  13623. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13625. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13626. msm_routing_put_audio_mixer),
  13627. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13629. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13630. msm_routing_put_audio_mixer),
  13631. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13633. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13634. msm_routing_put_audio_mixer),
  13635. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13637. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13638. msm_routing_put_audio_mixer),
  13639. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13641. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13642. msm_routing_put_audio_mixer),
  13643. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13646. msm_routing_put_audio_mixer),
  13647. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13649. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13650. msm_routing_put_audio_mixer),
  13651. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13653. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_USB_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_MI2S_TX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_AUXPCM_TX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13718. msm_routing_put_audio_mixer),
  13719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13726. msm_routing_get_audio_mixer,
  13727. msm_routing_put_audio_mixer),
  13728. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13730. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13731. msm_routing_get_audio_mixer,
  13732. msm_routing_put_audio_mixer),
  13733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13735. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13736. msm_routing_get_audio_mixer,
  13737. msm_routing_put_audio_mixer),
  13738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13741. msm_routing_get_audio_mixer,
  13742. msm_routing_put_audio_mixer),
  13743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13746. msm_routing_get_audio_mixer,
  13747. msm_routing_put_audio_mixer),
  13748. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13751. msm_routing_get_audio_mixer,
  13752. msm_routing_put_audio_mixer),
  13753. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. };
  13770. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13771. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_INT_FM_TX,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_AFE_PCM_TX,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13809. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13842. msm_routing_get_audio_mixer,
  13843. msm_routing_put_audio_mixer),
  13844. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13846. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13847. msm_routing_get_audio_mixer,
  13848. msm_routing_put_audio_mixer),
  13849. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13851. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13852. msm_routing_get_audio_mixer,
  13853. msm_routing_put_audio_mixer),
  13854. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13856. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13857. msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13862. msm_routing_get_audio_mixer,
  13863. msm_routing_put_audio_mixer),
  13864. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13866. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13867. msm_routing_get_audio_mixer,
  13868. msm_routing_put_audio_mixer),
  13869. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13871. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13872. msm_routing_put_audio_mixer),
  13873. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13875. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13876. msm_routing_put_audio_mixer),
  13877. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. };
  13886. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13887. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_INT_FM_TX,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_AFE_PCM_TX,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13942. msm_routing_put_audio_mixer),
  13943. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13945. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13954. msm_routing_put_audio_mixer),
  13955. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13957. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13958. msm_routing_put_audio_mixer),
  13959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13961. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13962. msm_routing_get_audio_mixer,
  13963. msm_routing_put_audio_mixer),
  13964. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13966. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13967. msm_routing_get_audio_mixer,
  13968. msm_routing_put_audio_mixer),
  13969. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13972. msm_routing_get_audio_mixer,
  13973. msm_routing_put_audio_mixer),
  13974. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13976. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13977. msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13982. msm_routing_get_audio_mixer,
  13983. msm_routing_put_audio_mixer),
  13984. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13985. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13986. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13987. msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. };
  14002. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14003. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14005. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14006. msm_routing_put_audio_mixer),
  14007. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14009. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14010. msm_routing_put_audio_mixer),
  14011. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14013. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14014. msm_routing_put_audio_mixer),
  14015. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14016. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14017. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14018. msm_routing_put_audio_mixer),
  14019. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_INT_FM_TX,
  14021. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14022. msm_routing_put_audio_mixer),
  14023. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14025. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14026. msm_routing_put_audio_mixer),
  14027. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14028. MSM_BACKEND_DAI_AFE_PCM_TX,
  14029. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14030. msm_routing_put_audio_mixer),
  14031. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14032. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14033. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14034. msm_routing_put_audio_mixer),
  14035. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14037. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14038. msm_routing_put_audio_mixer),
  14039. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14041. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14042. msm_routing_put_audio_mixer),
  14043. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14045. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14046. msm_routing_put_audio_mixer),
  14047. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14049. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14050. msm_routing_put_audio_mixer),
  14051. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14052. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14053. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14054. msm_routing_put_audio_mixer),
  14055. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14056. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14057. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14058. msm_routing_put_audio_mixer),
  14059. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14061. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14062. msm_routing_put_audio_mixer),
  14063. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14065. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14070. msm_routing_put_audio_mixer),
  14071. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14073. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14074. msm_routing_put_audio_mixer),
  14075. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14077. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14078. msm_routing_get_audio_mixer,
  14079. msm_routing_put_audio_mixer),
  14080. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14081. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14082. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14083. msm_routing_get_audio_mixer,
  14084. msm_routing_put_audio_mixer),
  14085. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14087. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14088. msm_routing_get_audio_mixer,
  14089. msm_routing_put_audio_mixer),
  14090. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14092. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14093. msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14098. msm_routing_get_audio_mixer,
  14099. msm_routing_put_audio_mixer),
  14100. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14101. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14102. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14103. msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. };
  14118. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14119. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14197. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14198. msm_routing_put_audio_mixer),
  14199. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14201. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14202. msm_routing_put_audio_mixer),
  14203. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14205. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14206. msm_routing_put_audio_mixer),
  14207. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14209. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14210. msm_routing_put_audio_mixer),
  14211. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14212. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14213. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14214. msm_routing_put_audio_mixer),
  14215. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14217. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14218. msm_routing_put_audio_mixer),
  14219. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14220. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14221. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14222. msm_routing_put_audio_mixer),
  14223. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14225. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14226. msm_routing_put_audio_mixer),
  14227. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14228. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14229. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14230. msm_routing_put_audio_mixer),
  14231. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14232. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14233. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14234. msm_routing_put_audio_mixer),
  14235. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14237. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14238. msm_routing_put_audio_mixer),
  14239. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14241. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14242. msm_routing_put_audio_mixer),
  14243. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14245. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14246. msm_routing_put_audio_mixer),
  14247. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14248. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14249. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14250. msm_routing_put_audio_mixer),
  14251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14253. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14254. msm_routing_put_audio_mixer),
  14255. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14256. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14257. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14258. msm_routing_put_audio_mixer),
  14259. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14261. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14262. msm_routing_put_audio_mixer),
  14263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14265. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14266. msm_routing_put_audio_mixer),
  14267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14269. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14270. msm_routing_put_audio_mixer),
  14271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14273. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14274. msm_routing_put_audio_mixer),
  14275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14277. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14278. msm_routing_put_audio_mixer),
  14279. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14281. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14282. msm_routing_put_audio_mixer),
  14283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14285. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14286. msm_routing_put_audio_mixer),
  14287. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14289. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14290. msm_routing_put_audio_mixer),
  14291. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14293. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14294. msm_routing_put_audio_mixer),
  14295. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. };
  14300. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14301. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_AUXPCM_TX,
  14303. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14304. msm_routing_put_audio_mixer),
  14305. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14307. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14308. msm_routing_put_audio_mixer),
  14309. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14311. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14312. msm_routing_put_audio_mixer),
  14313. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14315. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14316. msm_routing_put_audio_mixer),
  14317. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14320. msm_routing_put_audio_mixer),
  14321. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14322. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14323. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14324. msm_routing_put_audio_mixer),
  14325. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14327. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14331. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14332. msm_routing_put_audio_mixer),
  14333. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14334. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14335. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14336. msm_routing_put_audio_mixer),
  14337. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14339. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14344. msm_routing_put_audio_mixer),
  14345. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14352. msm_routing_put_audio_mixer),
  14353. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14355. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14356. msm_routing_put_audio_mixer),
  14357. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14359. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14374. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14375. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14376. msm_routing_put_audio_mixer),
  14377. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14380. msm_routing_put_audio_mixer),
  14381. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14383. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14384. msm_routing_put_audio_mixer),
  14385. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14387. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14388. msm_routing_put_audio_mixer),
  14389. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14399. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14400. msm_routing_put_audio_mixer),
  14401. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14403. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14404. msm_routing_put_audio_mixer),
  14405. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14407. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14408. msm_routing_put_audio_mixer),
  14409. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14411. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14412. msm_routing_put_audio_mixer),
  14413. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14415. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14420. msm_routing_put_audio_mixer),
  14421. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14423. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14424. msm_routing_put_audio_mixer),
  14425. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14427. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14428. msm_routing_put_audio_mixer),
  14429. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14431. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14436. msm_routing_put_audio_mixer),
  14437. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14439. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14440. msm_routing_put_audio_mixer),
  14441. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14443. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14448. msm_routing_put_audio_mixer),
  14449. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14451. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14452. msm_routing_put_audio_mixer),
  14453. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14455. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. };
  14466. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14467. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14469. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14470. msm_routing_put_audio_mixer),
  14471. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14473. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14474. msm_routing_put_audio_mixer),
  14475. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14477. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14478. msm_routing_put_audio_mixer),
  14479. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14481. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14482. msm_routing_put_audio_mixer),
  14483. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14485. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14486. msm_routing_put_audio_mixer),
  14487. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14489. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14490. msm_routing_put_audio_mixer),
  14491. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14497. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14498. msm_routing_put_audio_mixer),
  14499. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14501. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14502. msm_routing_put_audio_mixer),
  14503. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14505. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14506. msm_routing_put_audio_mixer),
  14507. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14509. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14510. msm_routing_put_audio_mixer),
  14511. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14513. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14514. msm_routing_put_audio_mixer),
  14515. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14517. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14518. msm_routing_put_audio_mixer),
  14519. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14521. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. };
  14548. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14549. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14551. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14552. msm_routing_put_audio_mixer),
  14553. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14555. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14556. msm_routing_put_audio_mixer),
  14557. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14559. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14560. msm_routing_put_audio_mixer),
  14561. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14563. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14564. msm_routing_put_audio_mixer),
  14565. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14567. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14572. msm_routing_put_audio_mixer),
  14573. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14575. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14576. msm_routing_put_audio_mixer),
  14577. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14579. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14580. msm_routing_put_audio_mixer),
  14581. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14583. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14584. msm_routing_put_audio_mixer),
  14585. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14586. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14587. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14591. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14592. msm_routing_put_audio_mixer),
  14593. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14595. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14596. msm_routing_put_audio_mixer),
  14597. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14599. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14600. msm_routing_put_audio_mixer),
  14601. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14603. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14604. msm_routing_put_audio_mixer),
  14605. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14607. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14608. msm_routing_put_audio_mixer),
  14609. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14610. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14611. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14612. msm_routing_put_audio_mixer),
  14613. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14615. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14616. msm_routing_put_audio_mixer),
  14617. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14619. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14620. msm_routing_put_audio_mixer),
  14621. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14623. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14624. msm_routing_put_audio_mixer),
  14625. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14627. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14628. msm_routing_put_audio_mixer),
  14629. };
  14630. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14631. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14633. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14634. msm_routing_put_audio_mixer),
  14635. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14637. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14638. msm_routing_put_audio_mixer),
  14639. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14641. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14642. msm_routing_put_audio_mixer),
  14643. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14645. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14646. msm_routing_put_audio_mixer),
  14647. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14649. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14650. msm_routing_put_audio_mixer),
  14651. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14653. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14654. msm_routing_put_audio_mixer),
  14655. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14657. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14658. msm_routing_put_audio_mixer),
  14659. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14661. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14662. msm_routing_put_audio_mixer),
  14663. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14665. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14666. msm_routing_put_audio_mixer),
  14667. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14668. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14669. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14670. msm_routing_put_audio_mixer),
  14671. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14672. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14673. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14674. msm_routing_put_audio_mixer),
  14675. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14677. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14678. msm_routing_put_audio_mixer),
  14679. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14681. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14682. msm_routing_put_audio_mixer),
  14683. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14685. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14686. msm_routing_put_audio_mixer),
  14687. };
  14688. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14689. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14691. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14692. msm_routing_put_audio_mixer),
  14693. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14695. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14696. msm_routing_put_audio_mixer),
  14697. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14699. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14700. msm_routing_put_audio_mixer),
  14701. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14703. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14704. msm_routing_put_audio_mixer),
  14705. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_INT_FM_TX,
  14707. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14708. msm_routing_put_audio_mixer),
  14709. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14711. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14712. msm_routing_put_audio_mixer),
  14713. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_AFE_PCM_TX,
  14715. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14716. msm_routing_put_audio_mixer),
  14717. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14719. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14720. msm_routing_put_audio_mixer),
  14721. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14723. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14724. msm_routing_put_audio_mixer),
  14725. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14727. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14728. msm_routing_put_audio_mixer),
  14729. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14731. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14736. msm_routing_put_audio_mixer),
  14737. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14739. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14740. msm_routing_put_audio_mixer),
  14741. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14743. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14744. msm_routing_put_audio_mixer),
  14745. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14747. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14748. msm_routing_put_audio_mixer),
  14749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14751. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14752. msm_routing_put_audio_mixer),
  14753. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14755. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14756. msm_routing_put_audio_mixer),
  14757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14759. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14760. msm_routing_put_audio_mixer),
  14761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14763. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14764. msm_routing_get_audio_mixer,
  14765. msm_routing_put_audio_mixer),
  14766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14768. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14769. msm_routing_get_audio_mixer,
  14770. msm_routing_put_audio_mixer),
  14771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14773. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14774. msm_routing_get_audio_mixer,
  14775. msm_routing_put_audio_mixer),
  14776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14778. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14779. msm_routing_get_audio_mixer,
  14780. msm_routing_put_audio_mixer),
  14781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14783. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14784. msm_routing_get_audio_mixer,
  14785. msm_routing_put_audio_mixer),
  14786. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14788. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14789. msm_routing_get_audio_mixer,
  14790. msm_routing_put_audio_mixer),
  14791. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14793. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14794. msm_routing_put_audio_mixer),
  14795. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14797. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14798. msm_routing_put_audio_mixer),
  14799. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14801. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14802. msm_routing_put_audio_mixer),
  14803. };
  14804. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14805. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14807. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14808. msm_routing_put_audio_mixer),
  14809. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14811. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14812. msm_routing_put_audio_mixer),
  14813. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14815. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14816. msm_routing_put_audio_mixer),
  14817. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14819. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14820. msm_routing_put_audio_mixer),
  14821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_INT_FM_TX,
  14823. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14824. msm_routing_put_audio_mixer),
  14825. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14827. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14828. msm_routing_put_audio_mixer),
  14829. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14830. MSM_BACKEND_DAI_AFE_PCM_TX,
  14831. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14832. msm_routing_put_audio_mixer),
  14833. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14834. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14835. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14836. msm_routing_put_audio_mixer),
  14837. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14839. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14840. msm_routing_put_audio_mixer),
  14841. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14843. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14844. msm_routing_put_audio_mixer),
  14845. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14847. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14848. msm_routing_put_audio_mixer),
  14849. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14851. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14852. msm_routing_put_audio_mixer),
  14853. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14855. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14856. msm_routing_put_audio_mixer),
  14857. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14859. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14860. msm_routing_put_audio_mixer),
  14861. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14863. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14864. msm_routing_put_audio_mixer),
  14865. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14867. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14868. msm_routing_put_audio_mixer),
  14869. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14871. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14872. msm_routing_put_audio_mixer),
  14873. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14875. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14876. msm_routing_put_audio_mixer),
  14877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14879. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14880. msm_routing_get_audio_mixer,
  14881. msm_routing_put_audio_mixer),
  14882. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14884. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14885. msm_routing_get_audio_mixer,
  14886. msm_routing_put_audio_mixer),
  14887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14889. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14890. msm_routing_get_audio_mixer,
  14891. msm_routing_put_audio_mixer),
  14892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14894. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14895. msm_routing_get_audio_mixer,
  14896. msm_routing_put_audio_mixer),
  14897. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14899. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14900. msm_routing_get_audio_mixer,
  14901. msm_routing_put_audio_mixer),
  14902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14904. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14905. msm_routing_get_audio_mixer,
  14906. msm_routing_put_audio_mixer),
  14907. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14909. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14910. msm_routing_put_audio_mixer),
  14911. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14913. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14914. msm_routing_put_audio_mixer),
  14915. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14917. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14918. msm_routing_put_audio_mixer),
  14919. };
  14920. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14921. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14923. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14924. msm_routing_put_audio_mixer),
  14925. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14927. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14928. msm_routing_put_audio_mixer),
  14929. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14931. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14932. msm_routing_put_audio_mixer),
  14933. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14935. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14936. msm_routing_put_audio_mixer),
  14937. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_INT_FM_TX,
  14939. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14940. msm_routing_put_audio_mixer),
  14941. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14942. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14943. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14944. msm_routing_put_audio_mixer),
  14945. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14946. MSM_BACKEND_DAI_AFE_PCM_TX,
  14947. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14948. msm_routing_put_audio_mixer),
  14949. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14951. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14952. msm_routing_put_audio_mixer),
  14953. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14954. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14955. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14956. msm_routing_put_audio_mixer),
  14957. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14959. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14960. msm_routing_put_audio_mixer),
  14961. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14963. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14964. msm_routing_put_audio_mixer),
  14965. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14967. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14968. msm_routing_put_audio_mixer),
  14969. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14971. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14972. msm_routing_put_audio_mixer),
  14973. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14975. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14976. msm_routing_put_audio_mixer),
  14977. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14979. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14980. msm_routing_put_audio_mixer),
  14981. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14983. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14984. msm_routing_put_audio_mixer),
  14985. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14987. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14988. msm_routing_put_audio_mixer),
  14989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14991. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14992. msm_routing_get_audio_mixer,
  14993. msm_routing_put_audio_mixer),
  14994. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14996. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14997. msm_routing_get_audio_mixer,
  14998. msm_routing_put_audio_mixer),
  14999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15001. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15002. msm_routing_get_audio_mixer,
  15003. msm_routing_put_audio_mixer),
  15004. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15006. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15007. msm_routing_get_audio_mixer,
  15008. msm_routing_put_audio_mixer),
  15009. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15011. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15012. msm_routing_get_audio_mixer,
  15013. msm_routing_put_audio_mixer),
  15014. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15016. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15017. msm_routing_get_audio_mixer,
  15018. msm_routing_put_audio_mixer),
  15019. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15021. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15022. msm_routing_put_audio_mixer),
  15023. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15025. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15026. msm_routing_put_audio_mixer),
  15027. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15029. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15030. msm_routing_put_audio_mixer),
  15031. };
  15032. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15033. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_PRI_I2S_RX,
  15035. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15036. msm_routing_put_voice_mixer),
  15037. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_PRI_I2S_RX,
  15039. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15040. msm_routing_put_voice_mixer),
  15041. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_PRI_I2S_RX,
  15043. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15044. msm_routing_put_voice_mixer),
  15045. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15046. MSM_BACKEND_DAI_PRI_I2S_RX,
  15047. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15048. msm_routing_put_voice_mixer),
  15049. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_PRI_I2S_RX,
  15051. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15052. msm_routing_put_voice_mixer),
  15053. };
  15054. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15055. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_SEC_I2S_RX,
  15057. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15058. msm_routing_put_voice_mixer),
  15059. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_SEC_I2S_RX,
  15061. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15062. msm_routing_put_voice_mixer),
  15063. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_SEC_I2S_RX,
  15065. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15066. msm_routing_put_voice_mixer),
  15067. };
  15068. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15069. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15071. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15072. msm_routing_put_voice_mixer),
  15073. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15075. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15076. msm_routing_put_voice_mixer),
  15077. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15079. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15080. msm_routing_put_voice_mixer),
  15081. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15083. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15084. msm_routing_put_voice_mixer),
  15085. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15087. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15088. msm_routing_put_voice_mixer),
  15089. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15091. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15092. msm_routing_put_voice_mixer),
  15093. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15095. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15096. msm_routing_put_voice_mixer),
  15097. };
  15098. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15099. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15101. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15102. msm_routing_put_voice_mixer),
  15103. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15105. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15106. msm_routing_put_voice_mixer),
  15107. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15109. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15110. msm_routing_put_voice_mixer),
  15111. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15113. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15114. msm_routing_put_voice_mixer),
  15115. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15117. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15118. msm_routing_put_voice_mixer),
  15119. };
  15120. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15121. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15123. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15124. msm_routing_put_voice_mixer),
  15125. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15127. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15128. msm_routing_put_voice_mixer),
  15129. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15131. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15132. msm_routing_put_voice_mixer),
  15133. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15135. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15136. msm_routing_put_voice_mixer),
  15137. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15139. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15140. msm_routing_put_voice_mixer),
  15141. };
  15142. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15143. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_USB_RX,
  15145. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15146. msm_routing_put_voice_mixer),
  15147. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15148. MSM_BACKEND_DAI_USB_RX,
  15149. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15150. msm_routing_put_voice_mixer),
  15151. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_USB_RX,
  15153. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15154. msm_routing_put_voice_mixer),
  15155. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_USB_RX,
  15157. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15158. msm_routing_put_voice_mixer),
  15159. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_USB_RX,
  15161. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15162. msm_routing_put_voice_mixer),
  15163. };
  15164. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15165. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15166. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15167. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15168. msm_routing_put_voice_mixer),
  15169. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15170. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15171. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15172. msm_routing_put_voice_mixer),
  15173. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15175. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15176. msm_routing_put_voice_mixer),
  15177. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15179. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15180. msm_routing_put_voice_mixer),
  15181. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15183. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15184. msm_routing_put_voice_mixer),
  15185. };
  15186. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15187. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15189. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15190. msm_routing_put_voice_mixer),
  15191. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15193. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15194. msm_routing_put_voice_mixer),
  15195. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15197. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15198. msm_routing_put_voice_mixer),
  15199. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15201. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15202. msm_routing_put_voice_mixer),
  15203. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15205. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15206. msm_routing_put_voice_mixer),
  15207. };
  15208. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15209. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15211. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15212. msm_routing_put_voice_mixer),
  15213. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15215. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15216. msm_routing_put_voice_mixer),
  15217. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15219. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15220. msm_routing_put_voice_mixer),
  15221. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15223. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15224. msm_routing_put_voice_mixer),
  15225. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15227. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15228. msm_routing_put_voice_mixer),
  15229. };
  15230. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15231. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_MI2S_RX,
  15233. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15234. msm_routing_put_voice_mixer),
  15235. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_MI2S_RX,
  15237. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15238. msm_routing_put_voice_mixer),
  15239. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15240. MSM_BACKEND_DAI_MI2S_RX,
  15241. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15242. msm_routing_put_voice_mixer),
  15243. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15244. MSM_BACKEND_DAI_MI2S_RX,
  15245. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15246. msm_routing_put_voice_mixer),
  15247. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_MI2S_RX,
  15249. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15250. msm_routing_put_voice_mixer),
  15251. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_MI2S_RX,
  15253. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15254. msm_routing_put_voice_mixer),
  15255. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_MI2S_RX,
  15257. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15258. msm_routing_put_voice_mixer),
  15259. };
  15260. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15261. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15263. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15264. msm_routing_put_voice_mixer),
  15265. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15267. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15268. msm_routing_put_voice_mixer),
  15269. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15271. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15272. msm_routing_put_voice_mixer),
  15273. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15275. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15276. msm_routing_put_voice_mixer),
  15277. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15279. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15280. msm_routing_put_voice_mixer),
  15281. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15283. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15284. msm_routing_put_voice_mixer),
  15285. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15287. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15288. msm_routing_put_voice_mixer),
  15289. };
  15290. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15291. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15292. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15293. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15294. msm_routing_put_voice_mixer),
  15295. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15297. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15298. msm_routing_put_voice_mixer),
  15299. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15301. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15302. msm_routing_put_voice_mixer),
  15303. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15305. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15306. msm_routing_put_voice_mixer),
  15307. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15309. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15310. msm_routing_put_voice_mixer),
  15311. };
  15312. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15313. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15315. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15316. msm_routing_put_voice_mixer),
  15317. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15319. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15320. msm_routing_put_voice_mixer),
  15321. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15323. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15324. msm_routing_put_voice_mixer),
  15325. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15327. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15328. msm_routing_put_voice_mixer),
  15329. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15331. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15332. msm_routing_put_voice_mixer),
  15333. };
  15334. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15335. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15337. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15338. msm_routing_put_voice_mixer),
  15339. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15341. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15342. msm_routing_put_voice_mixer),
  15343. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15345. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15346. msm_routing_put_voice_mixer),
  15347. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15349. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15350. msm_routing_put_voice_mixer),
  15351. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15353. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15354. msm_routing_put_voice_mixer),
  15355. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15357. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15358. msm_routing_put_voice_mixer),
  15359. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15361. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15362. msm_routing_put_voice_mixer),
  15363. };
  15364. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15365. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15366. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15367. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15368. msm_routing_put_voice_mixer),
  15369. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15370. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15371. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15372. msm_routing_put_voice_mixer),
  15373. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15375. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15376. msm_routing_put_voice_mixer),
  15377. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15379. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15380. msm_routing_put_voice_mixer),
  15381. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15383. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15384. msm_routing_put_voice_mixer),
  15385. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15386. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15387. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15388. msm_routing_put_voice_mixer),
  15389. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15391. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15392. msm_routing_put_voice_mixer),
  15393. };
  15394. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15395. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15396. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15397. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15398. msm_routing_put_voice_mixer),
  15399. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15401. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15402. msm_routing_put_voice_stub_mixer),
  15403. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15405. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15406. msm_routing_put_voice_stub_mixer),
  15407. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15409. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15410. msm_routing_put_voice_mixer),
  15411. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15413. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15414. msm_routing_put_voice_mixer),
  15415. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15416. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15417. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15418. msm_routing_put_voice_mixer),
  15419. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15421. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15422. msm_routing_put_voice_mixer),
  15423. };
  15424. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15425. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15426. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15427. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15428. msm_routing_put_voice_mixer),
  15429. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15431. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15432. msm_routing_put_voice_mixer),
  15433. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15435. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15436. msm_routing_put_voice_mixer),
  15437. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15439. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15440. msm_routing_put_voice_mixer),
  15441. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15443. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15444. msm_routing_put_voice_mixer),
  15445. };
  15446. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15447. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15448. MSM_BACKEND_DAI_AFE_PCM_RX,
  15449. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15450. msm_routing_put_voice_mixer),
  15451. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15452. MSM_BACKEND_DAI_AFE_PCM_RX,
  15453. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15454. msm_routing_put_voice_mixer),
  15455. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_AFE_PCM_RX,
  15457. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15458. msm_routing_put_voice_mixer),
  15459. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_AFE_PCM_RX,
  15461. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15462. msm_routing_put_voice_mixer),
  15463. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_AFE_PCM_RX,
  15465. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15466. msm_routing_put_voice_mixer),
  15467. };
  15468. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15469. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_AUXPCM_RX,
  15471. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15472. msm_routing_put_voice_mixer),
  15473. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15474. MSM_BACKEND_DAI_AUXPCM_RX,
  15475. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15476. msm_routing_put_voice_mixer),
  15477. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15478. MSM_BACKEND_DAI_AUXPCM_RX,
  15479. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15480. msm_routing_put_voice_mixer),
  15481. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15482. MSM_BACKEND_DAI_AUXPCM_RX,
  15483. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15484. msm_routing_put_voice_mixer),
  15485. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_AUXPCM_RX,
  15487. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15488. msm_routing_put_voice_mixer),
  15489. };
  15490. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15491. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15492. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15493. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15494. msm_routing_put_voice_mixer),
  15495. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15497. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15498. msm_routing_put_voice_mixer),
  15499. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15501. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15502. msm_routing_put_voice_mixer),
  15503. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15505. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15506. msm_routing_put_voice_mixer),
  15507. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15509. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15510. msm_routing_put_voice_mixer),
  15511. };
  15512. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15513. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15514. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15515. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15516. msm_routing_put_voice_mixer),
  15517. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15518. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15519. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15520. msm_routing_put_voice_mixer),
  15521. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15522. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15523. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15524. msm_routing_put_voice_mixer),
  15525. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15527. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15528. msm_routing_put_voice_mixer),
  15529. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15531. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15532. msm_routing_put_voice_mixer),
  15533. };
  15534. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15535. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15537. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15538. msm_routing_put_voice_mixer),
  15539. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15540. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15541. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15542. msm_routing_put_voice_mixer),
  15543. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15544. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15545. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15546. msm_routing_put_voice_mixer),
  15547. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15549. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15550. msm_routing_put_voice_mixer),
  15551. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15553. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15554. msm_routing_put_voice_mixer),
  15555. };
  15556. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15557. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15559. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15560. msm_routing_put_voice_mixer),
  15561. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15563. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15564. msm_routing_put_voice_mixer),
  15565. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15566. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15567. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15568. msm_routing_put_voice_mixer),
  15569. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15570. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15571. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15572. msm_routing_put_voice_mixer),
  15573. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15575. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15576. msm_routing_put_voice_mixer),
  15577. };
  15578. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15579. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15580. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15581. msm_routing_put_voice_mixer),
  15582. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15583. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15584. msm_routing_put_voice_mixer),
  15585. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15586. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15587. msm_routing_put_voice_mixer),
  15588. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15590. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15591. msm_routing_put_voice_mixer),
  15592. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15594. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15595. msm_routing_put_voice_mixer),
  15596. };
  15597. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15598. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15599. MSM_BACKEND_DAI_HDMI_RX,
  15600. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15601. msm_routing_put_voice_mixer),
  15602. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_HDMI_RX,
  15604. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15605. msm_routing_put_voice_mixer),
  15606. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_HDMI_RX,
  15608. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15609. msm_routing_put_voice_mixer),
  15610. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_HDMI_RX,
  15612. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_HDMI_RX,
  15616. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. };
  15619. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15620. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15622. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15623. msm_routing_put_voice_mixer),
  15624. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15626. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15627. msm_routing_put_voice_mixer),
  15628. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15630. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15631. msm_routing_put_voice_mixer),
  15632. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15634. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15635. msm_routing_put_voice_mixer),
  15636. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15638. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15639. msm_routing_put_voice_mixer),
  15640. };
  15641. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15642. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15644. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15645. msm_routing_put_voice_mixer),
  15646. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15648. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15649. msm_routing_put_voice_mixer),
  15650. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15652. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15653. msm_routing_put_voice_mixer),
  15654. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15656. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15657. msm_routing_put_voice_mixer),
  15658. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15660. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15661. msm_routing_put_voice_mixer),
  15662. };
  15663. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15664. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15666. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15667. msm_routing_put_voice_mixer),
  15668. };
  15669. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  15670. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15672. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15673. msm_routing_put_voice_mixer),
  15674. };
  15675. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15676. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15678. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15679. msm_routing_put_voice_mixer),
  15680. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15682. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15683. msm_routing_put_voice_mixer),
  15684. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15686. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15687. msm_routing_put_voice_mixer),
  15688. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15690. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15691. msm_routing_put_voice_mixer),
  15692. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15694. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15695. msm_routing_put_voice_mixer),
  15696. };
  15697. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15698. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15700. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15701. msm_routing_put_voice_mixer),
  15702. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15704. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15705. msm_routing_put_voice_mixer),
  15706. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15708. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15709. msm_routing_put_voice_mixer),
  15710. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15712. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15713. msm_routing_put_voice_mixer),
  15714. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15716. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15717. msm_routing_put_voice_mixer),
  15718. };
  15719. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15720. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15722. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15723. msm_routing_put_voice_mixer),
  15724. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15726. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15727. msm_routing_put_voice_mixer),
  15728. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15730. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15731. msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15734. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15735. msm_routing_put_voice_mixer),
  15736. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15738. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15739. msm_routing_put_voice_mixer),
  15740. };
  15741. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15742. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15744. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15745. msm_routing_put_voice_mixer),
  15746. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15748. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15749. msm_routing_put_voice_mixer),
  15750. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15752. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15753. msm_routing_put_voice_mixer),
  15754. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15756. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15757. msm_routing_put_voice_mixer),
  15758. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15760. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15761. msm_routing_put_voice_mixer),
  15762. };
  15763. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15764. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15766. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15767. msm_routing_put_voice_mixer),
  15768. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15770. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15771. msm_routing_put_voice_mixer),
  15772. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15774. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15775. msm_routing_put_voice_mixer),
  15776. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15778. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15779. msm_routing_put_voice_mixer),
  15780. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15782. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15783. msm_routing_put_voice_mixer),
  15784. };
  15785. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15786. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15788. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15789. msm_routing_put_voice_mixer),
  15790. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15792. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15793. msm_routing_put_voice_mixer),
  15794. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15796. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15797. msm_routing_put_voice_mixer),
  15798. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15800. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15801. msm_routing_put_voice_mixer),
  15802. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15804. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15805. msm_routing_put_voice_mixer),
  15806. };
  15807. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15808. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15810. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15811. msm_routing_put_voice_mixer),
  15812. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15814. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15815. msm_routing_put_voice_mixer),
  15816. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15817. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15818. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15819. msm_routing_put_voice_mixer),
  15820. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15822. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15823. msm_routing_put_voice_mixer),
  15824. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15826. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15827. msm_routing_put_voice_mixer),
  15828. };
  15829. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15830. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15833. msm_routing_put_voice_mixer),
  15834. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15836. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15840. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15841. msm_routing_put_voice_mixer),
  15842. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15844. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15848. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. };
  15851. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15852. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15854. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15855. msm_routing_put_voice_mixer),
  15856. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15858. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15859. msm_routing_put_voice_mixer),
  15860. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15862. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15863. msm_routing_put_voice_mixer),
  15864. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15866. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15867. msm_routing_put_voice_mixer),
  15868. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15870. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15871. msm_routing_put_voice_mixer),
  15872. };
  15873. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15874. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15880. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15881. msm_routing_put_voice_mixer),
  15882. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15884. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15885. msm_routing_put_voice_mixer),
  15886. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15888. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15889. msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15892. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15893. msm_routing_put_voice_mixer),
  15894. };
  15895. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15896. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15898. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15899. msm_routing_put_voice_mixer),
  15900. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15901. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15902. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15903. msm_routing_put_voice_stub_mixer),
  15904. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15905. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15906. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15907. msm_routing_put_voice_stub_mixer),
  15908. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15910. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15911. msm_routing_put_voice_mixer),
  15912. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15913. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15914. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15915. msm_routing_put_voice_mixer),
  15916. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15917. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15918. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15919. msm_routing_put_voice_mixer),
  15920. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15921. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15922. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15923. msm_routing_put_voice_mixer),
  15924. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15925. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15926. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15927. msm_routing_put_voice_mixer),
  15928. };
  15929. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15930. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15932. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15933. msm_routing_put_voice_mixer),
  15934. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15935. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15936. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15937. msm_routing_put_voice_stub_mixer),
  15938. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15940. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15941. msm_routing_put_voice_stub_mixer),
  15942. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15944. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15945. msm_routing_put_voice_mixer),
  15946. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15947. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15948. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15949. msm_routing_put_voice_mixer),
  15950. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15952. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15953. msm_routing_put_voice_mixer),
  15954. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15956. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15957. msm_routing_put_voice_mixer),
  15958. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15960. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15961. msm_routing_put_voice_mixer),
  15962. };
  15963. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15964. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15965. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15966. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15967. msm_routing_put_voice_mixer),
  15968. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15970. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15971. msm_routing_put_voice_stub_mixer),
  15972. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15974. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15975. msm_routing_put_voice_stub_mixer),
  15976. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15978. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15979. msm_routing_put_voice_mixer),
  15980. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15982. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15983. msm_routing_put_voice_mixer),
  15984. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15986. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15987. msm_routing_put_voice_mixer),
  15988. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15990. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15991. msm_routing_put_voice_mixer),
  15992. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15994. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15995. msm_routing_put_voice_mixer),
  15996. };
  15997. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15998. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16000. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16001. msm_routing_put_voice_mixer),
  16002. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16004. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16005. msm_routing_put_voice_stub_mixer),
  16006. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16008. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16009. msm_routing_put_voice_stub_mixer),
  16010. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16012. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16013. msm_routing_put_voice_mixer),
  16014. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16016. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16017. msm_routing_put_voice_mixer),
  16018. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16020. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16021. msm_routing_put_voice_mixer),
  16022. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16024. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16025. msm_routing_put_voice_mixer),
  16026. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16028. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16029. msm_routing_put_voice_mixer),
  16030. };
  16031. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16032. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_EXTPROC_RX,
  16034. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16035. msm_routing_put_voice_mixer),
  16036. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_EXTPROC_RX,
  16038. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. };
  16041. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16042. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16044. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16045. msm_routing_put_voice_mixer),
  16046. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16048. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16049. msm_routing_put_voice_mixer),
  16050. };
  16051. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16052. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16054. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16055. msm_routing_put_voice_mixer),
  16056. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16058. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16059. msm_routing_put_voice_mixer),
  16060. };
  16061. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16062. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_PRI_I2S_TX,
  16064. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16065. msm_routing_put_voice_mixer),
  16066. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_MI2S_TX,
  16068. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16069. msm_routing_put_voice_mixer),
  16070. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16072. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16073. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16075. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16076. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16078. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16079. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16080. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16081. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16082. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16084. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16085. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16087. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16088. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16090. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16091. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16093. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16094. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16096. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16097. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16099. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16100. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16102. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16103. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16105. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16106. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16108. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16109. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16111. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16112. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16114. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16115. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_USB_TX,
  16117. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16118. msm_routing_put_voice_mixer),
  16119. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16121. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16122. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16124. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16127. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16128. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16130. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16131. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16133. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16136. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16139. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16140. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16142. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16145. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16148. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16149. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16150. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16151. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16152. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16153. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16154. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16155. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16157. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16158. };
  16159. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16160. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16161. MSM_BACKEND_DAI_PRI_I2S_TX,
  16162. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16163. msm_routing_put_voice_mixer),
  16164. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_MI2S_TX,
  16166. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16167. msm_routing_put_voice_mixer),
  16168. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16169. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16170. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16171. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16173. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16174. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16176. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16177. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16179. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16180. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16182. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16183. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16185. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16186. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16188. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16189. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16190. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16191. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16192. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16194. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16195. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16196. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16197. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16198. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16200. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16201. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16202. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16203. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16204. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16206. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16207. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16208. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16209. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16210. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16212. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16213. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16214. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16215. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16216. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16218. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16219. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16220. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16221. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16222. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16224. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16225. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16226. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16227. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16228. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16229. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16230. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16231. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16233. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16236. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16237. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16238. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16239. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16242. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16243. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16244. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16245. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16246. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16248. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16249. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16250. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16251. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16252. };
  16253. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16254. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16255. MSM_BACKEND_DAI_PRI_I2S_TX,
  16256. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16257. msm_routing_put_voice_mixer),
  16258. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16259. MSM_BACKEND_DAI_MI2S_TX,
  16260. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16261. msm_routing_put_voice_mixer),
  16262. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16263. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16264. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16265. msm_routing_put_voice_mixer),
  16266. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16267. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16268. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16269. msm_routing_put_voice_mixer),
  16270. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16271. MSM_BACKEND_DAI_AFE_PCM_TX,
  16272. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16273. msm_routing_put_voice_mixer),
  16274. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_AUXPCM_TX,
  16276. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16277. msm_routing_put_voice_mixer),
  16278. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16279. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16280. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16281. msm_routing_put_voice_mixer),
  16282. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16284. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16285. msm_routing_put_voice_mixer),
  16286. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16288. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16289. msm_routing_put_voice_mixer),
  16290. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16291. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16292. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16293. msm_routing_put_voice_mixer),
  16294. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16296. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16297. msm_routing_put_voice_mixer),
  16298. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16299. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16300. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16301. msm_routing_put_voice_mixer),
  16302. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16303. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16304. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16305. msm_routing_put_voice_mixer),
  16306. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16308. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16309. msm_routing_put_voice_mixer),
  16310. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16312. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16313. msm_routing_put_voice_mixer),
  16314. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16316. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16317. msm_routing_put_voice_mixer),
  16318. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16319. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16320. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16321. msm_routing_put_voice_mixer),
  16322. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_USB_TX,
  16324. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16325. msm_routing_put_voice_mixer),
  16326. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16328. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16329. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16330. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16331. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16332. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16334. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16335. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16337. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16338. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16339. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16340. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16343. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16346. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16347. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16348. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16349. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16352. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16353. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16354. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16355. msm_routing_put_voice_mixer),
  16356. };
  16357. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16358. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_EXTPROC_TX,
  16360. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16361. msm_routing_put_voice_stub_mixer),
  16362. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16364. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16365. msm_routing_put_voice_stub_mixer),
  16366. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16368. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16369. msm_routing_put_voice_stub_mixer),
  16370. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16372. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16373. msm_routing_put_voice_stub_mixer),
  16374. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16375. MSM_BACKEND_DAI_MI2S_TX,
  16376. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16377. msm_routing_put_voice_stub_mixer),
  16378. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16379. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16380. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16381. msm_routing_put_voice_stub_mixer),
  16382. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16383. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16384. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16385. msm_routing_put_voice_stub_mixer),
  16386. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16387. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16388. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16389. msm_routing_put_voice_stub_mixer),
  16390. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16392. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16393. msm_routing_put_voice_stub_mixer),
  16394. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16395. MSM_BACKEND_DAI_AUXPCM_TX,
  16396. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16397. msm_routing_put_voice_stub_mixer),
  16398. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16399. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16400. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16401. msm_routing_put_voice_stub_mixer),
  16402. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16403. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16404. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16405. msm_routing_put_voice_stub_mixer),
  16406. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16407. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  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("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16412. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16413. msm_routing_put_voice_stub_mixer),
  16414. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16415. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16416. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16417. msm_routing_put_voice_stub_mixer),
  16418. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16420. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16421. msm_routing_put_voice_stub_mixer),
  16422. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16423. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16424. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16425. msm_routing_put_voice_stub_mixer),
  16426. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16427. MSM_BACKEND_DAI_AFE_PCM_TX,
  16428. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16429. msm_routing_put_voice_stub_mixer),
  16430. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16431. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16432. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16433. msm_routing_put_voice_stub_mixer),
  16434. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16435. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16436. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16437. msm_routing_put_voice_stub_mixer),
  16438. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16440. 1, 0, msm_routing_get_voice_stub_mixer,
  16441. msm_routing_put_voice_stub_mixer),
  16442. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16443. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16444. 1, 0, msm_routing_get_voice_stub_mixer,
  16445. msm_routing_put_voice_stub_mixer),
  16446. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16448. 1, 0, msm_routing_get_voice_stub_mixer,
  16449. msm_routing_put_voice_stub_mixer),
  16450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16452. 1, 0, msm_routing_get_voice_stub_mixer,
  16453. msm_routing_put_voice_stub_mixer),
  16454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16456. 1, 0, msm_routing_get_voice_stub_mixer,
  16457. msm_routing_put_voice_stub_mixer),
  16458. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16460. 1, 0, msm_routing_get_voice_stub_mixer,
  16461. msm_routing_put_voice_stub_mixer),
  16462. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16464. 1, 0, msm_routing_get_voice_stub_mixer,
  16465. msm_routing_put_voice_stub_mixer),
  16466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16468. 1, 0, msm_routing_get_voice_stub_mixer,
  16469. msm_routing_put_voice_stub_mixer),
  16470. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16472. 1, 0, msm_routing_get_voice_stub_mixer,
  16473. msm_routing_put_voice_stub_mixer),
  16474. };
  16475. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16476. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16477. MSM_BACKEND_DAI_EXTPROC_TX,
  16478. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16479. msm_routing_put_voice_stub_mixer),
  16480. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16482. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16483. msm_routing_put_voice_stub_mixer),
  16484. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16485. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16486. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16487. msm_routing_put_voice_stub_mixer),
  16488. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_AUXPCM_TX,
  16490. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16491. msm_routing_put_voice_stub_mixer),
  16492. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16493. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16494. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16495. msm_routing_put_voice_stub_mixer),
  16496. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16497. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16498. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16499. msm_routing_put_voice_stub_mixer),
  16500. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16501. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16502. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16503. msm_routing_put_voice_stub_mixer),
  16504. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16505. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16506. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16507. msm_routing_put_voice_stub_mixer),
  16508. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16509. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16510. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16511. msm_routing_put_voice_stub_mixer),
  16512. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16513. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  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("SLIM_3_TX", SND_SOC_NOPM,
  16517. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16518. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16519. msm_routing_put_voice_stub_mixer),
  16520. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_AFE_PCM_TX,
  16522. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16523. msm_routing_put_voice_stub_mixer),
  16524. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16525. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16526. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16527. msm_routing_put_voice_stub_mixer),
  16528. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16529. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16530. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16531. msm_routing_put_voice_stub_mixer),
  16532. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16534. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16535. msm_routing_put_voice_stub_mixer),
  16536. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16537. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16538. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16539. msm_routing_put_voice_stub_mixer),
  16540. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16542. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16543. msm_routing_put_voice_stub_mixer),
  16544. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16545. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16546. 1, 0, msm_routing_get_voice_stub_mixer,
  16547. msm_routing_put_voice_stub_mixer),
  16548. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16549. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16550. 1, 0, msm_routing_get_voice_stub_mixer,
  16551. msm_routing_put_voice_stub_mixer),
  16552. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16553. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16554. 1, 0, msm_routing_get_voice_stub_mixer,
  16555. msm_routing_put_voice_stub_mixer),
  16556. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16557. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16558. 1, 0, msm_routing_get_voice_stub_mixer,
  16559. msm_routing_put_voice_stub_mixer),
  16560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16562. 1, 0, msm_routing_get_voice_stub_mixer,
  16563. msm_routing_put_voice_stub_mixer),
  16564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16566. 1, 0, msm_routing_get_voice_stub_mixer,
  16567. msm_routing_put_voice_stub_mixer),
  16568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16570. 1, 0, msm_routing_get_voice_stub_mixer,
  16571. msm_routing_put_voice_stub_mixer),
  16572. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16574. 1, 0, msm_routing_get_voice_stub_mixer,
  16575. msm_routing_put_voice_stub_mixer),
  16576. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16577. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16578. 1, 0, msm_routing_get_voice_stub_mixer,
  16579. msm_routing_put_voice_stub_mixer),
  16580. };
  16581. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16582. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16583. MSM_BACKEND_DAI_EXTPROC_TX,
  16584. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16585. msm_routing_put_voice_stub_mixer),
  16586. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16588. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16589. msm_routing_put_voice_stub_mixer),
  16590. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16592. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16593. msm_routing_put_voice_stub_mixer),
  16594. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16595. MSM_BACKEND_DAI_AUXPCM_TX,
  16596. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16597. msm_routing_put_voice_stub_mixer),
  16598. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16599. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16600. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16601. msm_routing_put_voice_stub_mixer),
  16602. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16604. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16605. msm_routing_put_voice_stub_mixer),
  16606. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16607. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16608. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16609. msm_routing_put_voice_stub_mixer),
  16610. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16611. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16612. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16613. msm_routing_put_voice_stub_mixer),
  16614. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16615. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16616. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16617. msm_routing_put_voice_stub_mixer),
  16618. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16619. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16620. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16621. msm_routing_put_voice_stub_mixer),
  16622. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16623. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16624. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16625. msm_routing_put_voice_stub_mixer),
  16626. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16627. MSM_BACKEND_DAI_AFE_PCM_TX,
  16628. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16629. msm_routing_put_voice_stub_mixer),
  16630. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16631. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16632. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16633. msm_routing_put_voice_stub_mixer),
  16634. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16635. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16636. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16637. msm_routing_put_voice_stub_mixer),
  16638. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16639. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16640. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16641. msm_routing_put_voice_stub_mixer),
  16642. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16643. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16644. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16645. msm_routing_put_voice_stub_mixer),
  16646. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16647. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16648. 1, 0, msm_routing_get_voice_stub_mixer,
  16649. msm_routing_put_voice_stub_mixer),
  16650. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16651. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16652. 1, 0, msm_routing_get_voice_stub_mixer,
  16653. msm_routing_put_voice_stub_mixer),
  16654. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16655. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16656. 1, 0, msm_routing_get_voice_stub_mixer,
  16657. msm_routing_put_voice_stub_mixer),
  16658. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16659. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16660. 1, 0, msm_routing_get_voice_stub_mixer,
  16661. msm_routing_put_voice_stub_mixer),
  16662. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16663. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16664. 1, 0, msm_routing_get_voice_stub_mixer,
  16665. msm_routing_put_voice_stub_mixer),
  16666. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16667. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16668. 1, 0, msm_routing_get_voice_stub_mixer,
  16669. msm_routing_put_voice_stub_mixer),
  16670. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16671. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16672. 1, 0, msm_routing_get_voice_stub_mixer,
  16673. msm_routing_put_voice_stub_mixer),
  16674. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16676. 1, 0, msm_routing_get_voice_stub_mixer,
  16677. msm_routing_put_voice_stub_mixer),
  16678. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16679. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16680. 1, 0, msm_routing_get_voice_stub_mixer,
  16681. msm_routing_put_voice_stub_mixer),
  16682. };
  16683. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16684. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_PRI_I2S_TX,
  16686. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16687. msm_routing_put_voice_mixer),
  16688. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16689. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16690. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16691. msm_routing_put_voice_mixer),
  16692. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16693. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16694. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16695. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16696. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16697. MSM_BACKEND_DAI_AFE_PCM_TX,
  16698. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16699. msm_routing_put_voice_mixer),
  16700. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16701. MSM_BACKEND_DAI_AUXPCM_TX,
  16702. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16703. msm_routing_put_voice_mixer),
  16704. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16706. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16707. msm_routing_put_voice_mixer),
  16708. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16709. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16710. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16711. msm_routing_put_voice_mixer),
  16712. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16714. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16715. msm_routing_put_voice_mixer),
  16716. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16717. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16718. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16719. msm_routing_put_voice_mixer),
  16720. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16721. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16722. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16723. msm_routing_put_voice_mixer),
  16724. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_MI2S_TX,
  16726. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16727. msm_routing_put_voice_mixer),
  16728. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16729. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16730. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16731. msm_routing_put_voice_mixer),
  16732. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16733. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16734. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16735. msm_routing_put_voice_mixer),
  16736. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16737. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16738. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16739. msm_routing_put_voice_mixer),
  16740. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16741. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16742. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16743. msm_routing_put_voice_mixer),
  16744. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16745. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16746. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16747. msm_routing_put_voice_mixer),
  16748. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16749. MSM_BACKEND_DAI_USB_TX,
  16750. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16751. msm_routing_put_voice_mixer),
  16752. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16753. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16754. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16755. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16757. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16758. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16759. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16760. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16763. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16764. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16765. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16766. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16767. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16769. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16770. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16771. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16772. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16775. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16778. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16779. };
  16780. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16781. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16783. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16784. msm_routing_put_port_mixer),
  16785. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16786. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16787. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16788. msm_routing_put_port_mixer),
  16789. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16791. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16792. msm_routing_put_port_mixer),
  16793. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16795. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16796. msm_routing_put_port_mixer),
  16797. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16799. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16800. msm_routing_put_port_mixer),
  16801. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16803. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16804. msm_routing_put_port_mixer),
  16805. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16806. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16807. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16808. msm_routing_put_port_mixer),
  16809. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16811. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16812. msm_routing_put_port_mixer),
  16813. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16815. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16816. msm_routing_put_port_mixer),
  16817. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16819. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16820. msm_routing_put_port_mixer),
  16821. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16823. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16824. msm_routing_put_port_mixer),
  16825. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16827. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. };
  16830. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16831. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16833. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16834. msm_routing_put_port_mixer),
  16835. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16836. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16837. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16838. msm_routing_put_port_mixer),
  16839. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16841. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16842. msm_routing_put_port_mixer),
  16843. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16845. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16846. msm_routing_put_port_mixer),
  16847. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16849. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16853. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16854. msm_routing_put_port_mixer),
  16855. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16857. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16858. msm_routing_put_port_mixer),
  16859. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16861. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16862. msm_routing_put_port_mixer),
  16863. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16865. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16866. msm_routing_put_port_mixer),
  16867. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16869. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16873. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16874. msm_routing_put_port_mixer),
  16875. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16877. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. };
  16880. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16881. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16883. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16884. msm_routing_put_port_mixer),
  16885. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16886. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16888. msm_routing_put_port_mixer),
  16889. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16891. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16892. msm_routing_put_port_mixer),
  16893. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16895. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16896. msm_routing_put_port_mixer),
  16897. };
  16898. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16901. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16905. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16906. msm_routing_put_port_mixer),
  16907. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16909. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16913. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. };
  16916. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  16917. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16919. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16920. msm_routing_put_port_mixer),
  16921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16924. msm_routing_put_port_mixer),
  16925. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16927. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16928. msm_routing_put_port_mixer),
  16929. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16931. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. };
  16934. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16935. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16936. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16937. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16938. msm_routing_put_port_mixer),
  16939. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16940. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16941. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16942. msm_routing_put_port_mixer),
  16943. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16944. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16945. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16946. msm_routing_put_port_mixer),
  16947. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16948. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16949. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16950. msm_routing_put_port_mixer),
  16951. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16952. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16953. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16954. msm_routing_put_port_mixer),
  16955. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16956. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16957. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16958. msm_routing_put_port_mixer),
  16959. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16960. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16961. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16962. msm_routing_put_port_mixer),
  16963. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16965. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16966. msm_routing_put_port_mixer),
  16967. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16968. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16969. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16970. msm_routing_put_port_mixer),
  16971. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16972. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16973. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16974. msm_routing_put_port_mixer),
  16975. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16976. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16977. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16978. msm_routing_put_port_mixer),
  16979. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16981. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16985. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16986. msm_routing_put_port_mixer),
  16987. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16988. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16989. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16990. msm_routing_put_port_mixer),
  16991. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16993. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16996. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16997. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16998. msm_routing_put_port_mixer),
  16999. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17001. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17002. msm_routing_put_port_mixer),
  17003. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17005. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17006. msm_routing_put_port_mixer),
  17007. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17008. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17009. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17010. msm_routing_put_port_mixer),
  17011. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17013. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17014. msm_routing_put_port_mixer),
  17015. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17017. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17018. msm_routing_put_port_mixer),
  17019. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17020. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17021. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17022. msm_routing_put_port_mixer),
  17023. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17025. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17026. msm_routing_put_port_mixer),
  17027. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17028. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17029. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17030. msm_routing_put_port_mixer),
  17031. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17032. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17033. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17034. msm_routing_put_port_mixer),
  17035. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17037. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17038. msm_routing_put_port_mixer),
  17039. };
  17040. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17041. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17042. MSM_BACKEND_DAI_AUXPCM_RX,
  17043. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17044. msm_routing_put_port_mixer),
  17045. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17046. MSM_BACKEND_DAI_AUXPCM_RX,
  17047. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17048. msm_routing_put_port_mixer),
  17049. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17050. MSM_BACKEND_DAI_AUXPCM_RX,
  17051. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17052. msm_routing_put_port_mixer),
  17053. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17054. MSM_BACKEND_DAI_AUXPCM_RX,
  17055. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17056. msm_routing_put_port_mixer),
  17057. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17058. MSM_BACKEND_DAI_AUXPCM_RX,
  17059. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17060. msm_routing_put_port_mixer),
  17061. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17062. MSM_BACKEND_DAI_AUXPCM_RX,
  17063. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17064. msm_routing_put_port_mixer),
  17065. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17066. MSM_BACKEND_DAI_AUXPCM_RX,
  17067. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17068. msm_routing_put_port_mixer),
  17069. };
  17070. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17071. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17073. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17074. msm_routing_put_port_mixer),
  17075. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17077. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17078. msm_routing_put_port_mixer),
  17079. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17081. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17082. msm_routing_put_port_mixer),
  17083. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17085. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17086. msm_routing_put_port_mixer),
  17087. };
  17088. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17089. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17090. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17091. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17092. msm_routing_put_port_mixer),
  17093. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17094. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17095. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17096. msm_routing_put_port_mixer),
  17097. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17098. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17099. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17100. msm_routing_put_port_mixer),
  17101. };
  17102. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17103. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17105. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17106. msm_routing_put_port_mixer),
  17107. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17109. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17110. msm_routing_put_port_mixer),
  17111. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17112. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17113. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17114. msm_routing_put_port_mixer),
  17115. };
  17116. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17117. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17118. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17119. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17120. msm_routing_put_port_mixer),
  17121. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17122. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17123. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17124. msm_routing_put_port_mixer),
  17125. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17127. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17128. msm_routing_put_port_mixer),
  17129. };
  17130. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17131. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17132. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17133. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17134. msm_routing_put_port_mixer),
  17135. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17137. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17138. msm_routing_put_port_mixer),
  17139. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17140. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17141. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17142. msm_routing_put_port_mixer),
  17143. };
  17144. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17145. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17147. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17148. msm_routing_put_port_mixer),
  17149. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17150. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17151. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17152. msm_routing_put_port_mixer),
  17153. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17154. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17155. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17156. msm_routing_put_port_mixer),
  17157. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17159. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17160. msm_routing_put_port_mixer),
  17161. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17162. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17163. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17164. msm_routing_put_port_mixer),
  17165. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17167. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17168. msm_routing_put_port_mixer),
  17169. };
  17170. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17171. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17172. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17173. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17177. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17178. msm_routing_put_port_mixer),
  17179. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17181. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17182. msm_routing_put_port_mixer),
  17183. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17185. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17189. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. };
  17192. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17193. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17195. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17196. msm_routing_put_port_mixer),
  17197. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17199. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17200. msm_routing_put_port_mixer),
  17201. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17203. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17204. msm_routing_put_port_mixer),
  17205. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17207. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17208. msm_routing_put_port_mixer),
  17209. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17211. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17212. msm_routing_put_port_mixer),
  17213. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17215. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17216. msm_routing_put_port_mixer),
  17217. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17219. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17220. msm_routing_put_port_mixer),
  17221. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17222. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17223. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17224. msm_routing_put_port_mixer),
  17225. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17226. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17227. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17228. msm_routing_put_port_mixer),
  17229. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17230. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17231. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17232. msm_routing_put_port_mixer),
  17233. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17234. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17235. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17236. msm_routing_put_port_mixer),
  17237. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17238. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17239. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17240. msm_routing_put_port_mixer),
  17241. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17242. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17243. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. };
  17246. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17247. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17249. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17250. msm_routing_put_port_mixer),
  17251. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17253. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17254. msm_routing_put_port_mixer),
  17255. };
  17256. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17257. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17258. MSM_BACKEND_DAI_AFE_PCM_RX,
  17259. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17260. msm_routing_put_port_mixer),
  17261. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17262. MSM_BACKEND_DAI_AFE_PCM_RX,
  17263. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17264. msm_routing_put_port_mixer),
  17265. };
  17266. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17267. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_HDMI_RX,
  17269. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17270. msm_routing_put_port_mixer),
  17271. };
  17272. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17273. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17274. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17275. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17276. msm_routing_put_port_mixer),
  17277. };
  17278. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17279. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17281. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17282. msm_routing_put_port_mixer),
  17283. };
  17284. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17285. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17286. MSM_BACKEND_DAI_SEC_I2S_RX,
  17287. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. };
  17290. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17291. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17292. MSM_BACKEND_DAI_MI2S_RX,
  17293. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17294. msm_routing_put_port_mixer),
  17295. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17296. MSM_BACKEND_DAI_MI2S_RX,
  17297. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17298. msm_routing_put_port_mixer),
  17299. };
  17300. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17301. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17302. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17303. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17304. msm_routing_put_port_mixer),
  17305. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17306. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17307. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17308. msm_routing_put_port_mixer),
  17309. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17311. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17312. msm_routing_put_port_mixer),
  17313. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17315. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17316. msm_routing_put_port_mixer),
  17317. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17318. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17319. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17320. msm_routing_put_port_mixer),
  17321. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17322. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17323. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17324. msm_routing_put_port_mixer),
  17325. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17326. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17327. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17331. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17335. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17336. msm_routing_put_port_mixer),
  17337. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17339. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17340. msm_routing_put_port_mixer),
  17341. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17343. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17344. msm_routing_put_port_mixer),
  17345. };
  17346. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17347. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17348. MSM_BACKEND_DAI_USB_RX,
  17349. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17350. msm_routing_put_port_mixer),
  17351. };
  17352. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17353. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_QUATERNARY_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("TERT_MI2S_TX", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17359. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17360. msm_routing_put_port_mixer),
  17361. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17363. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17364. msm_routing_put_port_mixer),
  17365. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17366. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17367. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17368. msm_routing_put_port_mixer),
  17369. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17371. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17372. msm_routing_put_port_mixer),
  17373. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17375. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17376. msm_routing_put_port_mixer),
  17377. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17378. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17379. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17380. msm_routing_put_port_mixer),
  17381. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17382. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17383. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17384. msm_routing_put_port_mixer),
  17385. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17387. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17391. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. };
  17394. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17395. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17396. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17397. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17398. msm_routing_put_port_mixer),
  17399. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17400. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17401. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17402. msm_routing_put_port_mixer),
  17403. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17404. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17405. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17406. msm_routing_put_port_mixer),
  17407. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17408. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17409. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17410. msm_routing_put_port_mixer),
  17411. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17413. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17417. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17418. msm_routing_put_port_mixer),
  17419. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17421. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17422. msm_routing_put_port_mixer),
  17423. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17425. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17426. msm_routing_put_port_mixer),
  17427. };
  17428. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17429. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17430. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17431. MSM_BACKEND_DAI_PRI_MI2S_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_SENARY_MI2S_RX,
  17435. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17436. msm_routing_put_port_mixer),
  17437. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17438. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17439. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17440. msm_routing_put_port_mixer),
  17441. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17442. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17443. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17444. msm_routing_put_port_mixer),
  17445. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17446. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17447. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17448. msm_routing_put_port_mixer),
  17449. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17450. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17451. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17452. msm_routing_put_port_mixer),
  17453. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17454. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17455. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17456. msm_routing_put_port_mixer),
  17457. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17458. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17459. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17460. msm_routing_put_port_mixer),
  17461. };
  17462. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17463. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17465. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17466. msm_routing_get_port_mixer,
  17467. msm_routing_put_port_mixer),
  17468. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17470. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17471. msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17475. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17476. msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17480. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17481. msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17485. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17486. msm_routing_get_port_mixer,
  17487. msm_routing_put_port_mixer),
  17488. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17490. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17491. msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17495. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17496. msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17500. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17501. msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17505. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17506. msm_routing_get_port_mixer,
  17507. msm_routing_put_port_mixer),
  17508. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17509. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17510. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17511. msm_routing_get_port_mixer,
  17512. msm_routing_put_port_mixer),
  17513. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17515. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17516. msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17520. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17521. msm_routing_get_port_mixer,
  17522. msm_routing_put_port_mixer),
  17523. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17524. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17525. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17526. msm_routing_get_port_mixer,
  17527. msm_routing_put_port_mixer),
  17528. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17529. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17530. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17531. msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17535. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17536. msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17540. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17541. msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17545. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17546. msm_routing_get_port_mixer,
  17547. msm_routing_put_port_mixer),
  17548. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17550. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17551. msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17555. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17556. msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17559. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17560. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17561. msm_routing_get_port_mixer,
  17562. msm_routing_put_port_mixer),
  17563. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17565. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17566. msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17570. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17571. msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17574. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17575. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17576. msm_routing_get_port_mixer,
  17577. msm_routing_put_port_mixer),
  17578. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17579. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17580. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17581. msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. };
  17584. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17585. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17586. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17587. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17588. msm_routing_get_port_mixer,
  17589. msm_routing_put_port_mixer),
  17590. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17592. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17593. msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17597. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17598. msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17601. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17602. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17603. msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17606. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17607. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17608. msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17611. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17612. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17613. msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17617. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17618. msm_routing_get_port_mixer,
  17619. msm_routing_put_port_mixer),
  17620. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17621. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17622. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17623. msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17627. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17628. msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17632. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17633. msm_routing_get_port_mixer,
  17634. msm_routing_put_port_mixer),
  17635. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17636. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17637. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17638. msm_routing_get_port_mixer,
  17639. msm_routing_put_port_mixer),
  17640. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17641. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17642. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17643. msm_routing_get_port_mixer,
  17644. msm_routing_put_port_mixer),
  17645. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17647. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17648. msm_routing_get_port_mixer,
  17649. msm_routing_put_port_mixer),
  17650. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17651. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17652. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17653. msm_routing_get_port_mixer,
  17654. msm_routing_put_port_mixer),
  17655. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17656. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17657. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17658. msm_routing_get_port_mixer,
  17659. msm_routing_put_port_mixer),
  17660. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17661. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17662. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17663. msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17667. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17668. msm_routing_get_port_mixer,
  17669. msm_routing_put_port_mixer),
  17670. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17671. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17672. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17673. msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17677. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17678. msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17681. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17682. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17683. msm_routing_get_port_mixer,
  17684. msm_routing_put_port_mixer),
  17685. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17686. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17687. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17688. msm_routing_get_port_mixer,
  17689. msm_routing_put_port_mixer),
  17690. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17691. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17692. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17693. msm_routing_get_port_mixer,
  17694. msm_routing_put_port_mixer),
  17695. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17696. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17697. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17698. msm_routing_get_port_mixer,
  17699. msm_routing_put_port_mixer),
  17700. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17701. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17702. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17703. msm_routing_get_port_mixer,
  17704. msm_routing_put_port_mixer),
  17705. };
  17706. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17707. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17709. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17710. msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17714. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17715. msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17719. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17720. msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17723. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17724. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17725. msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17728. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17729. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17730. msm_routing_get_port_mixer,
  17731. msm_routing_put_port_mixer),
  17732. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17733. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17734. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17735. msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17738. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17739. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17740. msm_routing_get_port_mixer,
  17741. msm_routing_put_port_mixer),
  17742. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17743. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17744. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17745. msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17748. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17749. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17750. msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17754. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17755. msm_routing_get_port_mixer,
  17756. msm_routing_put_port_mixer),
  17757. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17758. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17759. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17760. msm_routing_get_port_mixer,
  17761. msm_routing_put_port_mixer),
  17762. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17763. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17764. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17765. msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17769. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17770. msm_routing_get_port_mixer,
  17771. msm_routing_put_port_mixer),
  17772. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17774. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17775. msm_routing_get_port_mixer,
  17776. msm_routing_put_port_mixer),
  17777. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17779. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17780. msm_routing_get_port_mixer,
  17781. msm_routing_put_port_mixer),
  17782. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17783. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17784. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17785. msm_routing_get_port_mixer,
  17786. msm_routing_put_port_mixer),
  17787. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17788. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17789. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17790. msm_routing_get_port_mixer,
  17791. msm_routing_put_port_mixer),
  17792. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17793. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17794. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17795. msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17799. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17800. msm_routing_get_port_mixer,
  17801. msm_routing_put_port_mixer),
  17802. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17803. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17804. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17805. msm_routing_get_port_mixer,
  17806. msm_routing_put_port_mixer),
  17807. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17808. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17809. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17810. msm_routing_get_port_mixer,
  17811. msm_routing_put_port_mixer),
  17812. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17813. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17814. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17815. msm_routing_get_port_mixer,
  17816. msm_routing_put_port_mixer),
  17817. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17818. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17819. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17820. msm_routing_get_port_mixer,
  17821. msm_routing_put_port_mixer),
  17822. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17823. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17824. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17825. msm_routing_get_port_mixer,
  17826. msm_routing_put_port_mixer),
  17827. };
  17828. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17829. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17831. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17832. msm_routing_get_port_mixer,
  17833. msm_routing_put_port_mixer),
  17834. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17835. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17836. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17837. msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17841. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17842. msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17846. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17847. msm_routing_get_port_mixer,
  17848. msm_routing_put_port_mixer),
  17849. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17850. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17851. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17852. msm_routing_get_port_mixer,
  17853. msm_routing_put_port_mixer),
  17854. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17856. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17857. msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17860. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17861. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17862. msm_routing_get_port_mixer,
  17863. msm_routing_put_port_mixer),
  17864. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17866. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17867. msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17871. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17872. msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17875. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17876. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17877. msm_routing_get_port_mixer,
  17878. msm_routing_put_port_mixer),
  17879. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17881. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17882. msm_routing_get_port_mixer,
  17883. msm_routing_put_port_mixer),
  17884. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17886. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17887. msm_routing_get_port_mixer,
  17888. msm_routing_put_port_mixer),
  17889. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17890. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17891. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17892. msm_routing_get_port_mixer,
  17893. msm_routing_put_port_mixer),
  17894. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17895. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17896. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17897. msm_routing_get_port_mixer,
  17898. msm_routing_put_port_mixer),
  17899. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17900. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17901. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17902. msm_routing_get_port_mixer,
  17903. msm_routing_put_port_mixer),
  17904. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17906. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17907. msm_routing_get_port_mixer,
  17908. msm_routing_put_port_mixer),
  17909. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17910. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17911. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17912. msm_routing_get_port_mixer,
  17913. msm_routing_put_port_mixer),
  17914. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17915. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17916. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17917. msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17920. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17921. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17922. msm_routing_get_port_mixer,
  17923. msm_routing_put_port_mixer),
  17924. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17925. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17926. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17927. msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17931. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17932. msm_routing_get_port_mixer,
  17933. msm_routing_put_port_mixer),
  17934. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17935. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17936. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17937. msm_routing_get_port_mixer,
  17938. msm_routing_put_port_mixer),
  17939. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17940. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17941. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17942. msm_routing_get_port_mixer,
  17943. msm_routing_put_port_mixer),
  17944. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17945. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17946. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17947. msm_routing_get_port_mixer,
  17948. msm_routing_put_port_mixer),
  17949. };
  17950. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17951. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17953. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17954. msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17958. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17959. msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17963. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17964. msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17968. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17969. msm_routing_get_port_mixer,
  17970. msm_routing_put_port_mixer),
  17971. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17972. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17973. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17974. msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17978. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17979. msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17982. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17983. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17984. msm_routing_get_port_mixer,
  17985. msm_routing_put_port_mixer),
  17986. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17988. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17989. msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17993. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17994. msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17998. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18003. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18004. msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18008. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18013. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18018. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18023. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18028. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18033. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18038. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18043. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18048. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18053. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18058. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18063. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18064. msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18067. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18068. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18069. msm_routing_get_port_mixer,
  18070. msm_routing_put_port_mixer),
  18071. };
  18072. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18073. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18074. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18075. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18076. msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18079. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18080. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18081. msm_routing_get_port_mixer,
  18082. msm_routing_put_port_mixer),
  18083. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18084. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18085. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18086. msm_routing_get_port_mixer,
  18087. msm_routing_put_port_mixer),
  18088. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18089. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18090. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18091. msm_routing_get_port_mixer,
  18092. msm_routing_put_port_mixer),
  18093. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18094. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18095. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18096. msm_routing_get_port_mixer,
  18097. msm_routing_put_port_mixer),
  18098. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18099. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18100. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18101. msm_routing_get_port_mixer,
  18102. msm_routing_put_port_mixer),
  18103. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18104. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18105. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18106. msm_routing_get_port_mixer,
  18107. msm_routing_put_port_mixer),
  18108. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18110. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18111. msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18115. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18116. msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18120. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18124. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18125. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18126. msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18130. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18135. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18140. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18145. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18150. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18155. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18160. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18165. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18170. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18175. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18180. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18184. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18185. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18186. msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18190. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18191. msm_routing_get_port_mixer,
  18192. msm_routing_put_port_mixer),
  18193. };
  18194. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18195. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18196. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18197. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18198. msm_routing_get_port_mixer,
  18199. msm_routing_put_port_mixer),
  18200. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18201. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18202. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18203. msm_routing_get_port_mixer,
  18204. msm_routing_put_port_mixer),
  18205. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18206. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18207. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18208. msm_routing_get_port_mixer,
  18209. msm_routing_put_port_mixer),
  18210. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18211. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18212. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18213. msm_routing_get_port_mixer,
  18214. msm_routing_put_port_mixer),
  18215. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18217. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18218. msm_routing_get_port_mixer,
  18219. msm_routing_put_port_mixer),
  18220. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18221. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18222. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18223. msm_routing_get_port_mixer,
  18224. msm_routing_put_port_mixer),
  18225. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18226. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18227. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18228. msm_routing_get_port_mixer,
  18229. msm_routing_put_port_mixer),
  18230. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18232. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18233. msm_routing_get_port_mixer,
  18234. msm_routing_put_port_mixer),
  18235. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18237. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18238. msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18242. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18247. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18248. msm_routing_get_port_mixer,
  18249. msm_routing_put_port_mixer),
  18250. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18252. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18257. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18262. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18267. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18272. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18277. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18282. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18287. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18292. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18297. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18302. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18307. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18308. msm_routing_get_port_mixer,
  18309. msm_routing_put_port_mixer),
  18310. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18311. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18312. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18313. msm_routing_get_port_mixer,
  18314. msm_routing_put_port_mixer),
  18315. };
  18316. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18317. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18318. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18319. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18320. msm_routing_get_port_mixer,
  18321. msm_routing_put_port_mixer),
  18322. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18323. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18324. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18325. msm_routing_get_port_mixer,
  18326. msm_routing_put_port_mixer),
  18327. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18328. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18329. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18330. msm_routing_get_port_mixer,
  18331. msm_routing_put_port_mixer),
  18332. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18333. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18334. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18335. msm_routing_get_port_mixer,
  18336. msm_routing_put_port_mixer),
  18337. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18338. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18339. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18340. msm_routing_get_port_mixer,
  18341. msm_routing_put_port_mixer),
  18342. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18343. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18344. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18345. msm_routing_get_port_mixer,
  18346. msm_routing_put_port_mixer),
  18347. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18348. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18349. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18350. msm_routing_get_port_mixer,
  18351. msm_routing_put_port_mixer),
  18352. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18354. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18359. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18364. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18369. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18374. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18379. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18384. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18389. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18394. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18399. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18404. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18409. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18414. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18419. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18424. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18429. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18430. msm_routing_get_port_mixer,
  18431. msm_routing_put_port_mixer),
  18432. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18433. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18434. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18435. msm_routing_get_port_mixer,
  18436. msm_routing_put_port_mixer),
  18437. };
  18438. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18439. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18440. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18441. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18442. msm_routing_get_port_mixer,
  18443. msm_routing_put_port_mixer),
  18444. };
  18445. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18446. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18448. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18453. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18454. msm_routing_get_port_mixer,
  18455. msm_routing_put_port_mixer),
  18456. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18458. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18463. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18468. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18473. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18474. msm_routing_get_port_mixer,
  18475. msm_routing_put_port_mixer),
  18476. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18478. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18479. msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18483. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18484. msm_routing_get_port_mixer,
  18485. msm_routing_put_port_mixer),
  18486. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18488. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18489. msm_routing_get_port_mixer,
  18490. msm_routing_put_port_mixer),
  18491. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18492. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18493. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18494. msm_routing_get_port_mixer,
  18495. msm_routing_put_port_mixer),
  18496. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18497. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18498. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18499. msm_routing_get_port_mixer,
  18500. msm_routing_put_port_mixer),
  18501. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18502. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18503. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18504. msm_routing_get_port_mixer,
  18505. msm_routing_put_port_mixer),
  18506. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18507. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18508. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18509. msm_routing_get_port_mixer,
  18510. msm_routing_put_port_mixer),
  18511. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18512. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18513. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18514. msm_routing_get_port_mixer,
  18515. msm_routing_put_port_mixer),
  18516. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18517. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18518. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18519. msm_routing_get_port_mixer,
  18520. msm_routing_put_port_mixer),
  18521. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18522. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18523. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18524. msm_routing_get_port_mixer,
  18525. msm_routing_put_port_mixer),
  18526. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18527. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18528. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18529. msm_routing_get_port_mixer,
  18530. msm_routing_put_port_mixer),
  18531. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18532. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18533. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18534. msm_routing_get_port_mixer,
  18535. msm_routing_put_port_mixer),
  18536. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18537. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18538. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18539. msm_routing_get_port_mixer,
  18540. msm_routing_put_port_mixer),
  18541. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18542. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18543. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18544. msm_routing_get_port_mixer,
  18545. msm_routing_put_port_mixer),
  18546. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18547. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18548. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18549. msm_routing_get_port_mixer,
  18550. msm_routing_put_port_mixer),
  18551. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18552. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18553. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18554. msm_routing_get_port_mixer,
  18555. msm_routing_put_port_mixer),
  18556. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18557. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18558. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18559. msm_routing_get_port_mixer,
  18560. msm_routing_put_port_mixer),
  18561. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18562. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18563. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18564. msm_routing_get_port_mixer,
  18565. msm_routing_put_port_mixer),
  18566. };
  18567. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18568. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18570. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18575. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18576. msm_routing_get_port_mixer,
  18577. msm_routing_put_port_mixer),
  18578. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18580. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18585. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18589. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18590. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18591. msm_routing_get_port_mixer,
  18592. msm_routing_put_port_mixer),
  18593. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18594. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18595. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18596. msm_routing_get_port_mixer,
  18597. msm_routing_put_port_mixer),
  18598. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18599. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18600. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18601. msm_routing_get_port_mixer,
  18602. msm_routing_put_port_mixer),
  18603. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18604. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18605. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18606. msm_routing_get_port_mixer,
  18607. msm_routing_put_port_mixer),
  18608. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18609. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18610. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18611. msm_routing_get_port_mixer,
  18612. msm_routing_put_port_mixer),
  18613. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18614. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18615. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18616. msm_routing_get_port_mixer,
  18617. msm_routing_put_port_mixer),
  18618. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18619. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18620. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18621. msm_routing_get_port_mixer,
  18622. msm_routing_put_port_mixer),
  18623. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18624. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18625. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18626. msm_routing_get_port_mixer,
  18627. msm_routing_put_port_mixer),
  18628. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18629. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18630. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18631. msm_routing_get_port_mixer,
  18632. msm_routing_put_port_mixer),
  18633. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18634. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18635. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18636. msm_routing_get_port_mixer,
  18637. msm_routing_put_port_mixer),
  18638. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18639. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18640. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18641. msm_routing_get_port_mixer,
  18642. msm_routing_put_port_mixer),
  18643. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18644. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18645. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18646. msm_routing_get_port_mixer,
  18647. msm_routing_put_port_mixer),
  18648. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18649. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18650. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18651. msm_routing_get_port_mixer,
  18652. msm_routing_put_port_mixer),
  18653. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18654. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18655. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18656. msm_routing_get_port_mixer,
  18657. msm_routing_put_port_mixer),
  18658. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18659. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18660. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18661. msm_routing_get_port_mixer,
  18662. msm_routing_put_port_mixer),
  18663. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18664. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18665. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18666. msm_routing_get_port_mixer,
  18667. msm_routing_put_port_mixer),
  18668. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18669. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18670. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18671. msm_routing_get_port_mixer,
  18672. msm_routing_put_port_mixer),
  18673. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18674. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18675. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18676. msm_routing_get_port_mixer,
  18677. msm_routing_put_port_mixer),
  18678. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18679. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18680. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18681. msm_routing_get_port_mixer,
  18682. msm_routing_put_port_mixer),
  18683. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18684. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18685. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18686. msm_routing_get_port_mixer,
  18687. msm_routing_put_port_mixer),
  18688. };
  18689. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18690. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18692. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18697. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18702. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18707. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18712. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18713. msm_routing_get_port_mixer,
  18714. msm_routing_put_port_mixer),
  18715. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18716. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18717. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18718. msm_routing_get_port_mixer,
  18719. msm_routing_put_port_mixer),
  18720. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18721. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18722. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18723. msm_routing_get_port_mixer,
  18724. msm_routing_put_port_mixer),
  18725. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18726. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18727. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18728. msm_routing_get_port_mixer,
  18729. msm_routing_put_port_mixer),
  18730. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18731. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18732. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18733. msm_routing_get_port_mixer,
  18734. msm_routing_put_port_mixer),
  18735. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18736. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18737. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18738. msm_routing_get_port_mixer,
  18739. msm_routing_put_port_mixer),
  18740. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18741. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18742. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18743. msm_routing_get_port_mixer,
  18744. msm_routing_put_port_mixer),
  18745. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18746. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18747. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18748. msm_routing_get_port_mixer,
  18749. msm_routing_put_port_mixer),
  18750. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18751. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18752. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18753. msm_routing_get_port_mixer,
  18754. msm_routing_put_port_mixer),
  18755. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18756. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18757. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18758. msm_routing_get_port_mixer,
  18759. msm_routing_put_port_mixer),
  18760. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18761. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18762. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18763. msm_routing_get_port_mixer,
  18764. msm_routing_put_port_mixer),
  18765. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18766. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18767. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18768. msm_routing_get_port_mixer,
  18769. msm_routing_put_port_mixer),
  18770. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18771. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18772. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18773. msm_routing_get_port_mixer,
  18774. msm_routing_put_port_mixer),
  18775. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18776. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18777. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18778. msm_routing_get_port_mixer,
  18779. msm_routing_put_port_mixer),
  18780. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18781. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18782. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18783. msm_routing_get_port_mixer,
  18784. msm_routing_put_port_mixer),
  18785. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18786. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18787. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18788. msm_routing_get_port_mixer,
  18789. msm_routing_put_port_mixer),
  18790. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18791. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18792. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18793. msm_routing_get_port_mixer,
  18794. msm_routing_put_port_mixer),
  18795. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18796. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18797. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18798. msm_routing_get_port_mixer,
  18799. msm_routing_put_port_mixer),
  18800. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18801. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18802. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18803. msm_routing_get_port_mixer,
  18804. msm_routing_put_port_mixer),
  18805. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18806. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18807. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18808. msm_routing_get_port_mixer,
  18809. msm_routing_put_port_mixer),
  18810. };
  18811. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18812. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18814. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18819. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18824. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18829. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18834. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18835. msm_routing_get_port_mixer,
  18836. msm_routing_put_port_mixer),
  18837. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18838. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18839. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18840. msm_routing_get_port_mixer,
  18841. msm_routing_put_port_mixer),
  18842. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18843. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18844. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18845. msm_routing_get_port_mixer,
  18846. msm_routing_put_port_mixer),
  18847. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18848. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18849. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18850. msm_routing_get_port_mixer,
  18851. msm_routing_put_port_mixer),
  18852. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18854. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18855. msm_routing_get_port_mixer,
  18856. msm_routing_put_port_mixer),
  18857. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18858. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18859. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18860. msm_routing_get_port_mixer,
  18861. msm_routing_put_port_mixer),
  18862. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18863. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18864. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18865. msm_routing_get_port_mixer,
  18866. msm_routing_put_port_mixer),
  18867. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18868. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18869. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18870. msm_routing_get_port_mixer,
  18871. msm_routing_put_port_mixer),
  18872. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18873. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18874. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18875. msm_routing_get_port_mixer,
  18876. msm_routing_put_port_mixer),
  18877. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18878. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18879. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18880. msm_routing_get_port_mixer,
  18881. msm_routing_put_port_mixer),
  18882. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18883. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18884. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18885. msm_routing_get_port_mixer,
  18886. msm_routing_put_port_mixer),
  18887. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18888. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18889. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18890. msm_routing_get_port_mixer,
  18891. msm_routing_put_port_mixer),
  18892. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18893. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18894. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18895. msm_routing_get_port_mixer,
  18896. msm_routing_put_port_mixer),
  18897. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18898. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18899. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18900. msm_routing_get_port_mixer,
  18901. msm_routing_put_port_mixer),
  18902. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18903. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18904. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18905. msm_routing_get_port_mixer,
  18906. msm_routing_put_port_mixer),
  18907. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18908. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18909. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18910. msm_routing_get_port_mixer,
  18911. msm_routing_put_port_mixer),
  18912. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18913. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18914. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18915. msm_routing_get_port_mixer,
  18916. msm_routing_put_port_mixer),
  18917. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18918. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18919. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18920. msm_routing_get_port_mixer,
  18921. msm_routing_put_port_mixer),
  18922. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18923. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18924. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18925. msm_routing_get_port_mixer,
  18926. msm_routing_put_port_mixer),
  18927. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18928. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18929. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18930. msm_routing_get_port_mixer,
  18931. msm_routing_put_port_mixer),
  18932. };
  18933. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18934. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18936. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18941. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18946. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18951. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18952. msm_routing_get_port_mixer,
  18953. msm_routing_put_port_mixer),
  18954. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18955. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18956. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18957. msm_routing_get_port_mixer,
  18958. msm_routing_put_port_mixer),
  18959. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18960. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18961. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18962. msm_routing_get_port_mixer,
  18963. msm_routing_put_port_mixer),
  18964. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18965. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18966. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18967. msm_routing_get_port_mixer,
  18968. msm_routing_put_port_mixer),
  18969. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18970. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18971. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18972. msm_routing_get_port_mixer,
  18973. msm_routing_put_port_mixer),
  18974. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18976. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18977. msm_routing_get_port_mixer,
  18978. msm_routing_put_port_mixer),
  18979. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18980. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18981. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18982. msm_routing_get_port_mixer,
  18983. msm_routing_put_port_mixer),
  18984. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18986. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18990. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18991. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18992. msm_routing_get_port_mixer,
  18993. msm_routing_put_port_mixer),
  18994. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18996. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18997. msm_routing_get_port_mixer,
  18998. msm_routing_put_port_mixer),
  18999. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19000. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19001. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19002. msm_routing_get_port_mixer,
  19003. msm_routing_put_port_mixer),
  19004. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19005. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19006. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19007. msm_routing_get_port_mixer,
  19008. msm_routing_put_port_mixer),
  19009. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19010. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19011. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19012. msm_routing_get_port_mixer,
  19013. msm_routing_put_port_mixer),
  19014. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19016. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19021. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19026. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19031. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19036. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19041. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19046. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19047. msm_routing_get_port_mixer,
  19048. msm_routing_put_port_mixer),
  19049. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19050. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19051. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19052. msm_routing_get_port_mixer,
  19053. msm_routing_put_port_mixer),
  19054. };
  19055. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19056. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19057. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19058. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19059. msm_routing_get_port_mixer,
  19060. msm_routing_put_port_mixer),
  19061. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19062. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19063. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19064. msm_routing_get_port_mixer,
  19065. msm_routing_put_port_mixer),
  19066. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19067. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19068. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19069. msm_routing_get_port_mixer,
  19070. msm_routing_put_port_mixer),
  19071. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19072. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19073. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19074. msm_routing_get_port_mixer,
  19075. msm_routing_put_port_mixer),
  19076. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19077. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19078. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19079. msm_routing_get_port_mixer,
  19080. msm_routing_put_port_mixer),
  19081. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19082. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19083. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19084. msm_routing_get_port_mixer,
  19085. msm_routing_put_port_mixer),
  19086. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19087. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19088. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19089. msm_routing_get_port_mixer,
  19090. msm_routing_put_port_mixer),
  19091. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19092. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19093. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19094. msm_routing_get_port_mixer,
  19095. msm_routing_put_port_mixer),
  19096. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19098. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19099. msm_routing_get_port_mixer,
  19100. msm_routing_put_port_mixer),
  19101. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19102. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19103. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19104. msm_routing_get_port_mixer,
  19105. msm_routing_put_port_mixer),
  19106. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19108. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19112. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19113. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19114. msm_routing_get_port_mixer,
  19115. msm_routing_put_port_mixer),
  19116. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19118. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19119. msm_routing_get_port_mixer,
  19120. msm_routing_put_port_mixer),
  19121. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19122. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19123. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19124. msm_routing_get_port_mixer,
  19125. msm_routing_put_port_mixer),
  19126. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19127. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19128. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19129. msm_routing_get_port_mixer,
  19130. msm_routing_put_port_mixer),
  19131. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19132. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19133. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19134. msm_routing_get_port_mixer,
  19135. msm_routing_put_port_mixer),
  19136. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19138. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19143. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19148. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19153. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19158. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19163. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19168. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19169. msm_routing_get_port_mixer,
  19170. msm_routing_put_port_mixer),
  19171. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19172. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19173. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19174. msm_routing_get_port_mixer,
  19175. msm_routing_put_port_mixer),
  19176. };
  19177. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19178. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19179. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19180. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19181. msm_routing_get_port_mixer,
  19182. msm_routing_put_port_mixer),
  19183. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19184. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19185. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19186. msm_routing_get_port_mixer,
  19187. msm_routing_put_port_mixer),
  19188. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19189. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19190. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19191. msm_routing_get_port_mixer,
  19192. msm_routing_put_port_mixer),
  19193. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19194. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19195. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19196. msm_routing_get_port_mixer,
  19197. msm_routing_put_port_mixer),
  19198. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19199. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19200. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19201. msm_routing_get_port_mixer,
  19202. msm_routing_put_port_mixer),
  19203. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19204. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19205. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19206. msm_routing_get_port_mixer,
  19207. msm_routing_put_port_mixer),
  19208. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19209. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19210. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19211. msm_routing_get_port_mixer,
  19212. msm_routing_put_port_mixer),
  19213. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19214. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19215. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19216. msm_routing_get_port_mixer,
  19217. msm_routing_put_port_mixer),
  19218. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19220. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19221. msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19225. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19226. msm_routing_get_port_mixer,
  19227. msm_routing_put_port_mixer),
  19228. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19230. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19234. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19235. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19236. msm_routing_get_port_mixer,
  19237. msm_routing_put_port_mixer),
  19238. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19240. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19241. msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19245. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19246. msm_routing_get_port_mixer,
  19247. msm_routing_put_port_mixer),
  19248. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19249. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19250. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19251. msm_routing_get_port_mixer,
  19252. msm_routing_put_port_mixer),
  19253. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19255. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19260. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19265. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19270. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19275. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19280. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19285. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19289. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19290. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19291. msm_routing_get_port_mixer,
  19292. msm_routing_put_port_mixer),
  19293. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19295. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19296. msm_routing_get_port_mixer,
  19297. msm_routing_put_port_mixer),
  19298. };
  19299. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19300. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19301. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19302. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19303. msm_routing_get_port_mixer,
  19304. msm_routing_put_port_mixer),
  19305. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19306. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19307. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19308. msm_routing_get_port_mixer,
  19309. msm_routing_put_port_mixer),
  19310. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19311. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19312. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19313. msm_routing_get_port_mixer,
  19314. msm_routing_put_port_mixer),
  19315. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19316. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19317. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19318. msm_routing_get_port_mixer,
  19319. msm_routing_put_port_mixer),
  19320. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19321. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19322. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19323. msm_routing_get_port_mixer,
  19324. msm_routing_put_port_mixer),
  19325. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19326. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19327. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19328. msm_routing_get_port_mixer,
  19329. msm_routing_put_port_mixer),
  19330. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19331. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19332. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19333. msm_routing_get_port_mixer,
  19334. msm_routing_put_port_mixer),
  19335. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19336. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19337. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19338. msm_routing_get_port_mixer,
  19339. msm_routing_put_port_mixer),
  19340. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19341. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19342. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19343. msm_routing_get_port_mixer,
  19344. msm_routing_put_port_mixer),
  19345. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19346. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19347. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19348. msm_routing_get_port_mixer,
  19349. msm_routing_put_port_mixer),
  19350. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19351. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19352. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19353. msm_routing_get_port_mixer,
  19354. msm_routing_put_port_mixer),
  19355. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19357. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19358. msm_routing_get_port_mixer,
  19359. msm_routing_put_port_mixer),
  19360. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19362. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19367. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19372. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19377. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19382. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19387. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19392. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19397. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19402. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19407. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19411. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19412. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19413. msm_routing_get_port_mixer,
  19414. msm_routing_put_port_mixer),
  19415. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19417. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19418. msm_routing_get_port_mixer,
  19419. msm_routing_put_port_mixer),
  19420. };
  19421. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19422. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19423. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19424. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19425. msm_routing_get_port_mixer,
  19426. msm_routing_put_port_mixer),
  19427. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19428. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19429. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19430. msm_routing_get_port_mixer,
  19431. msm_routing_put_port_mixer),
  19432. };
  19433. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19434. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19435. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19436. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19437. msm_routing_get_port_mixer,
  19438. msm_routing_put_port_mixer),
  19439. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19441. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19442. msm_routing_get_port_mixer,
  19443. msm_routing_put_port_mixer),
  19444. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19446. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19451. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19455. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19456. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19457. msm_routing_get_port_mixer,
  19458. msm_routing_put_port_mixer),
  19459. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19460. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19461. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19462. msm_routing_get_port_mixer,
  19463. msm_routing_put_port_mixer),
  19464. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19465. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19466. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19467. msm_routing_get_port_mixer,
  19468. msm_routing_put_port_mixer),
  19469. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19470. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19471. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19472. msm_routing_get_port_mixer,
  19473. msm_routing_put_port_mixer),
  19474. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19475. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19476. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19477. msm_routing_get_port_mixer,
  19478. msm_routing_put_port_mixer),
  19479. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19480. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19481. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19482. msm_routing_get_port_mixer,
  19483. msm_routing_put_port_mixer),
  19484. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19485. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19486. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19487. msm_routing_get_port_mixer,
  19488. msm_routing_put_port_mixer),
  19489. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19490. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19491. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19492. msm_routing_get_port_mixer,
  19493. msm_routing_put_port_mixer),
  19494. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19495. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19496. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19497. msm_routing_get_port_mixer,
  19498. msm_routing_put_port_mixer),
  19499. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19500. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19501. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19502. msm_routing_get_port_mixer,
  19503. msm_routing_put_port_mixer),
  19504. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19505. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19506. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19507. msm_routing_get_port_mixer,
  19508. msm_routing_put_port_mixer),
  19509. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19510. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19511. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19512. msm_routing_get_port_mixer,
  19513. msm_routing_put_port_mixer),
  19514. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19515. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19516. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19517. msm_routing_get_port_mixer,
  19518. msm_routing_put_port_mixer),
  19519. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19520. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19521. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19522. msm_routing_get_port_mixer,
  19523. msm_routing_put_port_mixer),
  19524. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19525. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19526. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19527. msm_routing_get_port_mixer,
  19528. msm_routing_put_port_mixer),
  19529. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19530. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19531. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19532. msm_routing_get_port_mixer,
  19533. msm_routing_put_port_mixer),
  19534. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19535. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19536. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19537. msm_routing_get_port_mixer,
  19538. msm_routing_put_port_mixer),
  19539. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19540. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19541. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19542. msm_routing_get_port_mixer,
  19543. msm_routing_put_port_mixer),
  19544. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19545. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19546. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19547. msm_routing_get_port_mixer,
  19548. msm_routing_put_port_mixer),
  19549. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19550. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19551. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19552. msm_routing_get_port_mixer,
  19553. msm_routing_put_port_mixer),
  19554. };
  19555. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19556. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19557. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19558. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19559. msm_routing_get_port_mixer,
  19560. msm_routing_put_port_mixer),
  19561. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19562. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19563. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19564. msm_routing_get_port_mixer,
  19565. msm_routing_put_port_mixer),
  19566. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19567. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19568. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19569. msm_routing_get_port_mixer,
  19570. msm_routing_put_port_mixer),
  19571. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19573. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19574. msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19577. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19578. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19579. msm_routing_get_port_mixer,
  19580. msm_routing_put_port_mixer),
  19581. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19582. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19583. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19584. msm_routing_get_port_mixer,
  19585. msm_routing_put_port_mixer),
  19586. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19587. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19588. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19589. msm_routing_get_port_mixer,
  19590. msm_routing_put_port_mixer),
  19591. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19592. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19593. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19594. msm_routing_get_port_mixer,
  19595. msm_routing_put_port_mixer),
  19596. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19597. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19598. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19599. msm_routing_get_port_mixer,
  19600. msm_routing_put_port_mixer),
  19601. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19602. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19603. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19604. msm_routing_get_port_mixer,
  19605. msm_routing_put_port_mixer),
  19606. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19607. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19608. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19609. msm_routing_get_port_mixer,
  19610. msm_routing_put_port_mixer),
  19611. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19612. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19613. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19614. msm_routing_get_port_mixer,
  19615. msm_routing_put_port_mixer),
  19616. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19617. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19618. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19619. msm_routing_get_port_mixer,
  19620. msm_routing_put_port_mixer),
  19621. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19622. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19623. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19624. msm_routing_get_port_mixer,
  19625. msm_routing_put_port_mixer),
  19626. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19627. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19628. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19629. msm_routing_get_port_mixer,
  19630. msm_routing_put_port_mixer),
  19631. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19632. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19633. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19634. msm_routing_get_port_mixer,
  19635. msm_routing_put_port_mixer),
  19636. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19637. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19638. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19639. msm_routing_get_port_mixer,
  19640. msm_routing_put_port_mixer),
  19641. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19642. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19643. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19644. msm_routing_get_port_mixer,
  19645. msm_routing_put_port_mixer),
  19646. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19647. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19648. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19649. msm_routing_get_port_mixer,
  19650. msm_routing_put_port_mixer),
  19651. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19652. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19653. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19654. msm_routing_get_port_mixer,
  19655. msm_routing_put_port_mixer),
  19656. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19657. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19658. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19659. msm_routing_get_port_mixer,
  19660. msm_routing_put_port_mixer),
  19661. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19662. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19663. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19664. msm_routing_get_port_mixer,
  19665. msm_routing_put_port_mixer),
  19666. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19667. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19668. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19669. msm_routing_get_port_mixer,
  19670. msm_routing_put_port_mixer),
  19671. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19672. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19673. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19674. msm_routing_get_port_mixer,
  19675. msm_routing_put_port_mixer),
  19676. };
  19677. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19678. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19679. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19680. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19681. msm_routing_get_port_mixer,
  19682. msm_routing_put_port_mixer),
  19683. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19684. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19685. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19686. msm_routing_get_port_mixer,
  19687. msm_routing_put_port_mixer),
  19688. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19690. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19691. msm_routing_get_port_mixer,
  19692. msm_routing_put_port_mixer),
  19693. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19694. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19695. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19696. msm_routing_get_port_mixer,
  19697. msm_routing_put_port_mixer),
  19698. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19699. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19700. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19701. msm_routing_get_port_mixer,
  19702. msm_routing_put_port_mixer),
  19703. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19704. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19705. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19706. msm_routing_get_port_mixer,
  19707. msm_routing_put_port_mixer),
  19708. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19709. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19710. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19711. msm_routing_get_port_mixer,
  19712. msm_routing_put_port_mixer),
  19713. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19714. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19715. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19716. msm_routing_get_port_mixer,
  19717. msm_routing_put_port_mixer),
  19718. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19719. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19720. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19721. msm_routing_get_port_mixer,
  19722. msm_routing_put_port_mixer),
  19723. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19724. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19725. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19726. msm_routing_get_port_mixer,
  19727. msm_routing_put_port_mixer),
  19728. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19729. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19730. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19731. msm_routing_get_port_mixer,
  19732. msm_routing_put_port_mixer),
  19733. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19734. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19735. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19736. msm_routing_get_port_mixer,
  19737. msm_routing_put_port_mixer),
  19738. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19739. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19740. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19741. msm_routing_get_port_mixer,
  19742. msm_routing_put_port_mixer),
  19743. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19744. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19745. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19746. msm_routing_get_port_mixer,
  19747. msm_routing_put_port_mixer),
  19748. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19749. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19750. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19751. msm_routing_get_port_mixer,
  19752. msm_routing_put_port_mixer),
  19753. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19754. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19755. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19756. msm_routing_get_port_mixer,
  19757. msm_routing_put_port_mixer),
  19758. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19759. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19760. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19761. msm_routing_get_port_mixer,
  19762. msm_routing_put_port_mixer),
  19763. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19764. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19765. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19766. msm_routing_get_port_mixer,
  19767. msm_routing_put_port_mixer),
  19768. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19769. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19770. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19771. msm_routing_get_port_mixer,
  19772. msm_routing_put_port_mixer),
  19773. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19774. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19775. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19776. msm_routing_get_port_mixer,
  19777. msm_routing_put_port_mixer),
  19778. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19779. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19780. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19781. msm_routing_get_port_mixer,
  19782. msm_routing_put_port_mixer),
  19783. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19784. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19785. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19786. msm_routing_get_port_mixer,
  19787. msm_routing_put_port_mixer),
  19788. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19789. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19790. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19791. msm_routing_get_port_mixer,
  19792. msm_routing_put_port_mixer),
  19793. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19794. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19795. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19796. msm_routing_get_port_mixer,
  19797. msm_routing_put_port_mixer),
  19798. };
  19799. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19800. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19802. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19803. msm_routing_get_port_mixer,
  19804. msm_routing_put_port_mixer),
  19805. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19807. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19808. msm_routing_get_port_mixer,
  19809. msm_routing_put_port_mixer),
  19810. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19811. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19812. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19813. msm_routing_get_port_mixer,
  19814. msm_routing_put_port_mixer),
  19815. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19817. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19818. msm_routing_get_port_mixer,
  19819. msm_routing_put_port_mixer),
  19820. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19822. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19823. msm_routing_get_port_mixer,
  19824. msm_routing_put_port_mixer),
  19825. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19826. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19827. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19828. msm_routing_get_port_mixer,
  19829. msm_routing_put_port_mixer),
  19830. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19831. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19832. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19833. msm_routing_get_port_mixer,
  19834. msm_routing_put_port_mixer),
  19835. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19836. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19837. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19838. msm_routing_get_port_mixer,
  19839. msm_routing_put_port_mixer),
  19840. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19841. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19842. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19843. msm_routing_get_port_mixer,
  19844. msm_routing_put_port_mixer),
  19845. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19846. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19847. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19848. msm_routing_get_port_mixer,
  19849. msm_routing_put_port_mixer),
  19850. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19851. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19852. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19853. msm_routing_get_port_mixer,
  19854. msm_routing_put_port_mixer),
  19855. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19856. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19857. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19858. msm_routing_get_port_mixer,
  19859. msm_routing_put_port_mixer),
  19860. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19861. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19862. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19863. msm_routing_get_port_mixer,
  19864. msm_routing_put_port_mixer),
  19865. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19866. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19867. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19868. msm_routing_get_port_mixer,
  19869. msm_routing_put_port_mixer),
  19870. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19871. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19872. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19873. msm_routing_get_port_mixer,
  19874. msm_routing_put_port_mixer),
  19875. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19876. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19877. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19878. msm_routing_get_port_mixer,
  19879. msm_routing_put_port_mixer),
  19880. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19881. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19882. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19883. msm_routing_get_port_mixer,
  19884. msm_routing_put_port_mixer),
  19885. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19886. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19887. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19888. msm_routing_get_port_mixer,
  19889. msm_routing_put_port_mixer),
  19890. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19891. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19892. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19893. msm_routing_get_port_mixer,
  19894. msm_routing_put_port_mixer),
  19895. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19896. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19897. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19898. msm_routing_get_port_mixer,
  19899. msm_routing_put_port_mixer),
  19900. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19901. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19902. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19903. msm_routing_get_port_mixer,
  19904. msm_routing_put_port_mixer),
  19905. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19906. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19907. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19908. msm_routing_get_port_mixer,
  19909. msm_routing_put_port_mixer),
  19910. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19911. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19912. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19913. msm_routing_get_port_mixer,
  19914. msm_routing_put_port_mixer),
  19915. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19916. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19917. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19918. msm_routing_get_port_mixer,
  19919. msm_routing_put_port_mixer),
  19920. };
  19921. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19922. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19923. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19924. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19925. msm_routing_get_port_mixer,
  19926. msm_routing_put_port_mixer),
  19927. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19928. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19929. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19930. msm_routing_get_port_mixer,
  19931. msm_routing_put_port_mixer),
  19932. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19933. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19934. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19935. msm_routing_get_port_mixer,
  19936. msm_routing_put_port_mixer),
  19937. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19938. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19939. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19940. msm_routing_get_port_mixer,
  19941. msm_routing_put_port_mixer),
  19942. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19943. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19944. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19945. msm_routing_get_port_mixer,
  19946. msm_routing_put_port_mixer),
  19947. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19948. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19949. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19950. msm_routing_get_port_mixer,
  19951. msm_routing_put_port_mixer),
  19952. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19953. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19954. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19955. msm_routing_get_port_mixer,
  19956. msm_routing_put_port_mixer),
  19957. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19958. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19959. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19960. msm_routing_get_port_mixer,
  19961. msm_routing_put_port_mixer),
  19962. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19963. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19964. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19965. msm_routing_get_port_mixer,
  19966. msm_routing_put_port_mixer),
  19967. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19968. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19969. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19970. msm_routing_get_port_mixer,
  19971. msm_routing_put_port_mixer),
  19972. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19973. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19974. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19975. msm_routing_get_port_mixer,
  19976. msm_routing_put_port_mixer),
  19977. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19979. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19980. msm_routing_get_port_mixer,
  19981. msm_routing_put_port_mixer),
  19982. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19983. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19984. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19985. msm_routing_get_port_mixer,
  19986. msm_routing_put_port_mixer),
  19987. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19988. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19989. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19990. msm_routing_get_port_mixer,
  19991. msm_routing_put_port_mixer),
  19992. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19993. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19994. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19995. msm_routing_get_port_mixer,
  19996. msm_routing_put_port_mixer),
  19997. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19999. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20000. msm_routing_get_port_mixer,
  20001. msm_routing_put_port_mixer),
  20002. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20003. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20004. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20005. msm_routing_get_port_mixer,
  20006. msm_routing_put_port_mixer),
  20007. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20009. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20010. msm_routing_get_port_mixer,
  20011. msm_routing_put_port_mixer),
  20012. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20013. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20014. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20015. msm_routing_get_port_mixer,
  20016. msm_routing_put_port_mixer),
  20017. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20018. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20019. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20020. msm_routing_get_port_mixer,
  20021. msm_routing_put_port_mixer),
  20022. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20023. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20024. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20025. msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20029. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20030. msm_routing_get_port_mixer,
  20031. msm_routing_put_port_mixer),
  20032. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20033. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20034. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20035. msm_routing_get_port_mixer,
  20036. msm_routing_put_port_mixer),
  20037. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20038. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20039. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20040. msm_routing_get_port_mixer,
  20041. msm_routing_put_port_mixer),
  20042. };
  20043. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20044. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20045. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20046. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20047. msm_routing_get_port_mixer,
  20048. msm_routing_put_port_mixer),
  20049. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20050. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20051. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20052. msm_routing_get_port_mixer,
  20053. msm_routing_put_port_mixer),
  20054. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20055. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20056. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20057. msm_routing_get_port_mixer,
  20058. msm_routing_put_port_mixer),
  20059. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20060. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20061. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20062. msm_routing_get_port_mixer,
  20063. msm_routing_put_port_mixer),
  20064. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20065. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20066. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20067. msm_routing_get_port_mixer,
  20068. msm_routing_put_port_mixer),
  20069. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20071. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20072. msm_routing_get_port_mixer,
  20073. msm_routing_put_port_mixer),
  20074. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20075. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20076. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20077. msm_routing_get_port_mixer,
  20078. msm_routing_put_port_mixer),
  20079. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20081. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20082. msm_routing_get_port_mixer,
  20083. msm_routing_put_port_mixer),
  20084. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20085. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20086. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20087. msm_routing_get_port_mixer,
  20088. msm_routing_put_port_mixer),
  20089. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20091. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20092. msm_routing_get_port_mixer,
  20093. msm_routing_put_port_mixer),
  20094. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20095. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20096. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20097. msm_routing_get_port_mixer,
  20098. msm_routing_put_port_mixer),
  20099. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20100. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20101. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20102. msm_routing_get_port_mixer,
  20103. msm_routing_put_port_mixer),
  20104. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20105. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20106. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20107. msm_routing_get_port_mixer,
  20108. msm_routing_put_port_mixer),
  20109. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20110. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20111. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20112. msm_routing_get_port_mixer,
  20113. msm_routing_put_port_mixer),
  20114. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20115. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20116. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20117. msm_routing_get_port_mixer,
  20118. msm_routing_put_port_mixer),
  20119. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20120. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20121. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20122. msm_routing_get_port_mixer,
  20123. msm_routing_put_port_mixer),
  20124. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20126. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20127. msm_routing_get_port_mixer,
  20128. msm_routing_put_port_mixer),
  20129. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20130. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20131. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20132. msm_routing_get_port_mixer,
  20133. msm_routing_put_port_mixer),
  20134. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20135. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20136. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20137. msm_routing_get_port_mixer,
  20138. msm_routing_put_port_mixer),
  20139. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20140. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20141. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20142. msm_routing_get_port_mixer,
  20143. msm_routing_put_port_mixer),
  20144. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20146. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20147. msm_routing_get_port_mixer,
  20148. msm_routing_put_port_mixer),
  20149. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20150. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20151. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20152. msm_routing_get_port_mixer,
  20153. msm_routing_put_port_mixer),
  20154. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20155. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20156. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20157. msm_routing_get_port_mixer,
  20158. msm_routing_put_port_mixer),
  20159. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20160. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20161. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20162. msm_routing_get_port_mixer,
  20163. msm_routing_put_port_mixer),
  20164. };
  20165. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20166. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20168. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20169. msm_routing_get_port_mixer,
  20170. msm_routing_put_port_mixer),
  20171. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20172. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20173. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20174. msm_routing_get_port_mixer,
  20175. msm_routing_put_port_mixer),
  20176. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20177. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20178. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20179. msm_routing_get_port_mixer,
  20180. msm_routing_put_port_mixer),
  20181. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20182. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20183. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20184. msm_routing_get_port_mixer,
  20185. msm_routing_put_port_mixer),
  20186. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20188. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20189. msm_routing_get_port_mixer,
  20190. msm_routing_put_port_mixer),
  20191. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20192. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20193. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20194. msm_routing_get_port_mixer,
  20195. msm_routing_put_port_mixer),
  20196. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20197. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20198. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20199. msm_routing_get_port_mixer,
  20200. msm_routing_put_port_mixer),
  20201. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20203. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20204. msm_routing_get_port_mixer,
  20205. msm_routing_put_port_mixer),
  20206. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20208. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20209. msm_routing_get_port_mixer,
  20210. msm_routing_put_port_mixer),
  20211. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20213. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20214. msm_routing_get_port_mixer,
  20215. msm_routing_put_port_mixer),
  20216. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20218. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20219. msm_routing_get_port_mixer,
  20220. msm_routing_put_port_mixer),
  20221. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20222. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20223. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20224. msm_routing_get_port_mixer,
  20225. msm_routing_put_port_mixer),
  20226. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20227. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20228. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20229. msm_routing_get_port_mixer,
  20230. msm_routing_put_port_mixer),
  20231. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20232. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20233. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20234. msm_routing_get_port_mixer,
  20235. msm_routing_put_port_mixer),
  20236. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20238. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20239. msm_routing_get_port_mixer,
  20240. msm_routing_put_port_mixer),
  20241. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20243. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20244. msm_routing_get_port_mixer,
  20245. msm_routing_put_port_mixer),
  20246. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20247. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20248. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20249. msm_routing_get_port_mixer,
  20250. msm_routing_put_port_mixer),
  20251. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20252. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20253. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20254. msm_routing_get_port_mixer,
  20255. msm_routing_put_port_mixer),
  20256. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20258. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20259. msm_routing_get_port_mixer,
  20260. msm_routing_put_port_mixer),
  20261. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20262. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20263. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20264. msm_routing_get_port_mixer,
  20265. msm_routing_put_port_mixer),
  20266. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20268. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20269. msm_routing_get_port_mixer,
  20270. msm_routing_put_port_mixer),
  20271. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20272. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20273. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20274. msm_routing_get_port_mixer,
  20275. msm_routing_put_port_mixer),
  20276. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20277. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20278. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20279. msm_routing_get_port_mixer,
  20280. msm_routing_put_port_mixer),
  20281. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20282. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20283. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20284. msm_routing_get_port_mixer,
  20285. msm_routing_put_port_mixer),
  20286. };
  20287. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20288. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20289. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20290. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20291. msm_routing_get_port_mixer,
  20292. msm_routing_put_port_mixer),
  20293. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20294. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20295. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20296. msm_routing_get_port_mixer,
  20297. msm_routing_put_port_mixer),
  20298. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20299. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20300. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20301. msm_routing_get_port_mixer,
  20302. msm_routing_put_port_mixer),
  20303. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20304. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20305. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20306. msm_routing_get_port_mixer,
  20307. msm_routing_put_port_mixer),
  20308. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20309. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20310. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20311. msm_routing_get_port_mixer,
  20312. msm_routing_put_port_mixer),
  20313. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20314. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20315. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20316. msm_routing_get_port_mixer,
  20317. msm_routing_put_port_mixer),
  20318. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20319. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20320. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20321. msm_routing_get_port_mixer,
  20322. msm_routing_put_port_mixer),
  20323. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20324. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20325. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20326. msm_routing_get_port_mixer,
  20327. msm_routing_put_port_mixer),
  20328. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20330. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20331. msm_routing_get_port_mixer,
  20332. msm_routing_put_port_mixer),
  20333. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20334. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20335. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20336. msm_routing_get_port_mixer,
  20337. msm_routing_put_port_mixer),
  20338. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20339. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20340. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20341. msm_routing_get_port_mixer,
  20342. msm_routing_put_port_mixer),
  20343. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20344. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20345. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20346. msm_routing_get_port_mixer,
  20347. msm_routing_put_port_mixer),
  20348. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20350. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20351. msm_routing_get_port_mixer,
  20352. msm_routing_put_port_mixer),
  20353. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20354. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20355. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20356. msm_routing_get_port_mixer,
  20357. msm_routing_put_port_mixer),
  20358. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20359. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20360. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20361. msm_routing_get_port_mixer,
  20362. msm_routing_put_port_mixer),
  20363. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20364. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20365. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20366. msm_routing_get_port_mixer,
  20367. msm_routing_put_port_mixer),
  20368. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20370. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20371. msm_routing_get_port_mixer,
  20372. msm_routing_put_port_mixer),
  20373. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20374. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20375. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20376. msm_routing_get_port_mixer,
  20377. msm_routing_put_port_mixer),
  20378. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20380. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20381. msm_routing_get_port_mixer,
  20382. msm_routing_put_port_mixer),
  20383. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20384. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20385. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20386. msm_routing_get_port_mixer,
  20387. msm_routing_put_port_mixer),
  20388. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20389. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20390. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20391. msm_routing_get_port_mixer,
  20392. msm_routing_put_port_mixer),
  20393. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20394. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20395. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20396. msm_routing_get_port_mixer,
  20397. msm_routing_put_port_mixer),
  20398. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20400. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20401. msm_routing_get_port_mixer,
  20402. msm_routing_put_port_mixer),
  20403. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20404. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20405. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20406. msm_routing_get_port_mixer,
  20407. msm_routing_put_port_mixer),
  20408. };
  20409. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20410. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20411. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20412. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20413. msm_routing_get_port_mixer,
  20414. msm_routing_put_port_mixer),
  20415. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20416. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20417. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20418. msm_routing_get_port_mixer,
  20419. msm_routing_put_port_mixer),
  20420. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20421. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20422. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20423. msm_routing_get_port_mixer,
  20424. msm_routing_put_port_mixer),
  20425. };
  20426. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20427. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20428. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20429. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20430. msm_routing_put_port_mixer),
  20431. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20432. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20433. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20434. msm_routing_put_port_mixer),
  20435. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20436. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20437. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20438. msm_routing_put_port_mixer),
  20439. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20440. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20441. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20442. msm_routing_put_port_mixer),
  20443. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20444. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20445. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20446. msm_routing_put_port_mixer),
  20447. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20448. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20449. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20450. msm_routing_put_port_mixer),
  20451. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20452. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20453. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20454. msm_routing_put_port_mixer),
  20455. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20456. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20457. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20458. msm_routing_put_port_mixer),
  20459. };
  20460. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20461. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20462. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20463. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20464. msm_routing_put_port_mixer),
  20465. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20466. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20467. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20468. msm_routing_put_port_mixer),
  20469. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20470. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20471. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20472. msm_routing_put_port_mixer),
  20473. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20474. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20475. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20476. msm_routing_put_port_mixer),
  20477. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20478. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20479. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20480. msm_routing_put_port_mixer),
  20481. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20482. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20483. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20484. msm_routing_put_port_mixer),
  20485. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20486. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20487. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20488. msm_routing_put_port_mixer),
  20489. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20490. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20491. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20492. msm_routing_put_port_mixer),
  20493. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20494. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20495. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20496. msm_routing_put_port_mixer),
  20497. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20498. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20499. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20500. msm_routing_put_port_mixer),
  20501. };
  20502. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20503. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20504. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20505. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20506. msm_routing_put_listen_mixer),
  20507. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20508. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20509. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20510. msm_routing_put_listen_mixer),
  20511. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20512. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20513. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20514. msm_routing_put_listen_mixer),
  20515. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20516. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20517. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20518. msm_routing_put_listen_mixer),
  20519. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20520. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20521. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20522. msm_routing_put_listen_mixer),
  20523. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20524. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20525. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20526. msm_routing_put_listen_mixer),
  20527. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20528. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20529. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20530. msm_routing_put_listen_mixer),
  20531. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20532. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20533. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20534. msm_routing_put_listen_mixer),
  20535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20537. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20538. msm_routing_put_listen_mixer),
  20539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20541. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20542. msm_routing_put_listen_mixer),
  20543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20545. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20546. msm_routing_put_listen_mixer),
  20547. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20548. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20549. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20550. msm_routing_put_listen_mixer),
  20551. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20552. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20553. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20554. msm_routing_put_listen_mixer),
  20555. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20556. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20557. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20558. msm_routing_put_listen_mixer),
  20559. };
  20560. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20561. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20562. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20563. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20564. msm_routing_put_listen_mixer),
  20565. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20566. SND_SOC_NOPM,
  20567. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20568. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20569. msm_routing_put_listen_mixer),
  20570. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20571. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20572. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20573. msm_routing_put_listen_mixer),
  20574. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20575. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20576. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20577. msm_routing_put_listen_mixer),
  20578. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20579. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20580. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20581. msm_routing_put_listen_mixer),
  20582. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20583. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20584. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20585. msm_routing_put_listen_mixer),
  20586. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20587. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20588. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20589. msm_routing_put_listen_mixer),
  20590. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20591. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20592. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20593. msm_routing_put_listen_mixer),
  20594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20596. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20597. msm_routing_put_listen_mixer),
  20598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20600. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20601. msm_routing_put_listen_mixer),
  20602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20604. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20605. msm_routing_put_listen_mixer),
  20606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20608. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20609. msm_routing_put_listen_mixer),
  20610. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20611. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20612. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20613. msm_routing_put_listen_mixer),
  20614. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20615. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20616. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20617. msm_routing_put_listen_mixer),
  20618. };
  20619. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20620. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20621. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20622. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20623. msm_routing_put_listen_mixer),
  20624. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20625. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20626. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20627. msm_routing_put_listen_mixer),
  20628. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20629. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20630. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20631. msm_routing_put_listen_mixer),
  20632. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20633. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20634. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20635. msm_routing_put_listen_mixer),
  20636. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20637. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20638. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20639. msm_routing_put_listen_mixer),
  20640. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20641. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20642. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20643. msm_routing_put_listen_mixer),
  20644. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20645. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20646. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20647. msm_routing_put_listen_mixer),
  20648. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20649. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20650. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20651. msm_routing_put_listen_mixer),
  20652. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20653. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20654. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20655. msm_routing_put_listen_mixer),
  20656. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20657. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20658. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20659. msm_routing_put_listen_mixer),
  20660. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20661. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20662. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20663. msm_routing_put_listen_mixer),
  20664. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20665. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20666. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20667. msm_routing_put_listen_mixer),
  20668. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20669. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20670. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20671. msm_routing_put_listen_mixer),
  20672. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20673. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20674. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20675. msm_routing_put_listen_mixer),
  20676. };
  20677. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20678. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20679. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20680. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20681. msm_routing_put_listen_mixer),
  20682. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20683. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20684. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20685. msm_routing_put_listen_mixer),
  20686. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20687. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20688. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20689. msm_routing_put_listen_mixer),
  20690. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20691. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20692. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20693. msm_routing_put_listen_mixer),
  20694. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20695. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20696. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20697. msm_routing_put_listen_mixer),
  20698. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20699. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20700. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20701. msm_routing_put_listen_mixer),
  20702. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20703. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20704. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20705. msm_routing_put_listen_mixer),
  20706. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20707. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20708. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20709. msm_routing_put_listen_mixer),
  20710. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20711. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20712. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20713. msm_routing_put_listen_mixer),
  20714. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20715. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20716. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20717. msm_routing_put_listen_mixer),
  20718. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20719. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20720. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20721. msm_routing_put_listen_mixer),
  20722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20723. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20724. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20725. msm_routing_put_listen_mixer),
  20726. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20727. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20728. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20729. msm_routing_put_listen_mixer),
  20730. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20731. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20732. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20733. msm_routing_put_listen_mixer),
  20734. };
  20735. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20736. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20737. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20738. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20739. msm_routing_put_listen_mixer),
  20740. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20741. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20742. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20743. msm_routing_put_listen_mixer),
  20744. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20745. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20746. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20747. msm_routing_put_listen_mixer),
  20748. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20749. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20750. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20751. msm_routing_put_listen_mixer),
  20752. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20753. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20754. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20755. msm_routing_put_listen_mixer),
  20756. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20757. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20758. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20759. msm_routing_put_listen_mixer),
  20760. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20761. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20762. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20763. msm_routing_put_listen_mixer),
  20764. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20765. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20766. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20767. msm_routing_put_listen_mixer),
  20768. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20769. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20770. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20771. msm_routing_put_listen_mixer),
  20772. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20773. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20774. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20775. msm_routing_put_listen_mixer),
  20776. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20777. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20778. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20779. msm_routing_put_listen_mixer),
  20780. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20781. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20782. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20783. msm_routing_put_listen_mixer),
  20784. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20785. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20786. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20787. msm_routing_put_listen_mixer),
  20788. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20789. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20790. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20791. msm_routing_put_listen_mixer),
  20792. };
  20793. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20794. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20795. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20796. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20797. msm_routing_put_listen_mixer),
  20798. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20799. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20800. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20801. msm_routing_put_listen_mixer),
  20802. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20803. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20804. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20805. msm_routing_put_listen_mixer),
  20806. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20807. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20808. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20809. msm_routing_put_listen_mixer),
  20810. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20811. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20812. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20813. msm_routing_put_listen_mixer),
  20814. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20815. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20816. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20817. msm_routing_put_listen_mixer),
  20818. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20819. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20820. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20821. msm_routing_put_listen_mixer),
  20822. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20823. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20824. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20825. msm_routing_put_listen_mixer),
  20826. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20827. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20828. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20829. msm_routing_put_listen_mixer),
  20830. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20831. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20832. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20833. msm_routing_put_listen_mixer),
  20834. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20835. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20836. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20837. msm_routing_put_listen_mixer),
  20838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20840. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20841. msm_routing_put_listen_mixer),
  20842. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20843. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20844. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20845. msm_routing_put_listen_mixer),
  20846. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20847. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20848. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20849. msm_routing_put_listen_mixer),
  20850. };
  20851. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20852. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20853. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20854. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20855. msm_routing_put_listen_mixer),
  20856. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20857. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20858. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20859. msm_routing_put_listen_mixer),
  20860. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20861. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20862. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20863. msm_routing_put_listen_mixer),
  20864. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20865. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20866. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20867. msm_routing_put_listen_mixer),
  20868. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20869. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20870. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20871. msm_routing_put_listen_mixer),
  20872. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20873. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20874. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20875. msm_routing_put_listen_mixer),
  20876. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20877. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20878. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20879. msm_routing_put_listen_mixer),
  20880. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20881. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20882. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20883. msm_routing_put_listen_mixer),
  20884. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20885. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20886. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20887. msm_routing_put_listen_mixer),
  20888. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20889. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20890. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20891. msm_routing_put_listen_mixer),
  20892. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20893. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20894. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20895. msm_routing_put_listen_mixer),
  20896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20898. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20899. msm_routing_put_listen_mixer),
  20900. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20901. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20902. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20903. msm_routing_put_listen_mixer),
  20904. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20905. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20906. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20907. msm_routing_put_listen_mixer),
  20908. };
  20909. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20910. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20911. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20912. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20913. msm_routing_put_listen_mixer),
  20914. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20915. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20916. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20917. msm_routing_put_listen_mixer),
  20918. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20919. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20920. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20921. msm_routing_put_listen_mixer),
  20922. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20923. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20924. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20925. msm_routing_put_listen_mixer),
  20926. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20927. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20928. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20929. msm_routing_put_listen_mixer),
  20930. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20931. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20932. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20933. msm_routing_put_listen_mixer),
  20934. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20935. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20936. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20937. msm_routing_put_listen_mixer),
  20938. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20939. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20940. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20941. msm_routing_put_listen_mixer),
  20942. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20943. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20944. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20945. msm_routing_put_listen_mixer),
  20946. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20947. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20948. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20949. msm_routing_put_listen_mixer),
  20950. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20951. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20952. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20953. msm_routing_put_listen_mixer),
  20954. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20955. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20956. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20957. msm_routing_put_listen_mixer),
  20958. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20959. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20960. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20961. msm_routing_put_listen_mixer),
  20962. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20963. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20964. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20965. msm_routing_put_listen_mixer),
  20966. };
  20967. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20968. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20969. 0, 1, 0, msm_routing_get_switch_mixer,
  20970. msm_routing_put_switch_mixer);
  20971. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20972. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20973. 0, 1, 0, msm_routing_get_switch_mixer,
  20974. msm_routing_put_switch_mixer);
  20975. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20976. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20977. 0, 1, 0, msm_routing_get_switch_mixer,
  20978. msm_routing_put_switch_mixer);
  20979. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20980. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20981. 0, 1, 0, msm_routing_get_switch_mixer,
  20982. msm_routing_put_switch_mixer);
  20983. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20984. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20985. 0, 1, 0, msm_routing_get_switch_mixer,
  20986. msm_routing_put_switch_mixer);
  20987. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20988. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20989. 0, 1, 0, msm_routing_get_switch_mixer,
  20990. msm_routing_put_switch_mixer);
  20991. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  20992. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20993. 0, 1, 0, msm_routing_get_switch_mixer,
  20994. msm_routing_put_switch_mixer);
  20995. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20996. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20997. 0, 1, 0, msm_routing_get_switch_mixer,
  20998. msm_routing_put_switch_mixer);
  20999. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21000. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21001. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21002. msm_routing_put_fm_pcmrx_switch_mixer);
  21003. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21004. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21005. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21006. msm_routing_put_int0_mi2s_switch_mixer);
  21007. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21008. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21009. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21010. msm_routing_put_int4_mi2s_switch_mixer);
  21011. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21012. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21013. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21014. msm_routing_put_pri_mi2s_switch_mixer);
  21015. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21016. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21017. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21018. msm_routing_put_sec_mi2s_switch_mixer);
  21019. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21020. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21021. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21022. msm_routing_put_tert_mi2s_switch_mixer);
  21023. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21024. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21025. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21026. msm_routing_put_quat_mi2s_switch_mixer);
  21027. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21028. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21029. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21030. msm_routing_put_quin_mi2s_switch_mixer);
  21031. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21032. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21033. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21034. msm_routing_put_sen_mi2s_switch_mixer);
  21035. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21036. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21037. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21038. msm_routing_put_hfp_switch_mixer);
  21039. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21040. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21041. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21042. msm_routing_put_hfp_switch_mixer);
  21043. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21044. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21045. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21046. msm_routing_put_hfp_switch_mixer);
  21047. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21048. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21049. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21050. msm_routing_put_hfp_switch_mixer);
  21051. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21052. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21053. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21054. msm_routing_put_usb_switch_mixer);
  21055. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21056. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21057. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21058. msm_routing_a2dp_switch_mixer_put);
  21059. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21060. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21061. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21062. msm_routing_sco_switch_mixer_put);
  21063. static const struct soc_enum lsm_port_enum =
  21064. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21065. static const char * const lsm_func_text[] = {
  21066. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21067. };
  21068. static const struct soc_enum lsm_func_enum =
  21069. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21070. static const struct snd_kcontrol_new lsm_controls[] = {
  21071. /* kcontrol of lsm_function */
  21072. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21073. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21074. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21075. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21076. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21077. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21078. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21079. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21080. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21081. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21082. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21083. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21084. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21085. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21086. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21087. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21088. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21089. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21090. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21091. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21092. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21093. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21094. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21095. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21096. /* kcontrol of lsm_port */
  21097. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21098. msm_routing_lsm_port_get,
  21099. msm_routing_lsm_port_put),
  21100. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21101. msm_routing_lsm_port_get,
  21102. msm_routing_lsm_port_put),
  21103. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21104. msm_routing_lsm_port_get,
  21105. msm_routing_lsm_port_put),
  21106. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21107. msm_routing_lsm_port_get,
  21108. msm_routing_lsm_port_put),
  21109. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21110. msm_routing_lsm_port_get,
  21111. msm_routing_lsm_port_put),
  21112. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21113. msm_routing_lsm_port_get,
  21114. msm_routing_lsm_port_put),
  21115. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21116. msm_routing_lsm_port_get,
  21117. msm_routing_lsm_port_put),
  21118. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21119. msm_routing_lsm_port_get,
  21120. msm_routing_lsm_port_put),
  21121. };
  21122. static const char * const aanc_slim_0_rx_text[] = {
  21123. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21124. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21125. };
  21126. static const struct soc_enum aanc_slim_0_rx_enum =
  21127. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21128. aanc_slim_0_rx_text);
  21129. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21130. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21131. msm_routing_slim_0_rx_aanc_mux_get,
  21132. msm_routing_slim_0_rx_aanc_mux_put)
  21133. };
  21134. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21135. struct snd_ctl_elem_value *ucontrol)
  21136. {
  21137. ucontrol->value.integer.value[0] = aanc_level;
  21138. return 0;
  21139. }
  21140. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21141. struct snd_ctl_elem_value *ucontrol)
  21142. {
  21143. int ret = 0;
  21144. mutex_lock(&routing_lock);
  21145. aanc_level = ucontrol->value.integer.value[0];
  21146. pr_debug("%s: value: %ld\n",
  21147. __func__, ucontrol->value.integer.value[0]);
  21148. ret = afe_set_aanc_noise_level(aanc_level);
  21149. mutex_unlock(&routing_lock);
  21150. return ret;
  21151. }
  21152. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21153. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21154. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21155. };
  21156. static int msm_routing_get_stereo_to_custom_stereo_control(
  21157. struct snd_kcontrol *kcontrol,
  21158. struct snd_ctl_elem_value *ucontrol)
  21159. {
  21160. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21161. return 0;
  21162. }
  21163. static int msm_routing_put_stereo_to_custom_stereo_control(
  21164. struct snd_kcontrol *kcontrol,
  21165. struct snd_ctl_elem_value *ucontrol)
  21166. {
  21167. int flag = 0, i = 0, rc = 0, idx = 0;
  21168. int be_index = 0, port_id, topo_id;
  21169. unsigned int session_id = 0;
  21170. uint16_t op_FL_ip_FL_weight = 0;
  21171. uint16_t op_FL_ip_FR_weight = 0;
  21172. uint16_t op_FR_ip_FL_weight = 0;
  21173. uint16_t op_FR_ip_FR_weight = 0;
  21174. flag = ucontrol->value.integer.value[0];
  21175. pr_debug("%s E flag %d\n", __func__, flag);
  21176. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21177. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21178. __func__, is_custom_stereo_on, flag);
  21179. return 0;
  21180. }
  21181. is_custom_stereo_on = flag ? true : false;
  21182. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21183. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21184. port_id = msm_bedais[be_index].port_id;
  21185. if (!msm_bedais[be_index].active)
  21186. continue;
  21187. if ((port_id != SLIMBUS_0_RX) &&
  21188. (port_id != RT_PROXY_PORT_001_RX) &&
  21189. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21190. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21191. continue;
  21192. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21193. MSM_FRONTEND_DAI_MM_SIZE) {
  21194. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21195. LEGACY_PCM_MODE)
  21196. goto skip_send_custom_stereo;
  21197. session_id =
  21198. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21199. if (is_custom_stereo_on) {
  21200. op_FL_ip_FL_weight =
  21201. Q14_GAIN_ZERO_POINT_FIVE;
  21202. op_FL_ip_FR_weight =
  21203. Q14_GAIN_ZERO_POINT_FIVE;
  21204. op_FR_ip_FL_weight =
  21205. Q14_GAIN_ZERO_POINT_FIVE;
  21206. op_FR_ip_FR_weight =
  21207. Q14_GAIN_ZERO_POINT_FIVE;
  21208. } else {
  21209. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21210. op_FL_ip_FR_weight = 0;
  21211. op_FR_ip_FL_weight = 0;
  21212. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21213. }
  21214. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21215. unsigned long copp =
  21216. session_copp_map[i]
  21217. [SESSION_TYPE_RX][be_index];
  21218. if (!test_bit(idx, &copp))
  21219. goto skip_send_custom_stereo;
  21220. topo_id = adm_get_topology_for_port_copp_idx(
  21221. msm_bedais[be_index].port_id, idx);
  21222. if (topo_id < 0)
  21223. pr_debug("%s:Err:custom stereo topo %d",
  21224. __func__, topo_id);
  21225. pr_debug("idx %d\n", idx);
  21226. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21227. rc = msm_ds2_dap_set_custom_stereo_onoff
  21228. (msm_bedais[be_index].port_id,
  21229. idx, is_custom_stereo_on);
  21230. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21231. rc = dolby_dap_set_custom_stereo_onoff(
  21232. msm_bedais[be_index].port_id,
  21233. idx, is_custom_stereo_on);
  21234. else
  21235. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21236. (msm_bedais[be_index].port_id,
  21237. idx, session_id,
  21238. op_FL_ip_FL_weight,
  21239. op_FL_ip_FR_weight,
  21240. op_FR_ip_FL_weight,
  21241. op_FR_ip_FR_weight);
  21242. if (rc < 0)
  21243. skip_send_custom_stereo:
  21244. pr_err("%s: err setting custom stereo\n",
  21245. __func__);
  21246. }
  21247. }
  21248. }
  21249. return 0;
  21250. }
  21251. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21252. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21253. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21254. msm_routing_put_stereo_to_custom_stereo_control),
  21255. };
  21256. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21257. struct snd_ctl_elem_value *ucontrol)
  21258. {
  21259. return 0;
  21260. }
  21261. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21262. struct snd_ctl_elem_value *ucontrol)
  21263. {
  21264. int i = 0, j;
  21265. int num_app_types = ucontrol->value.integer.value[i++];
  21266. pr_debug("%s\n", __func__);
  21267. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21268. sizeof(struct msm_pcm_routing_app_type_data));
  21269. if (num_app_types > MAX_APP_TYPES) {
  21270. pr_err("%s: number of app types exceed the max supported\n",
  21271. __func__);
  21272. return -EINVAL;
  21273. }
  21274. for (j = 0; j < num_app_types; j++) {
  21275. app_type_cfg[j].app_type =
  21276. ucontrol->value.integer.value[i++];
  21277. app_type_cfg[j].sample_rate =
  21278. ucontrol->value.integer.value[i++];
  21279. app_type_cfg[j].bit_width =
  21280. ucontrol->value.integer.value[i++];
  21281. }
  21282. return 0;
  21283. }
  21284. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21285. struct snd_ctl_elem_value *ucontrol)
  21286. {
  21287. int j, fe_id, be_id, port_type;
  21288. int ret = 0;
  21289. unsigned long copp;
  21290. struct msm_pcm_routing_bdai_data *bedai;
  21291. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21292. SESSION_TYPE_RX;
  21293. int app_type = ucontrol->value.integer.value[1];
  21294. int gain = (ucontrol->value.integer.value[2] +
  21295. ucontrol->value.integer.value[3])/2;
  21296. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21297. MSM_AFE_PORT_TYPE_TX;
  21298. mutex_lock(&routing_lock);
  21299. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21300. if (is_be_dai_extproc(be_id))
  21301. continue;
  21302. bedai = &msm_bedais[be_id];
  21303. if (afe_get_port_type(bedai->port_id) != port_type)
  21304. continue;
  21305. if (!bedai->active)
  21306. continue;
  21307. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21308. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21309. continue;
  21310. if (app_type !=
  21311. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21312. continue;
  21313. copp = session_copp_map[fe_id][dir][be_id];
  21314. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21315. if (!test_bit(j, &copp))
  21316. continue;
  21317. ret |= adm_set_volume(bedai->port_id, j, gain);
  21318. }
  21319. }
  21320. }
  21321. mutex_unlock(&routing_lock);
  21322. return ret ? -EINVAL : 0;
  21323. }
  21324. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21325. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21326. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21327. msm_routing_put_app_type_cfg_control),
  21328. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21329. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21330. };
  21331. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21332. struct snd_ctl_elem_value *ucontrol)
  21333. {
  21334. int copp_idx, fe_id, be_id, port_type;
  21335. int ret = 0;
  21336. unsigned long copp;
  21337. struct msm_pcm_routing_bdai_data *bedai;
  21338. u8 *packed_params = NULL;
  21339. struct param_hdr_v3 param_hdr;
  21340. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21341. sizeof(uint32_t));
  21342. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21343. SESSION_TYPE_RX;
  21344. int app_type = ucontrol->value.integer.value[1];
  21345. int module_id = ucontrol->value.integer.value[2];
  21346. int instance_id = ucontrol->value.integer.value[3];
  21347. int param_id = ucontrol->value.integer.value[4];
  21348. int param_value = ucontrol->value.integer.value[5];
  21349. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21350. MSM_AFE_PORT_TYPE_TX;
  21351. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21352. __func__, app_type, module_id,
  21353. instance_id, param_id, param_value);
  21354. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21355. if (!packed_params)
  21356. return -ENOMEM;
  21357. memset(&param_hdr, 0, sizeof(param_hdr));
  21358. param_hdr.module_id = module_id;
  21359. param_hdr.instance_id = instance_id;
  21360. param_hdr.param_id = param_id;
  21361. param_hdr.param_size = sizeof(uint32_t);
  21362. packed_param_size = 0;
  21363. mutex_lock(&routing_lock);
  21364. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21365. if (is_be_dai_extproc(be_id))
  21366. continue;
  21367. bedai = &msm_bedais[be_id];
  21368. if (afe_get_port_type(bedai->port_id) != port_type)
  21369. continue;
  21370. if (!bedai->active)
  21371. continue;
  21372. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21373. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21374. continue;
  21375. if (app_type !=
  21376. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21377. continue;
  21378. copp = session_copp_map[fe_id][dir][be_id];
  21379. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21380. copp_idx++) {
  21381. if (!test_bit(copp_idx, &copp))
  21382. continue;
  21383. ret = q6common_pack_pp_params(packed_params,
  21384. &param_hdr,
  21385. (u8 *) &param_value,
  21386. &packed_param_size);
  21387. if (ret) {
  21388. pr_err("%s: Failed to pack params, error %d\n",
  21389. __func__, ret);
  21390. goto done;
  21391. }
  21392. ret = adm_set_pp_params(bedai->port_id,
  21393. copp_idx, NULL,
  21394. packed_params,
  21395. packed_param_size);
  21396. if (ret) {
  21397. pr_err("%s: Setting param failed with err=%d\n",
  21398. __func__, ret);
  21399. ret = -EINVAL;
  21400. goto done;
  21401. }
  21402. }
  21403. }
  21404. }
  21405. done:
  21406. mutex_unlock(&routing_lock);
  21407. kfree(packed_params);
  21408. return ret;
  21409. }
  21410. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21411. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21412. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21413. };
  21414. static int msm_routing_get_lsm_app_type_cfg_control(
  21415. struct snd_kcontrol *kcontrol,
  21416. struct snd_ctl_elem_value *ucontrol)
  21417. {
  21418. int shift = ((struct soc_multi_mixer_control *)
  21419. kcontrol->private_value)->shift;
  21420. int i = 0, j = 0;
  21421. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21422. for (j = 0; j < num_app_cfg_types; ++j) {
  21423. ucontrol->value.integer.value[++i] =
  21424. lsm_app_type_cfg[j].app_type;
  21425. ucontrol->value.integer.value[++i] =
  21426. lsm_app_type_cfg[j].sample_rate;
  21427. ucontrol->value.integer.value[++i] =
  21428. lsm_app_type_cfg[j].bit_width;
  21429. if (shift == 1)
  21430. ucontrol->value.integer.value[++i] =
  21431. lsm_app_type_cfg[j].num_out_channels;
  21432. }
  21433. return 0;
  21434. }
  21435. static int msm_routing_put_lsm_app_type_cfg_control(
  21436. struct snd_kcontrol *kcontrol,
  21437. struct snd_ctl_elem_value *ucontrol)
  21438. {
  21439. int shift = ((struct soc_multi_mixer_control *)
  21440. kcontrol->private_value)->shift;
  21441. int i = 0, j;
  21442. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21443. pr_err("%s: number of app types exceed the max supported\n",
  21444. __func__);
  21445. return -EINVAL;
  21446. }
  21447. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21448. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21449. sizeof(struct msm_pcm_routing_app_type_data));
  21450. for (j = 0; j < num_app_cfg_types; j++) {
  21451. lsm_app_type_cfg[j].app_type =
  21452. ucontrol->value.integer.value[i++];
  21453. lsm_app_type_cfg[j].sample_rate =
  21454. ucontrol->value.integer.value[i++];
  21455. lsm_app_type_cfg[j].bit_width =
  21456. ucontrol->value.integer.value[i++];
  21457. /* Shift of 1 indicates this is V2 mixer control */
  21458. if (shift == 1)
  21459. lsm_app_type_cfg[j].num_out_channels =
  21460. ucontrol->value.integer.value[i++];
  21461. }
  21462. return 0;
  21463. }
  21464. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21465. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21466. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21467. msm_routing_put_lsm_app_type_cfg_control),
  21468. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21469. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21470. msm_routing_put_lsm_app_type_cfg_control),
  21471. };
  21472. static int msm_routing_get_use_ds1_or_ds2_control(
  21473. struct snd_kcontrol *kcontrol,
  21474. struct snd_ctl_elem_value *ucontrol)
  21475. {
  21476. ucontrol->value.integer.value[0] = is_ds2_on;
  21477. return 0;
  21478. }
  21479. static int msm_routing_put_use_ds1_or_ds2_control(
  21480. struct snd_kcontrol *kcontrol,
  21481. struct snd_ctl_elem_value *ucontrol)
  21482. {
  21483. is_ds2_on = ucontrol->value.integer.value[0];
  21484. return 0;
  21485. }
  21486. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21487. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21488. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21489. msm_routing_put_use_ds1_or_ds2_control),
  21490. };
  21491. static int msm_routing_get_hifi_filter_control(
  21492. struct snd_kcontrol *kcontrol,
  21493. struct snd_ctl_elem_value *ucontrol)
  21494. {
  21495. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21496. return 0;
  21497. }
  21498. static int msm_routing_put_hifi_filter_control(
  21499. struct snd_kcontrol *kcontrol,
  21500. struct snd_ctl_elem_value *ucontrol)
  21501. {
  21502. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21503. return 0;
  21504. }
  21505. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21506. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21507. 1, 0, msm_routing_get_hifi_filter_control,
  21508. msm_routing_put_hifi_filter_control),
  21509. };
  21510. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21511. struct snd_ctl_elem_value *ucontrol) {
  21512. int rc = 0;
  21513. int be_idx = 0;
  21514. char *param_value;
  21515. int *update_param_value;
  21516. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21517. struct param_hdr_v3 param_hdr;
  21518. param_value = kzalloc(param_size, GFP_KERNEL);
  21519. if (!param_value)
  21520. return -ENOMEM;
  21521. memset(&param_hdr, 0, sizeof(param_hdr));
  21522. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21523. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21524. break;
  21525. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21526. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21527. param_hdr.instance_id = INSTANCE_ID_0;
  21528. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21529. param_hdr.param_size = param_size;
  21530. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21531. NULL, &param_hdr, (u8 *) param_value);
  21532. if (rc) {
  21533. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21534. kfree(param_value);
  21535. return -EINVAL;
  21536. }
  21537. update_param_value = (int *)param_value;
  21538. ucontrol->value.integer.value[0] = update_param_value[0];
  21539. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21540. __func__, update_param_value[0]);
  21541. }
  21542. kfree(param_value);
  21543. return 0;
  21544. }
  21545. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21546. struct snd_ctl_elem_value *ucontrol)
  21547. {
  21548. voc_session_id = ucontrol->value.integer.value[0];
  21549. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21550. return 0;
  21551. }
  21552. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21553. struct snd_ctl_elem_value *ucontrol)
  21554. {
  21555. ucontrol->value.integer.value[0] = voc_session_id;
  21556. return 0;
  21557. }
  21558. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21559. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21560. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21561. msm_voc_session_id_put),
  21562. };
  21563. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21564. struct snd_ctl_elem_info *uinfo)
  21565. {
  21566. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21567. uinfo->count = sizeof(struct sound_focus_param);
  21568. return 0;
  21569. }
  21570. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21571. struct snd_ctl_elem_value *ucontrol)
  21572. {
  21573. int ret = 0;
  21574. struct sound_focus_param soundFocusData;
  21575. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21576. sizeof(struct sound_focus_param));
  21577. ret = voc_set_sound_focus(soundFocusData);
  21578. if (ret) {
  21579. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21580. __func__, ret);
  21581. ret = -EINVAL;
  21582. }
  21583. return ret;
  21584. }
  21585. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21586. struct snd_ctl_elem_value *ucontrol)
  21587. {
  21588. int ret = 0;
  21589. struct sound_focus_param soundFocusData;
  21590. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21591. ret = voc_get_sound_focus(&soundFocusData);
  21592. if (ret) {
  21593. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21594. __func__, ret);
  21595. ret = -EINVAL;
  21596. goto done;
  21597. }
  21598. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21599. sizeof(struct sound_focus_param));
  21600. done:
  21601. return ret;
  21602. }
  21603. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21604. struct snd_ctl_elem_info *uinfo)
  21605. {
  21606. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21607. uinfo->count = sizeof(struct source_tracking_param);
  21608. return 0;
  21609. }
  21610. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21611. struct snd_ctl_elem_value *ucontrol)
  21612. {
  21613. int ret = 0;
  21614. struct source_tracking_param sourceTrackingData;
  21615. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21616. ret = voc_get_source_tracking(&sourceTrackingData);
  21617. if (ret) {
  21618. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21619. __func__, ret);
  21620. ret = -EINVAL;
  21621. goto done;
  21622. }
  21623. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21624. sizeof(struct source_tracking_param));
  21625. done:
  21626. return ret;
  21627. }
  21628. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21629. int *copp_idx)
  21630. {
  21631. int i, idx, be_idx;
  21632. int ret = 0;
  21633. unsigned long copp;
  21634. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21635. ret = q6audio_validate_port(port_id);
  21636. if (ret < 0) {
  21637. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21638. __func__, port_id, ret);
  21639. ret = -EINVAL;
  21640. goto done;
  21641. }
  21642. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21643. if (msm_bedais[be_idx].port_id == port_id)
  21644. break;
  21645. }
  21646. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21647. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21648. ret = -EINVAL;
  21649. goto done;
  21650. }
  21651. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21652. MSM_FRONTEND_DAI_MAX) {
  21653. if (!(is_mm_lsm_fe_id(i) &&
  21654. route_check_fe_id_adm_support(i)))
  21655. continue;
  21656. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21657. copp = session_copp_map[i]
  21658. [session_type][be_idx];
  21659. if (test_bit(idx, &copp))
  21660. break;
  21661. }
  21662. if (idx >= MAX_COPPS_PER_PORT)
  21663. continue;
  21664. else
  21665. break;
  21666. }
  21667. if (i >= MSM_FRONTEND_DAI_MAX) {
  21668. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21669. ret = -EINVAL;
  21670. goto done;
  21671. }
  21672. *copp_idx = idx;
  21673. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21674. done:
  21675. return ret;
  21676. }
  21677. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21678. const char *prefix, int *port_id)
  21679. {
  21680. int ret = 0;
  21681. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21682. /*
  21683. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21684. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21685. * and compare the string with the backend name to derive the port id.
  21686. */
  21687. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21688. "SLIMBUS_0")) {
  21689. *port_id = SLIMBUS_0_TX;
  21690. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21691. "TERT_MI2S")) {
  21692. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21693. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21694. "INT3_MI2S")) {
  21695. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21696. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21697. "VA_CDC_DMA_TX_0")) {
  21698. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21699. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21700. "TX_CDC_DMA_TX_3")) {
  21701. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21702. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21703. "QUIN_TDM_TX_0")) {
  21704. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21705. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21706. "PRIMARY_TDM")) {
  21707. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21708. } else {
  21709. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21710. __func__, kcontrol->id.name);
  21711. ret = -EINVAL;
  21712. goto done;
  21713. }
  21714. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21715. __func__, kcontrol->id.name, *port_id);
  21716. done:
  21717. return ret;
  21718. }
  21719. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21720. struct snd_ctl_elem_value *ucontrol)
  21721. {
  21722. int ret = 0;
  21723. struct sound_focus_param soundFocusData;
  21724. int port_id, copp_idx;
  21725. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21726. "Sound Focus Audio Tx ", &port_id);
  21727. if (ret != 0) {
  21728. pr_err("%s: Error in deriving port id, err=%d\n",
  21729. __func__, ret);
  21730. ret = -EINVAL;
  21731. goto done;
  21732. }
  21733. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21734. &copp_idx);
  21735. if (ret) {
  21736. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21737. __func__, port_id);
  21738. ret = -EINVAL;
  21739. goto done;
  21740. }
  21741. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21742. sizeof(struct sound_focus_param));
  21743. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21744. if (ret) {
  21745. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21746. __func__, ret);
  21747. ret = -EINVAL;
  21748. goto done;
  21749. }
  21750. done:
  21751. return ret;
  21752. }
  21753. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21754. struct snd_ctl_elem_value *ucontrol)
  21755. {
  21756. int ret = 0;
  21757. struct sound_focus_param soundFocusData;
  21758. int port_id, copp_idx;
  21759. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21760. "Sound Focus Audio Tx ", &port_id);
  21761. if (ret) {
  21762. pr_err("%s: Error in deriving port id, err=%d\n",
  21763. __func__, ret);
  21764. ret = -EINVAL;
  21765. goto done;
  21766. }
  21767. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21768. &copp_idx);
  21769. if (ret) {
  21770. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21771. __func__, port_id);
  21772. ret = -EINVAL;
  21773. goto done;
  21774. }
  21775. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21776. if (ret) {
  21777. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21778. __func__, ret);
  21779. ret = -EINVAL;
  21780. goto done;
  21781. }
  21782. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21783. sizeof(struct sound_focus_param));
  21784. done:
  21785. return ret;
  21786. }
  21787. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21788. struct snd_ctl_elem_value *ucontrol)
  21789. {
  21790. int ret = 0;
  21791. struct source_tracking_param sourceTrackingData;
  21792. int port_id, copp_idx;
  21793. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21794. "Source Tracking Audio Tx ", &port_id);
  21795. if (ret) {
  21796. pr_err("%s: Error in deriving port id, err=%d\n",
  21797. __func__, ret);
  21798. ret = -EINVAL;
  21799. goto done;
  21800. }
  21801. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21802. &copp_idx);
  21803. if (ret) {
  21804. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21805. __func__, port_id);
  21806. ret = -EINVAL;
  21807. goto done;
  21808. }
  21809. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21810. if (ret) {
  21811. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21812. __func__, ret);
  21813. ret = -EINVAL;
  21814. goto done;
  21815. }
  21816. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21817. sizeof(struct source_tracking_param));
  21818. done:
  21819. return ret;
  21820. }
  21821. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21822. struct snd_ctl_elem_info *uinfo)
  21823. {
  21824. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21825. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21826. return 0;
  21827. }
  21828. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21829. struct snd_ctl_elem_value *ucontrol)
  21830. {
  21831. int ret = 0;
  21832. struct doa_tracking_mon_param doa_tracking_data;
  21833. int port_id, copp_idx;
  21834. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21835. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21836. "Doa Tracking Monitor Listen ", &port_id);
  21837. if (ret) {
  21838. pr_err("%s: Error in deriving port id, err=%d\n",
  21839. __func__, ret);
  21840. ret = -EINVAL;
  21841. goto done;
  21842. }
  21843. /*
  21844. * If copp id exists for given port id, query adm to get doa data.
  21845. * Else query afe for doa tracking params.
  21846. * This is to support in cases where LSM directly connects to
  21847. * AFE for FFNS.
  21848. */
  21849. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21850. &copp_idx);
  21851. if (!ret)
  21852. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21853. &doa_tracking_data);
  21854. else
  21855. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21856. if (ret) {
  21857. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21858. __func__, ret);
  21859. ret = -EINVAL;
  21860. goto done;
  21861. }
  21862. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21863. sizeof(struct doa_tracking_mon_param));
  21864. done:
  21865. return ret;
  21866. }
  21867. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21868. {
  21869. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21870. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21871. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21872. .info = msm_sound_focus_info,
  21873. .get = msm_voice_sound_focus_get,
  21874. .put = msm_voice_sound_focus_put,
  21875. },
  21876. {
  21877. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21878. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21879. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21880. .info = msm_source_tracking_info,
  21881. .get = msm_voice_source_tracking_get,
  21882. },
  21883. {
  21884. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21885. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21886. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21887. .info = msm_sound_focus_info,
  21888. .get = msm_audio_sound_focus_get,
  21889. .put = msm_audio_sound_focus_put,
  21890. },
  21891. {
  21892. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21893. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21894. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21895. .info = msm_source_tracking_info,
  21896. .get = msm_audio_source_tracking_get,
  21897. },
  21898. {
  21899. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21900. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21901. .name = "Sound Focus Voice Tx TERT_MI2S",
  21902. .info = msm_sound_focus_info,
  21903. .get = msm_voice_sound_focus_get,
  21904. .put = msm_voice_sound_focus_put,
  21905. },
  21906. {
  21907. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21908. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21909. .name = "Source Tracking Voice Tx TERT_MI2S",
  21910. .info = msm_source_tracking_info,
  21911. .get = msm_voice_source_tracking_get,
  21912. },
  21913. {
  21914. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21916. .name = "Sound Focus Audio Tx TERT_MI2S",
  21917. .info = msm_sound_focus_info,
  21918. .get = msm_audio_sound_focus_get,
  21919. .put = msm_audio_sound_focus_put,
  21920. },
  21921. {
  21922. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21923. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21924. .name = "Source Tracking Audio Tx TERT_MI2S",
  21925. .info = msm_source_tracking_info,
  21926. .get = msm_audio_source_tracking_get,
  21927. },
  21928. {
  21929. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21931. .name = "Sound Focus Voice Tx INT3_MI2S",
  21932. .info = msm_sound_focus_info,
  21933. .get = msm_voice_sound_focus_get,
  21934. .put = msm_voice_sound_focus_put,
  21935. },
  21936. {
  21937. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21939. .name = "Source Tracking Voice Tx INT3_MI2S",
  21940. .info = msm_source_tracking_info,
  21941. .get = msm_voice_source_tracking_get,
  21942. },
  21943. {
  21944. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21946. .name = "Sound Focus Audio Tx INT3_MI2S",
  21947. .info = msm_sound_focus_info,
  21948. .get = msm_audio_sound_focus_get,
  21949. .put = msm_audio_sound_focus_put,
  21950. },
  21951. {
  21952. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21953. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21954. .name = "Source Tracking Audio Tx INT3_MI2S",
  21955. .info = msm_source_tracking_info,
  21956. .get = msm_audio_source_tracking_get,
  21957. },
  21958. {
  21959. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21961. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21962. .info = msm_sound_focus_info,
  21963. .get = msm_voice_sound_focus_get,
  21964. .put = msm_voice_sound_focus_put,
  21965. },
  21966. {
  21967. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21968. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21969. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21970. .info = msm_source_tracking_info,
  21971. .get = msm_voice_source_tracking_get,
  21972. },
  21973. {
  21974. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21976. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21977. .info = msm_sound_focus_info,
  21978. .get = msm_audio_sound_focus_get,
  21979. .put = msm_audio_sound_focus_put,
  21980. },
  21981. {
  21982. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21983. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21984. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21985. .info = msm_source_tracking_info,
  21986. .get = msm_audio_source_tracking_get,
  21987. },
  21988. {
  21989. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21991. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21992. .info = msm_sound_focus_info,
  21993. .get = msm_voice_sound_focus_get,
  21994. .put = msm_voice_sound_focus_put,
  21995. },
  21996. {
  21997. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21998. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21999. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22000. .info = msm_source_tracking_info,
  22001. .get = msm_voice_source_tracking_get,
  22002. },
  22003. {
  22004. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22006. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22007. .info = msm_sound_focus_info,
  22008. .get = msm_audio_sound_focus_get,
  22009. .put = msm_audio_sound_focus_put,
  22010. },
  22011. {
  22012. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22013. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22014. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22015. .info = msm_source_tracking_info,
  22016. .get = msm_audio_source_tracking_get,
  22017. },
  22018. {
  22019. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22020. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22021. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22022. .info = msm_sound_focus_info,
  22023. .get = msm_voice_sound_focus_get,
  22024. .put = msm_voice_sound_focus_put,
  22025. },
  22026. {
  22027. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22028. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22029. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22030. .info = msm_source_tracking_info,
  22031. .get = msm_voice_source_tracking_get,
  22032. },
  22033. {
  22034. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22036. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22037. .info = msm_sound_focus_info,
  22038. .get = msm_audio_sound_focus_get,
  22039. .put = msm_audio_sound_focus_put,
  22040. },
  22041. {
  22042. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22043. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22044. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22045. .info = msm_source_tracking_info,
  22046. .get = msm_audio_source_tracking_get,
  22047. },
  22048. {
  22049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22050. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22051. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22052. .info = msm_sound_focus_info,
  22053. .get = msm_audio_sound_focus_get,
  22054. .put = msm_audio_sound_focus_put,
  22055. },
  22056. {
  22057. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22058. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22059. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22060. .info = msm_source_tracking_info,
  22061. .get = msm_audio_source_tracking_get,
  22062. },
  22063. {
  22064. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22066. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22067. .info = msm_doa_tracking_mon_info,
  22068. .get = msm_doa_tracking_mon_get,
  22069. },
  22070. };
  22071. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22072. struct snd_ctl_elem_value *ucontrol)
  22073. {
  22074. int ret = 0;
  22075. int item;
  22076. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22077. pr_debug("%s item is %d\n", __func__,
  22078. ucontrol->value.enumerated.item[0]);
  22079. mutex_lock(&routing_lock);
  22080. item = ucontrol->value.enumerated.item[0];
  22081. if (item < e->items) {
  22082. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22083. __func__, e->shift_l, e->values[item]);
  22084. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22085. e->values[item] < MSM_BACKEND_DAI_MAX)
  22086. /* Enable feedback TX path */
  22087. ret = afe_spk_prot_feed_back_cfg(
  22088. msm_bedais[e->values[item]].port_id,
  22089. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22090. else {
  22091. pr_debug("%s values are out of range item %d\n",
  22092. __func__, e->values[item]);
  22093. /* Disable feedback TX path */
  22094. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22095. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22096. else
  22097. ret = -EINVAL;
  22098. }
  22099. } else {
  22100. pr_err("%s item value is out of range item\n", __func__);
  22101. ret = -EINVAL;
  22102. }
  22103. mutex_unlock(&routing_lock);
  22104. return ret;
  22105. }
  22106. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22107. struct snd_ctl_elem_value *ucontrol)
  22108. {
  22109. int ret = 0;
  22110. int item;
  22111. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22112. pr_debug("%s item is %d\n", __func__,
  22113. ucontrol->value.enumerated.item[0]);
  22114. mutex_lock(&routing_lock);
  22115. item = ucontrol->value.enumerated.item[0];
  22116. if (item < e->items) {
  22117. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22118. __func__, e->shift_l, e->values[item]);
  22119. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22120. e->values[item] < MSM_BACKEND_DAI_MAX)
  22121. /* Enable feedback TX path */
  22122. ret = afe_spk_prot_feed_back_cfg(
  22123. msm_bedais[e->values[item]].port_id,
  22124. msm_bedais[e->shift_l].port_id,
  22125. 1, 1, 1);
  22126. else {
  22127. pr_debug("%s values are out of range item %d\n",
  22128. __func__, e->values[item]);
  22129. /* Disable feedback TX path */
  22130. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22131. ret = afe_spk_prot_feed_back_cfg(0,
  22132. 0, 0, 0, 0);
  22133. else
  22134. ret = -EINVAL;
  22135. }
  22136. } else {
  22137. pr_err("%s item value is out of range item\n", __func__);
  22138. ret = -EINVAL;
  22139. }
  22140. mutex_unlock(&routing_lock);
  22141. return ret;
  22142. }
  22143. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22144. struct snd_ctl_elem_value *ucontrol)
  22145. {
  22146. pr_debug("%s\n", __func__);
  22147. return 0;
  22148. }
  22149. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22150. struct snd_ctl_elem_value *ucontrol)
  22151. {
  22152. pr_debug("%s\n", __func__);
  22153. ucontrol->value.enumerated.item[0] = 0;
  22154. return 0;
  22155. }
  22156. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22157. "ZERO", "SLIM4_TX"
  22158. };
  22159. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22160. "ZERO", "SLIM4_TX"
  22161. };
  22162. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22163. "ZERO", "WSA_CDC_DMA_TX_0"
  22164. };
  22165. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22166. "ZERO", "WSA_CDC_DMA_TX_0"
  22167. };
  22168. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22169. "ZERO", "SENARY_TX"
  22170. };
  22171. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22172. "ZERO", "INT5_MI2S_TX"
  22173. };
  22174. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22175. "ZERO", "INT5_MI2S_TX"
  22176. };
  22177. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22178. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22179. };
  22180. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22181. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22182. };
  22183. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22184. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22185. };
  22186. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22187. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22188. };
  22189. static const int mi2s_rx_vi_fb_tx_value[] = {
  22190. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22191. };
  22192. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22193. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22194. };
  22195. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22196. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22197. };
  22198. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22199. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22200. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22201. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22202. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22203. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22204. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22205. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22206. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22207. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22208. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22209. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22210. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22211. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22212. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22213. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22214. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22215. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22216. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22217. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22218. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22219. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22220. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22221. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22222. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22223. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22224. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22225. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22226. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22227. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22228. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22229. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22230. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22231. spkr_prot_put_vi_lch_port);
  22232. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22233. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22234. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22235. spkr_prot_put_vi_rch_port);
  22236. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22237. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22238. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22239. spkr_prot_put_vi_lch_port);
  22240. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22241. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22242. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22243. spkr_prot_put_vi_rch_port);
  22244. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22245. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22246. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22247. spkr_prot_put_vi_lch_port);
  22248. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22249. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22250. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22251. spkr_prot_put_vi_lch_port);
  22252. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22253. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22254. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22255. spkr_prot_put_vi_rch_port);
  22256. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22257. /* Frontend AIF */
  22258. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22259. * Stream name must contains substring of front-end dai name
  22260. */
  22261. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22262. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22263. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22265. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22266. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22268. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22269. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22270. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22272. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22274. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22275. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22276. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22277. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22278. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22280. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22281. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22282. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22284. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22286. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22287. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22288. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22290. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22292. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22293. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22294. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22296. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22298. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22299. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22300. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22302. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22304. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22305. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22306. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22308. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22310. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22311. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22312. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22316. 0, 0, 0, 0),
  22317. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22322. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22323. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22328. 0, 0, 0, 0),
  22329. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22334. 0, 0, 0, 0),
  22335. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22340. 0, 0, 0, 0),
  22341. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22346. 0, 0, 0, 0),
  22347. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22348. 0, 0, 0, 0),
  22349. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22352. 0, 0, 0, 0),
  22353. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22354. 0, 0, 0, 0),
  22355. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22356. 0, 0, 0, 0),
  22357. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22358. 0, 0, 0, 0),
  22359. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22360. 0, 0, 0, 0),
  22361. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22362. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22363. 0, 0, 0, 0),
  22364. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22365. "INT0 MI2S_RX Hostless Playback",
  22366. 0, 0, 0, 0),
  22367. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22368. "INT4 MI2S_RX Hostless Playback",
  22369. 0, 0, 0, 0),
  22370. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22371. "Primary MI2S_RX Hostless Playback",
  22372. 0, 0, 0, 0),
  22373. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22374. "Secondary MI2S_RX Hostless Playback",
  22375. 0, 0, 0, 0),
  22376. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22377. "Tertiary MI2S_RX Hostless Playback",
  22378. 0, 0, 0, 0),
  22379. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22380. "Quaternary MI2S_RX Hostless Playback",
  22381. 0, 0, 0, 0),
  22382. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22383. "Quinary MI2S_RX Hostless Playback",
  22384. 0, 0, 0, 0),
  22385. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22386. "Senary MI2S_RX Hostless Playback",
  22387. 0, 0, 0, 0),
  22388. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22389. 0, 0, 0, 0),
  22390. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22391. 0, 0, 0, 0),
  22392. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22393. 0, 0, 0, 0),
  22394. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22395. 0, 0, 0, 0),
  22396. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22397. 0, 0, 0, 0),
  22398. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22399. "INT3 MI2S_TX Hostless Capture",
  22400. 0, 0, 0, 0),
  22401. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22402. "Tertiary MI2S_TX Hostless Capture",
  22403. 0, 0, 0, 0),
  22404. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22405. "Secondary MI2S_TX Hostless Capture",
  22406. 0, 0, 0, 0),
  22407. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22408. "Primary MI2S_TX Hostless Capture",
  22409. 0, 0, 0, 0),
  22410. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22411. 0, 0, 0, 0),
  22412. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22413. 0, 0, 0, 0),
  22414. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22415. "Quaternary MI2S_TX Hostless Capture",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22418. "Quinary MI2S_TX Hostless Capture",
  22419. 0, 0, 0, 0),
  22420. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22421. "Senary MI2S_TX Hostless Capture",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22424. "Primary TDM0 Hostless Playback",
  22425. 0, 0, 0, 0),
  22426. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22427. "Primary TDM0 Hostless Capture",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22430. "Primary TDM1 Hostless Playback",
  22431. 0, 0, 0, 0),
  22432. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22433. "Primary TDM1 Hostless Capture",
  22434. 0, 0, 0, 0),
  22435. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22436. "Primary TDM2 Hostless Playback",
  22437. 0, 0, 0, 0),
  22438. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22439. "Primary TDM2 Hostless Capture",
  22440. 0, 0, 0, 0),
  22441. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22442. "Primary TDM3 Hostless Playback",
  22443. 0, 0, 0, 0),
  22444. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22445. "Primary TDM3 Hostless Capture",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22448. "Primary TDM4 Hostless Playback",
  22449. 0, 0, 0, 0),
  22450. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22451. "Primary TDM4 Hostless Capture",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22454. "Primary TDM5 Hostless Playback",
  22455. 0, 0, 0, 0),
  22456. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22457. "Primary TDM5 Hostless Capture",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22460. "Primary TDM6 Hostless Playback",
  22461. 0, 0, 0, 0),
  22462. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22463. "Primary TDM6 Hostless Capture",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22466. "Primary TDM7 Hostless Playback",
  22467. 0, 0, 0, 0),
  22468. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22469. "Primary TDM7 Hostless Capture",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22472. "Secondary TDM0 Hostless Playback",
  22473. 0, 0, 0, 0),
  22474. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22475. "Secondary TDM0 Hostless Capture",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22478. "Secondary TDM1 Hostless Playback",
  22479. 0, 0, 0, 0),
  22480. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22481. "Secondary TDM1 Hostless Capture",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22484. "Secondary TDM2 Hostless Playback",
  22485. 0, 0, 0, 0),
  22486. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22487. "Secondary TDM2 Hostless Capture",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22490. "Secondary TDM3 Hostless Playback",
  22491. 0, 0, 0, 0),
  22492. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22493. "Secondary TDM3 Hostless Capture",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22496. "Secondary TDM4 Hostless Playback",
  22497. 0, 0, 0, 0),
  22498. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22499. "Secondary TDM4 Hostless Capture",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22502. "Secondary TDM5 Hostless Playback",
  22503. 0, 0, 0, 0),
  22504. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22505. "Secondary TDM5 Hostless Capture",
  22506. 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22508. "Secondary TDM6 Hostless Playback",
  22509. 0, 0, 0, 0),
  22510. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22511. "Secondary TDM6 Hostless Capture",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22514. "Secondary TDM7 Hostless Playback",
  22515. 0, 0, 0, 0),
  22516. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22517. "Secondary TDM7 Hostless Capture",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22520. "Tertiary TDM0 Hostless Playback",
  22521. 0, 0, 0, 0),
  22522. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22523. "Tertiary TDM0 Hostless Capture",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22526. "Tertiary TDM1 Hostless Playback",
  22527. 0, 0, 0, 0),
  22528. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22529. "Tertiary TDM1 Hostless Capture",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22532. "Tertiary TDM2 Hostless Playback",
  22533. 0, 0, 0, 0),
  22534. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22535. "Tertiary TDM2 Hostless Capture",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22538. "Tertiary TDM3 Hostless Playback",
  22539. 0, 0, 0, 0),
  22540. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22541. "Tertiary TDM3 Hostless Capture",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22544. "Tertiary TDM4 Hostless Playback",
  22545. 0, 0, 0, 0),
  22546. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22547. "Tertiary TDM4 Hostless Capture",
  22548. 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22550. "Tertiary TDM5 Hostless Playback",
  22551. 0, 0, 0, 0),
  22552. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22553. "Tertiary TDM5 Hostless Capture",
  22554. 0, 0, 0, 0),
  22555. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22556. "Tertiary TDM6 Hostless Playback",
  22557. 0, 0, 0, 0),
  22558. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22559. "Tertiary TDM6 Hostless Capture",
  22560. 0, 0, 0, 0),
  22561. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22562. "Tertiary TDM7 Hostless Playback",
  22563. 0, 0, 0, 0),
  22564. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22565. "Tertiary TDM7 Hostless Capture",
  22566. 0, 0, 0, 0),
  22567. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22568. "Quaternary TDM0 Hostless Playback",
  22569. 0, 0, 0, 0),
  22570. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22571. "Quaternary TDM0 Hostless Capture",
  22572. 0, 0, 0, 0),
  22573. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22574. "Quaternary TDM1 Hostless Playback",
  22575. 0, 0, 0, 0),
  22576. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22577. "Quaternary TDM1 Hostless Capture",
  22578. 0, 0, 0, 0),
  22579. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22580. "Quaternary TDM2 Hostless Playback",
  22581. 0, 0, 0, 0),
  22582. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22583. "Quaternary TDM2 Hostless Capture",
  22584. 0, 0, 0, 0),
  22585. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22586. "Quaternary TDM3 Hostless Playback",
  22587. 0, 0, 0, 0),
  22588. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22589. "Quaternary TDM3 Hostless Capture",
  22590. 0, 0, 0, 0),
  22591. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22592. "Quaternary TDM4 Hostless Playback",
  22593. 0, 0, 0, 0),
  22594. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22595. "Quaternary TDM4 Hostless Capture",
  22596. 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22598. "Quaternary TDM5 Hostless Playback",
  22599. 0, 0, 0, 0),
  22600. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22601. "Quaternary TDM5 Hostless Capture",
  22602. 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22604. "Quaternary TDM6 Hostless Playback",
  22605. 0, 0, 0, 0),
  22606. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22607. "Quaternary TDM6 Hostless Capture",
  22608. 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22610. "Quaternary TDM7 Hostless Playback",
  22611. 0, 0, 0, 0),
  22612. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22613. "Quaternary TDM7 Hostless Capture",
  22614. 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22616. "Quinary TDM0 Hostless Playback",
  22617. 0, 0, 0, 0),
  22618. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22619. "Quinary TDM0 Hostless Capture",
  22620. 0, 0, 0, 0),
  22621. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22622. "Quinary TDM1 Hostless Playback",
  22623. 0, 0, 0, 0),
  22624. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22625. "Quinary TDM1 Hostless Capture",
  22626. 0, 0, 0, 0),
  22627. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22628. "Quinary TDM2 Hostless Playback",
  22629. 0, 0, 0, 0),
  22630. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22631. "Quinary TDM2 Hostless Capture",
  22632. 0, 0, 0, 0),
  22633. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22634. "Quinary TDM3 Hostless Playback",
  22635. 0, 0, 0, 0),
  22636. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22637. "Quinary TDM3 Hostless Capture",
  22638. 0, 0, 0, 0),
  22639. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22640. "Quinary TDM4 Hostless Playback",
  22641. 0, 0, 0, 0),
  22642. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22643. "Quinary TDM4 Hostless Capture",
  22644. 0, 0, 0, 0),
  22645. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22646. "Quinary TDM5 Hostless Playback",
  22647. 0, 0, 0, 0),
  22648. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22649. "Quinary TDM5 Hostless Capture",
  22650. 0, 0, 0, 0),
  22651. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22652. "Quinary TDM6 Hostless Playback",
  22653. 0, 0, 0, 0),
  22654. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22655. "Quinary TDM6 Hostless Capture",
  22656. 0, 0, 0, 0),
  22657. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22658. "Quinary TDM7 Hostless Playback",
  22659. 0, 0, 0, 0),
  22660. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22661. "Quinary TDM7 Hostless Capture",
  22662. 0, 0, 0, 0),
  22663. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22664. "Senary TDM0 Hostless Playback",
  22665. 0, 0, 0, 0),
  22666. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22667. "Senary TDM0 Hostless Capture",
  22668. 0, 0, 0, 0),
  22669. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22670. "Senary TDM1 Hostless Playback",
  22671. 0, 0, 0, 0),
  22672. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22673. "Senary TDM1 Hostless Capture",
  22674. 0, 0, 0, 0),
  22675. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22676. "Senary TDM2 Hostless Playback",
  22677. 0, 0, 0, 0),
  22678. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22679. "Senary TDM2 Hostless Capture",
  22680. 0, 0, 0, 0),
  22681. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22682. "Senary TDM3 Hostless Playback",
  22683. 0, 0, 0, 0),
  22684. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22685. "Senary TDM3 Hostless Capture",
  22686. 0, 0, 0, 0),
  22687. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22688. "Senary TDM4 Hostless Playback",
  22689. 0, 0, 0, 0),
  22690. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22691. "Senary TDM4 Hostless Capture",
  22692. 0, 0, 0, 0),
  22693. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22694. "Senary TDM5 Hostless Playback",
  22695. 0, 0, 0, 0),
  22696. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22697. "Senary TDM5 Hostless Capture",
  22698. 0, 0, 0, 0),
  22699. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22700. "Senary TDM6 Hostless Playback",
  22701. 0, 0, 0, 0),
  22702. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22703. "Senary TDM6 Hostless Capture",
  22704. 0, 0, 0, 0),
  22705. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22706. "Senary TDM7 Hostless Playback",
  22707. 0, 0, 0, 0),
  22708. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22709. "Senary TDM7 Hostless Capture",
  22710. 0, 0, 0, 0),
  22711. /* LSM */
  22712. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22713. 0, 0, 0, 0),
  22714. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22715. 0, 0, 0, 0),
  22716. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22717. 0, 0, 0, 0),
  22718. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22719. 0, 0, 0, 0),
  22720. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22721. 0, 0, 0, 0),
  22722. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22723. 0, 0, 0, 0),
  22724. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22725. 0, 0, 0, 0),
  22726. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22727. 0, 0, 0, 0),
  22728. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22729. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22730. /* Backend AIF */
  22731. /* Stream name equals to backend dai link stream name */
  22732. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22733. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22734. 0, 0, 0, 0),
  22735. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22736. 0, 0, 0, 0),
  22737. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22738. 0, 0, 0, 0),
  22739. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22740. 0, 0, 0, 0),
  22741. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22742. 0, 0, 0, 0),
  22743. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22744. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22745. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22746. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22747. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22748. 0, 0, 0, 0),
  22749. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22750. 0, 0, 0, 0),
  22751. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22752. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22753. 0, 0, 0, 0),
  22754. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22755. 0, 0, 0, 0),
  22756. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22757. 0, 0, 0, 0),
  22758. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22759. "Secondary MI2S Playback SD1",
  22760. 0, 0, 0, 0),
  22761. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22762. 0, 0, 0, 0),
  22763. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22764. 0, 0, 0, 0),
  22765. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22766. 0, 0, 0, 0),
  22767. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22768. 0, 0, 0, 0),
  22769. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22770. 0, 0, 0, 0),
  22771. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22772. 0, 0, 0, 0),
  22773. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22774. 0, 0, 0, 0),
  22775. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22776. 0, 0, 0, 0),
  22777. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22778. 0, 0, 0, 0),
  22779. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22780. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22781. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22782. 0, 0, 0, 0),
  22783. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22784. 0, 0, 0, 0),
  22785. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22786. 0, 0, 0, 0),
  22787. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22788. 0, 0, 0, 0),
  22789. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22790. 0, 0, 0, 0),
  22791. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22792. 0, 0, 0, 0),
  22793. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22794. 0, 0, 0, 0),
  22795. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22796. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22797. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22798. 0, 0, 0, 0),
  22799. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22800. 0, 0, 0, 0),
  22801. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22802. 0, 0, 0, 0),
  22803. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22804. 0, 0, 0, 0),
  22805. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22806. 0, 0, 0, 0),
  22807. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22808. 0, 0, 0, 0),
  22809. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22810. 0, 0, 0, 0),
  22811. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22812. 0, 0, 0, 0),
  22813. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22814. 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22816. 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22818. 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22820. 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22822. 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22824. 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22826. 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22828. 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22830. 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22832. 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22834. 0, 0, 0, 0),
  22835. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22836. 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22838. 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22840. 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22842. 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22844. 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22846. 0, 0, 0, 0),
  22847. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22848. 0, 0, 0, 0),
  22849. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22850. 0, 0, 0, 0),
  22851. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22852. 0, 0, 0, 0),
  22853. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22854. 0, 0, 0, 0),
  22855. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22856. 0, 0, 0, 0),
  22857. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22858. 0, 0, 0, 0),
  22859. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22860. 0, 0, 0, 0),
  22861. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22862. 0, 0, 0, 0),
  22863. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22864. 0, 0, 0, 0),
  22865. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22866. 0, 0, 0, 0),
  22867. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22868. 0, 0, 0, 0),
  22869. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22870. 0, 0, 0, 0),
  22871. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22872. 0, 0, 0, 0),
  22873. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22874. 0, 0, 0, 0),
  22875. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22876. 0, 0, 0, 0),
  22877. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22878. 0, 0, 0, 0),
  22879. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22880. 0, 0, 0, 0),
  22881. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22882. 0, 0, 0, 0),
  22883. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22884. 0, 0, 0, 0),
  22885. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22886. 0, 0, 0, 0),
  22887. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22888. 0, 0, 0, 0),
  22889. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22890. 0, 0, 0, 0),
  22891. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22892. 0, 0, 0, 0),
  22893. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22894. 0, 0, 0, 0),
  22895. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22896. 0, 0, 0, 0),
  22897. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22898. 0, 0, 0, 0),
  22899. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22900. 0, 0, 0, 0),
  22901. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22902. 0, 0, 0, 0),
  22903. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22904. 0, 0, 0, 0),
  22905. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22906. 0, 0, 0, 0),
  22907. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22908. 0, 0, 0, 0),
  22909. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22910. 0, 0, 0, 0),
  22911. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22912. 0, 0, 0, 0),
  22913. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22914. 0, 0, 0, 0),
  22915. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22916. 0, 0, 0, 0),
  22917. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22918. 0, 0, 0, 0),
  22919. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22920. 0, 0, 0, 0),
  22921. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22922. 0, 0, 0, 0),
  22923. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22924. 0, 0, 0, 0),
  22925. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22926. 0, 0, 0, 0),
  22927. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22928. 0, 0, 0, 0),
  22929. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22930. 0, 0, 0, 0),
  22931. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22932. 0, 0, 0, 0),
  22933. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22934. 0, 0, 0, 0),
  22935. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22936. 0, 0, 0, 0),
  22937. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22938. 0, 0, 0, 0),
  22939. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22940. 0, 0, 0, 0),
  22941. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22942. 0, 0, 0, 0),
  22943. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22944. 0, 0, 0, 0),
  22945. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22946. 0, 0, 0, 0),
  22947. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22948. 0, 0, 0, 0),
  22949. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22950. 0, 0, 0, 0),
  22951. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22952. 0, 0, 0, 0),
  22953. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22954. 0, 0, 0, 0),
  22955. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22956. 0, 0, 0, 0),
  22957. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22958. 0, 0, 0, 0),
  22959. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22960. 0, 0, 0, 0),
  22961. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22962. 0, 0, 0, 0),
  22963. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22964. 0, 0, 0, 0),
  22965. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22966. 0, 0, 0, 0),
  22967. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22968. 0, 0, 0, 0),
  22969. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22970. 0, 0, 0, 0),
  22971. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22972. 0, 0, 0, 0),
  22973. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22974. 0, 0, 0, 0),
  22975. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22976. 0, 0, 0, 0),
  22977. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22978. 0, 0, 0, 0),
  22979. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22980. 0, 0, 0, 0),
  22981. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22982. 0, 0, 0, 0),
  22983. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22984. 0, 0, 0, 0),
  22985. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22986. 0, 0, 0, 0),
  22987. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22988. 0, 0, 0, 0),
  22989. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22990. 0, 0, 0, 0),
  22991. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22992. 0, 0, 0, 0),
  22993. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22994. 0, 0, 0, 0),
  22995. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22996. 0, 0, 0, 0),
  22997. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22998. 0, 0, 0, 0),
  22999. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23000. 0, 0, 0, 0),
  23001. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23002. 0, 0, 0, 0),
  23003. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23004. 0, 0, 0, 0),
  23005. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23006. 0, 0, 0, 0),
  23007. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23008. 0, 0, 0, 0),
  23009. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23010. 0, 0, 0, 0),
  23011. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23012. 0, 0, 0, 0),
  23013. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23014. 0, 0, 0, 0),
  23015. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23016. 0, 0, 0, 0),
  23017. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23018. 0, 0, 0, 0),
  23019. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23020. 0, 0, 0, 0),
  23021. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23022. 0, 0, 0, 0),
  23023. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23024. 0, 0, 0, 0),
  23025. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23026. 0, 0, 0, 0),
  23027. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23028. 0, 0, 0, 0),
  23029. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23030. 0, 0, 0, 0),
  23031. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23032. 0, 0, 0, 0),
  23033. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23034. 0, 0, 0, 0),
  23035. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23036. 0, 0, 0, 0),
  23037. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23038. 0, 0, 0, 0),
  23039. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23040. 0, 0, 0, 0),
  23041. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23042. 0, 0, 0, 0),
  23043. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23044. 0, 0, 0, 0),
  23045. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23046. 0, 0, 0, 0),
  23047. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23048. 0, 0, 0, 0),
  23049. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23050. 0, 0, 0, 0),
  23051. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23052. 0, 0, 0, 0),
  23053. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23054. 0, 0, 0, 0),
  23055. /* incall */
  23056. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23057. 0, 0, 0, 0),
  23058. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23059. 0, 0, 0, 0),
  23060. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23061. 0, 0, 0, 0),
  23062. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23063. 0, 0, 0, 0),
  23064. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23065. 0, 0, 0, 0),
  23066. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23067. 0, 0, 0, 0),
  23068. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23069. 0, 0, 0, 0),
  23070. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23071. 0, 0, 0, 0),
  23072. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23073. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23074. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23075. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23076. 0, 0, 0, 0),
  23077. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23078. 0, 0, 0, 0),
  23079. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23080. 0, 0, 0, 0),
  23081. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23082. 0, 0, 0, 0),
  23083. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23084. 0, 0, 0, 0),
  23085. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23086. 0, 0, 0, 0),
  23087. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23088. 0, 0, 0, 0),
  23089. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23090. 0, 0, 0, 0),
  23091. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23092. 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23094. 0, 0, 0, 0),
  23095. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23096. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23097. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23098. 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23100. 0, 0, 0, 0),
  23101. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23103. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23104. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23107. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23109. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23110. /* In- call recording */
  23111. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23113. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23114. 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23116. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23118. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23119. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23121. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23122. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23123. /* Switch Definitions */
  23124. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23125. &slim_fm_switch_mixer_controls),
  23126. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23127. &slim1_fm_switch_mixer_controls),
  23128. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23129. &slim3_fm_switch_mixer_controls),
  23130. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23131. &slim4_fm_switch_mixer_controls),
  23132. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23133. &slim6_fm_switch_mixer_controls),
  23134. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23135. &pcm_rx_switch_mixer_controls),
  23136. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23137. &int0_mi2s_rx_switch_mixer_controls),
  23138. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23139. &int4_mi2s_rx_switch_mixer_controls),
  23140. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23141. &pri_mi2s_rx_switch_mixer_controls),
  23142. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23143. &sec_mi2s_rx_switch_mixer_controls),
  23144. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23145. &tert_mi2s_rx_switch_mixer_controls),
  23146. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23147. &quat_mi2s_rx_switch_mixer_controls),
  23148. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23149. &quin_mi2s_rx_switch_mixer_controls),
  23150. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23151. &sco_slim7_switch_mixer_controls),
  23152. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23153. &sen_mi2s_rx_switch_mixer_controls),
  23154. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23155. &hfp_pri_aux_switch_mixer_controls),
  23156. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23157. &hfp_aux_switch_mixer_controls),
  23158. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23159. &hfp_int_switch_mixer_controls),
  23160. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23161. &hfp_slim7_switch_mixer_controls),
  23162. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23163. &usb_switch_mixer_controls),
  23164. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23165. &a2dp_slim7_switch_mixer_controls),
  23166. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23167. &cdc_dma_wsa_switch_mixer_controls),
  23168. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23169. &cdc_dma_rx_switch_mixer_controls),
  23170. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23171. &cdc_dma_rx_1_switch_mixer_controls),
  23172. /* Mixer definitions */
  23173. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23174. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23175. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23176. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23177. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23178. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23179. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23180. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23181. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23182. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23183. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23184. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23185. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23186. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23187. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23188. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23189. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23190. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23191. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23192. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23193. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23194. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23195. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23196. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23197. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23198. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23199. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23200. quaternary_mi2s_rx_mixer_controls,
  23201. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23202. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23203. tertiary_mi2s_rx_mixer_controls,
  23204. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23205. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23206. secondary_mi2s_rx_mixer_controls,
  23207. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23208. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23209. secondary_mi2s_rx2_mixer_controls,
  23210. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23211. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23212. primary_mi2s_rx_mixer_controls,
  23213. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23214. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23215. int0_mi2s_rx_mixer_controls,
  23216. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23217. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23218. int4_mi2s_rx_mixer_controls,
  23219. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23220. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23221. quinary_mi2s_rx_mixer_controls,
  23222. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23223. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23224. senary_mi2s_rx_mixer_controls,
  23225. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23226. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23227. pri_tdm_rx_0_mixer_controls,
  23228. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23229. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23230. pri_tdm_rx_1_mixer_controls,
  23231. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23232. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23233. pri_tdm_rx_2_mixer_controls,
  23234. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23235. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23236. pri_tdm_rx_3_mixer_controls,
  23237. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23238. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23239. pri_tdm_tx_0_mixer_controls,
  23240. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23241. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23242. sec_tdm_rx_0_mixer_controls,
  23243. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23244. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23245. sec_tdm_rx_1_mixer_controls,
  23246. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23247. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23248. sec_tdm_rx_2_mixer_controls,
  23249. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23250. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23251. sec_tdm_rx_3_mixer_controls,
  23252. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23253. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23254. sec_tdm_tx_0_mixer_controls,
  23255. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23256. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23257. tert_tdm_rx_0_mixer_controls,
  23258. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23259. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23260. tert_tdm_tx_0_mixer_controls,
  23261. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23262. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23263. tert_tdm_rx_1_mixer_controls,
  23264. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23265. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23266. tert_tdm_rx_2_mixer_controls,
  23267. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23268. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23269. tert_tdm_rx_3_mixer_controls,
  23270. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23271. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23272. tert_tdm_rx_4_mixer_controls,
  23273. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23274. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23275. quat_tdm_rx_0_mixer_controls,
  23276. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23277. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23278. quat_tdm_tx_0_mixer_controls,
  23279. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23280. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23281. quat_tdm_rx_1_mixer_controls,
  23282. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23283. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23284. quat_tdm_rx_2_mixer_controls,
  23285. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23286. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23287. quat_tdm_rx_3_mixer_controls,
  23288. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23289. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23290. quin_tdm_rx_0_mixer_controls,
  23291. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23292. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23293. quin_tdm_tx_0_mixer_controls,
  23294. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23295. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23296. quin_tdm_rx_1_mixer_controls,
  23297. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23298. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23299. quin_tdm_tx_1_mixer_controls,
  23300. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23301. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23302. quin_tdm_rx_2_mixer_controls,
  23303. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23304. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23305. quin_tdm_tx_2_mixer_controls,
  23306. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23307. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23308. quin_tdm_rx_3_mixer_controls,
  23309. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23310. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23311. quin_tdm_tx_3_mixer_controls,
  23312. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23313. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23314. sen_tdm_tx_0_mixer_controls,
  23315. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23316. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23317. sen_tdm_rx_0_mixer_controls,
  23318. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23319. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23320. sen_tdm_rx_1_mixer_controls,
  23321. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23322. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23323. sen_tdm_rx_2_mixer_controls,
  23324. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23325. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23326. sen_tdm_rx_3_mixer_controls,
  23327. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23328. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23329. pri_meta_mi2s_rx_mixer_controls,
  23330. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23331. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23332. sec_meta_mi2s_rx_mixer_controls,
  23333. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23334. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23335. wsa_cdc_dma_rx_0_mixer_controls,
  23336. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23337. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23338. wsa_cdc_dma_rx_1_mixer_controls,
  23339. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23340. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23341. rx_cdc_dma_rx_0_mixer_controls,
  23342. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23343. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23344. rx_cdc_dma_rx_1_mixer_controls,
  23345. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23346. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23347. rx_cdc_dma_rx_2_mixer_controls,
  23348. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23349. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23350. rx_cdc_dma_rx_3_mixer_controls,
  23351. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23352. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23353. rx_cdc_dma_rx_4_mixer_controls,
  23354. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23355. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23356. rx_cdc_dma_rx_5_mixer_controls,
  23357. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23358. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23359. rx_cdc_dma_rx_6_mixer_controls,
  23360. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23361. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23362. rx_cdc_dma_rx_7_mixer_controls,
  23363. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23364. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23365. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23366. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23367. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23368. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23369. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23370. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23371. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23372. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23373. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23374. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23375. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23376. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23377. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23378. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23379. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23380. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23381. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23382. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23383. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23384. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23385. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23386. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23387. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23388. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23389. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23390. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23391. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23392. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23393. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23394. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23395. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23396. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23397. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23398. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23399. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23400. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23401. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23402. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23403. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23404. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23405. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23406. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23407. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23408. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23409. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23410. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23411. tert_auxpcm_rx_mixer_controls,
  23412. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23413. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23414. quat_auxpcm_rx_mixer_controls,
  23415. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23416. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23417. quin_auxpcm_rx_mixer_controls,
  23418. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23419. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23420. sen_auxpcm_rx_mixer_controls,
  23421. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23422. /* incall */
  23423. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23424. incall_music_delivery_mixer_controls,
  23425. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23426. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23427. incall_music2_delivery_mixer_controls,
  23428. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23429. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23430. slimbus_4_rx_mixer_controls,
  23431. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23432. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23433. slimbus_6_rx_mixer_controls,
  23434. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23435. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23436. usb_audio_rx_mixer_controls,
  23437. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23438. /* Voice Mixer */
  23439. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23440. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23441. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23442. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23443. SND_SOC_NOPM, 0, 0,
  23444. sec_i2s_rx_voice_mixer_controls,
  23445. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23446. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23447. SND_SOC_NOPM, 0, 0,
  23448. sec_mi2s_rx_voice_mixer_controls,
  23449. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23450. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23451. SND_SOC_NOPM, 0, 0,
  23452. slimbus_rx_voice_mixer_controls,
  23453. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23454. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23455. SND_SOC_NOPM, 0, 0,
  23456. bt_sco_rx_voice_mixer_controls,
  23457. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23458. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23459. SND_SOC_NOPM, 0, 0,
  23460. afe_pcm_rx_voice_mixer_controls,
  23461. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23462. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23463. SND_SOC_NOPM, 0, 0,
  23464. aux_pcm_rx_voice_mixer_controls,
  23465. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23466. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23467. SND_SOC_NOPM, 0, 0,
  23468. sec_aux_pcm_rx_voice_mixer_controls,
  23469. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23470. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23471. SND_SOC_NOPM, 0, 0,
  23472. tert_aux_pcm_rx_voice_mixer_controls,
  23473. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23474. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23475. SND_SOC_NOPM, 0, 0,
  23476. quat_aux_pcm_rx_voice_mixer_controls,
  23477. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23478. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23479. SND_SOC_NOPM, 0, 0,
  23480. quin_aux_pcm_rx_voice_mixer_controls,
  23481. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23482. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23483. SND_SOC_NOPM, 0, 0,
  23484. sen_aux_pcm_rx_voice_mixer_controls,
  23485. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23486. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23487. SND_SOC_NOPM, 0, 0,
  23488. hdmi_rx_voice_mixer_controls,
  23489. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23490. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23491. SND_SOC_NOPM, 0, 0,
  23492. mi2s_rx_voice_mixer_controls,
  23493. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23494. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23495. SND_SOC_NOPM, 0, 0,
  23496. pri_mi2s_rx_voice_mixer_controls,
  23497. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23498. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23499. SND_SOC_NOPM, 0, 0,
  23500. int0_mi2s_rx_voice_mixer_controls,
  23501. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23502. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23503. SND_SOC_NOPM, 0, 0,
  23504. int4_mi2s_rx_voice_mixer_controls,
  23505. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23506. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23507. SND_SOC_NOPM, 0, 0,
  23508. tert_mi2s_rx_voice_mixer_controls,
  23509. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23510. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23511. SND_SOC_NOPM, 0, 0,
  23512. quat_mi2s_rx_voice_mixer_controls,
  23513. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23514. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23515. SND_SOC_NOPM, 0, 0,
  23516. quin_mi2s_rx_voice_mixer_controls,
  23517. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23518. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23519. SND_SOC_NOPM, 0, 0,
  23520. pri_tdm_rx_0_voice_mixer_controls,
  23521. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23522. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23523. SND_SOC_NOPM, 0, 0,
  23524. pri_tdm_rx_1_voice_mixer_controls,
  23525. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23526. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23527. SND_SOC_NOPM, 0, 0,
  23528. pri_tdm_rx_2_voice_mixer_controls,
  23529. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23530. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23531. SND_SOC_NOPM, 0, 0,
  23532. pri_tdm_rx_3_voice_mixer_controls,
  23533. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23534. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23535. SND_SOC_NOPM, 0, 0,
  23536. sen_mi2s_rx_voice_mixer_controls,
  23537. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23538. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23539. SND_SOC_NOPM, 0, 0,
  23540. quat_tdm_rx_2_voice_mixer_controls,
  23541. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23542. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  23543. SND_SOC_NOPM, 0, 0,
  23544. quin_tdm_rx_2_voice_mixer_controls,
  23545. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  23546. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23547. SND_SOC_NOPM, 0, 0,
  23548. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23549. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23550. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23551. SND_SOC_NOPM, 0, 0,
  23552. rx_cdc_dma_rx_0_voice_mixer_controls,
  23553. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23554. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  23555. SND_SOC_NOPM, 0, 0,
  23556. rx_cdc_dma_rx_1_voice_mixer_controls,
  23557. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  23558. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23559. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23560. ARRAY_SIZE(tx_voip_mixer_controls)),
  23561. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23562. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23563. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23564. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23565. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23566. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23567. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23568. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23569. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23570. int_bt_a2dp_rx_mixer_controls,
  23571. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23572. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23573. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23574. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23575. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23576. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23577. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23578. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23579. tx_voice2_stub_mixer_controls,
  23580. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23581. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23582. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23583. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23584. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23585. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23586. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23587. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23588. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23589. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23590. SND_SOC_NOPM, 0, 0,
  23591. slimbus_6_rx_voice_mixer_controls,
  23592. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23593. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23594. slimbus_7_rx_voice_mixer_controls,
  23595. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23596. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23597. slimbus_8_rx_voice_mixer_controls,
  23598. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23599. /* port mixer */
  23600. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23601. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23602. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23603. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23604. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23605. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23606. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23607. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23608. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23609. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23610. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23611. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23612. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23613. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23614. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23615. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23616. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23617. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23618. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23619. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23620. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23621. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23622. sbus_1_rx_port_mixer_controls,
  23623. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23624. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23625. bt_sco_rx_port_mixer_controls,
  23626. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23627. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23628. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23629. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23630. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23631. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23632. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23633. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23634. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23635. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23636. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23637. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23638. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23639. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23640. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23641. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23642. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23643. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23644. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23645. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23646. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23647. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23648. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23649. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23650. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23651. primary_mi2s_rx_port_mixer_controls,
  23652. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23653. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23654. sec_mi2s_rx_port_mixer_controls,
  23655. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23656. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23657. tert_mi2s_rx_port_mixer_controls,
  23658. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23659. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23660. quat_mi2s_rx_port_mixer_controls,
  23661. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23662. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23663. quin_mi2s_rx_port_mixer_controls,
  23664. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23665. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23666. sen_mi2s_rx_port_mixer_controls,
  23667. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23668. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23669. pri_tdm_rx_0_port_mixer_controls,
  23670. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23671. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23672. pri_tdm_rx_1_port_mixer_controls,
  23673. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23674. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23675. pri_tdm_rx_2_port_mixer_controls,
  23676. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23677. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23678. pri_tdm_rx_3_port_mixer_controls,
  23679. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23680. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23681. sec_tdm_rx_0_port_mixer_controls,
  23682. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23683. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23684. sec_tdm_rx_1_port_mixer_controls,
  23685. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23686. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23687. sec_tdm_rx_2_port_mixer_controls,
  23688. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23689. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23690. sec_tdm_rx_3_port_mixer_controls,
  23691. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23692. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23693. sec_tdm_rx_7_port_mixer_controls,
  23694. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23695. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23696. tert_tdm_rx_0_port_mixer_controls,
  23697. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23698. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23699. tert_tdm_rx_1_port_mixer_controls,
  23700. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23701. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23702. tert_tdm_rx_2_port_mixer_controls,
  23703. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23704. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23705. tert_tdm_rx_3_port_mixer_controls,
  23706. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23707. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23708. quat_tdm_rx_0_port_mixer_controls,
  23709. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23710. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23711. quat_tdm_rx_1_port_mixer_controls,
  23712. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23713. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23714. quat_tdm_rx_2_port_mixer_controls,
  23715. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23716. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23717. quat_tdm_rx_3_port_mixer_controls,
  23718. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23719. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23720. quat_tdm_rx_7_port_mixer_controls,
  23721. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23722. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23723. quin_tdm_rx_0_port_mixer_controls,
  23724. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23725. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23726. quin_tdm_rx_1_port_mixer_controls,
  23727. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23728. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23729. quin_tdm_rx_2_port_mixer_controls,
  23730. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23731. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23732. quin_tdm_rx_3_port_mixer_controls,
  23733. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23734. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23735. quin_tdm_rx_7_port_mixer_controls,
  23736. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23737. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23738. sen_tdm_rx_0_port_mixer_controls,
  23739. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23740. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23741. sen_tdm_rx_1_port_mixer_controls,
  23742. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23743. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23744. sen_tdm_rx_2_port_mixer_controls,
  23745. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23746. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23747. sen_tdm_rx_3_port_mixer_controls,
  23748. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23749. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23750. int0_mi2s_rx_port_mixer_controls,
  23751. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23752. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23753. int4_mi2s_rx_port_mixer_controls,
  23754. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23755. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23756. wsa_cdc_dma_rx_0_port_mixer_controls,
  23757. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23758. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23759. rx_cdc_dma_rx_0_port_mixer_controls,
  23760. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23761. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23762. rx_cdc_dma_rx_1_port_mixer_controls,
  23763. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23765. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23766. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23767. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23768. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23769. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23771. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23772. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23773. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23774. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23775. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23777. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23778. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23779. /* lsm mixer definitions */
  23780. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23781. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23783. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23784. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23785. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23786. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23787. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23789. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23790. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23791. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23792. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23793. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23794. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23795. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23796. /* Virtual Pins to force backends ON atm */
  23797. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23798. SND_SOC_DAPM_INPUT("BE_IN"),
  23799. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23800. &slim0_rx_vi_fb_lch_mux),
  23801. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23802. &slim0_rx_vi_fb_rch_mux),
  23803. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23804. &wsa_rx_0_vi_fb_lch_mux),
  23805. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23806. &wsa_rx_0_vi_fb_rch_mux),
  23807. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23808. &mi2s_rx_vi_fb_mux),
  23809. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23810. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23811. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23812. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23813. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23814. &voc_ext_ec_mux),
  23815. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23816. &ext_ec_ref_mux_ul1),
  23817. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23818. &ext_ec_ref_mux_ul2),
  23819. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23820. &ext_ec_ref_mux_ul3),
  23821. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23822. &ext_ec_ref_mux_ul4),
  23823. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23824. &ext_ec_ref_mux_ul5),
  23825. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23826. &ext_ec_ref_mux_ul6),
  23827. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23828. &ext_ec_ref_mux_ul8),
  23829. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23830. &ext_ec_ref_mux_ul9),
  23831. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23832. &ext_ec_ref_mux_ul10),
  23833. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23834. &ext_ec_ref_mux_ul16),
  23835. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23836. &ext_ec_ref_mux_ul17),
  23837. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23838. &ext_ec_ref_mux_ul18),
  23839. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23840. &ext_ec_ref_mux_ul19),
  23841. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23842. &ext_ec_ref_mux_ul28),
  23843. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23844. &ext_ec_ref_mux_ul29),
  23845. };
  23846. static const struct snd_soc_dapm_route intercon[] = {
  23847. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23848. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23849. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23850. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23851. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23852. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23853. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23854. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23855. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23856. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23857. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23858. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23859. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23860. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23861. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23862. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23863. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23864. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23865. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23866. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23867. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23868. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23869. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23870. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23871. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23872. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23873. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23874. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23875. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23876. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23877. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23878. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23879. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23880. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23881. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23882. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23883. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23884. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23885. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23886. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23887. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23888. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23889. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23890. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23891. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23892. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23893. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23894. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23895. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23896. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23897. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23898. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23899. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23900. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23901. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23902. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23903. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23904. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23905. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23906. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23907. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23908. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23909. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23910. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23911. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23912. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23913. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23914. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23915. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23916. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23917. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23918. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23919. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23920. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23921. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23922. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23923. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23924. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23925. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23926. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23927. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23928. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23929. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23930. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23931. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23932. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23933. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23934. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23935. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23936. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23937. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23938. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23939. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23940. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23941. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23942. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23943. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23944. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23945. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23946. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23947. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23948. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23949. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23950. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23951. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23952. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23953. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23954. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23955. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23956. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23957. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23958. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23959. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23960. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23961. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23962. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23963. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23964. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23965. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23966. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23967. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23968. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23969. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23970. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23971. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23972. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23973. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23974. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23975. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23976. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23977. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23978. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23979. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23980. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23981. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23982. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23983. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23984. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23985. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23986. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23987. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23988. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23989. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23990. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23991. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23992. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23993. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23994. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23995. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23996. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23997. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23998. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23999. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24000. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24001. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24002. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24003. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24004. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24005. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24006. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24007. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24008. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24009. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24010. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24011. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24012. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24013. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24014. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24015. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24016. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24017. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24018. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24019. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24020. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24021. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24022. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24023. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24024. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24025. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24026. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24027. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24028. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24029. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24030. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24031. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24032. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24033. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24034. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24035. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24036. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24037. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24038. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24039. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24040. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24041. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24042. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24043. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24044. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24045. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24046. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24047. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24048. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24049. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24050. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24051. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24052. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24053. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24054. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24055. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24056. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24057. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24058. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24059. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24060. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24061. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24062. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24063. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24064. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24065. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24066. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24067. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24068. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24069. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24070. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24071. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24072. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24073. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24074. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24075. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24076. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24077. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24078. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24079. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24080. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24081. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24082. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24083. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24084. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24085. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24086. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24087. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24088. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24089. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24090. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24091. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24092. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24093. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24094. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24095. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24096. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24097. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24098. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24099. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24100. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24101. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24102. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24103. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24104. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24105. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24106. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24107. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24108. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24109. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24110. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24111. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24112. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24113. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24114. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24115. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24116. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24117. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24118. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24119. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24120. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24121. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24122. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24123. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24124. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24125. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24126. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24127. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24128. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24129. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24130. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24131. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24132. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24133. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24134. {"HDMI", NULL, "HDMI Mixer"},
  24135. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24136. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24137. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24138. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24139. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24140. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24141. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24142. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24143. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24144. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24145. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24146. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24147. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24148. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24149. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24150. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24151. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24152. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24153. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24154. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24155. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24156. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24157. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24158. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24159. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24160. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24161. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24162. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24163. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24164. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24165. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24166. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24167. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24168. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24169. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24170. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24171. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24172. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24173. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24174. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24175. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24176. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24177. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24178. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24179. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24180. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24181. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24182. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24183. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24184. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24185. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24186. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24187. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24188. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24189. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24190. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24191. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24192. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24193. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24194. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24195. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24196. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24197. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24198. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24199. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24200. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24201. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24202. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24203. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24204. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24205. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24206. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24207. /* incall */
  24208. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24209. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24210. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24211. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24212. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24213. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24214. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24215. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24216. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24217. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24218. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24219. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24220. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24221. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24222. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24223. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24224. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24225. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24226. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24227. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24228. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24229. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24230. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24231. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24232. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24233. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24234. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24235. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24236. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24237. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24238. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24239. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24240. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24241. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24242. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24243. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24244. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24245. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24246. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24247. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24248. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24249. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24250. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24251. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24252. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24253. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24254. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24255. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24256. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24257. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24258. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24259. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24260. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24261. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24262. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24263. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24264. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24265. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24266. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24267. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24268. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24269. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24270. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24271. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24272. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24273. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24274. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24275. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24276. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24277. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24278. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24279. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24280. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24281. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24282. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24283. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24284. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24285. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24286. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24287. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24288. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24289. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24290. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24291. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24292. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24293. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24294. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24295. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24296. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24297. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24298. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24299. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24300. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24301. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24302. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24303. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24304. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24305. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24306. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24307. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24308. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24309. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24310. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24311. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24312. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24313. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24314. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24315. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24316. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24317. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24318. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24319. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24320. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24321. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24322. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24323. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24324. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24325. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24326. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24327. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24328. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24329. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24330. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24331. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24332. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24333. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24334. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24335. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24336. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24337. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24338. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24339. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24340. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24341. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24342. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24343. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24344. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24345. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24346. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24347. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24348. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24349. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24350. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24351. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24352. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24353. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24354. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24355. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24356. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24357. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24358. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24359. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24360. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24361. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24362. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24363. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24364. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24365. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24366. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24367. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24368. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24369. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24370. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24371. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24372. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24373. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24374. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24375. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24376. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24377. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24378. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24379. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24380. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24381. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24382. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24383. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24384. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24385. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24386. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24387. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24388. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24389. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24390. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24391. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24392. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24393. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24394. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24395. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24396. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24397. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24398. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24399. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24400. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24401. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24402. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24403. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24404. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24405. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24406. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24407. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24408. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24409. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24410. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24411. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24412. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24413. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24414. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24415. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24416. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24417. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24418. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24419. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24420. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24421. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24422. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24423. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24424. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24425. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24426. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24427. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24428. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24429. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24430. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24431. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24432. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24433. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24434. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24435. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24436. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24437. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24438. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24439. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24440. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24441. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24442. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24443. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24444. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24445. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24446. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24447. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24448. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24449. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24450. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24451. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24452. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24453. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24454. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24455. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24456. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24457. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24458. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24459. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24460. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24461. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24462. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24463. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24464. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24465. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24466. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24467. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24468. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24469. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  24470. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24471. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24472. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24473. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24474. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24475. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24476. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24477. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24478. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24479. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24480. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24481. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24482. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24483. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24484. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24485. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24486. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24487. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24488. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24489. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24490. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24491. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24492. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24493. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24494. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24495. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24496. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24497. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24498. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24499. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24500. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24501. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24502. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24503. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24504. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24505. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24506. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24507. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24508. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24509. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24510. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24511. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24512. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24513. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24514. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24515. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24516. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24517. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24518. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24519. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24520. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24521. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24522. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24523. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24524. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24525. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24526. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24527. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24528. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24529. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24530. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24531. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24532. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24533. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24534. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24535. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24536. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24537. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24538. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24539. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24540. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24541. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24542. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24543. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24544. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24545. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24546. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24547. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24548. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24549. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24550. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24551. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24552. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24553. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24554. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24555. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24556. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24557. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24558. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24559. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24560. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24561. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24562. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24563. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24564. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24565. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24566. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24567. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24568. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24569. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24570. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24571. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24572. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24573. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24574. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24575. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24576. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24577. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24578. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24579. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24580. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24581. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24582. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24583. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24584. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24585. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24586. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24587. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24588. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24589. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24590. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24591. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24592. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24593. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24594. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24595. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24596. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24597. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24598. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24599. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24600. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24601. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24602. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24603. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24604. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24605. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24606. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24607. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24608. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24609. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24610. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24611. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24612. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24613. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24614. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24615. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24616. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24617. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24618. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24619. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24620. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24621. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24622. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24623. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24624. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24625. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24626. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24627. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24628. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24629. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24630. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24631. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24632. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24633. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24634. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24635. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24636. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24637. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24638. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24639. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24640. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24641. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24642. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24643. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24644. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24645. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24646. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24647. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24648. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24649. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24650. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24651. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24652. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24653. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24654. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24655. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24656. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24657. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24658. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24659. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24660. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24661. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24662. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24663. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24664. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24665. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24666. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24667. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24668. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24669. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24670. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24671. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24672. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24673. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24674. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24675. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24676. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24677. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24678. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24679. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24680. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24681. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24682. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24683. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24684. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24685. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24686. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24687. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24688. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24689. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24690. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24691. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24692. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24693. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24694. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24695. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24696. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24697. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24698. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24699. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24700. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24701. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24702. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24703. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24704. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24705. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24706. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24707. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24708. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24709. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24710. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24711. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24712. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24713. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24714. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24715. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24716. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24717. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24718. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24719. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24720. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24721. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24722. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24723. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24724. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24725. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24726. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24727. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24728. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24729. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24730. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24731. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24732. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24733. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24734. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24735. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24736. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24737. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24738. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24739. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24740. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24741. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24742. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24743. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24744. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24745. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24746. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24747. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24748. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24749. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24750. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24751. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24752. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24753. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24754. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24755. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24756. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24757. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24758. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24759. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24760. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24761. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24762. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24763. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24764. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24765. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24766. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24767. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24768. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24769. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24770. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24771. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24772. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24773. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24774. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24775. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24776. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24777. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24778. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24779. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24780. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24781. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24782. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24783. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24784. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24785. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24786. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24787. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24788. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24789. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24790. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24791. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24792. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24793. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24794. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24795. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24796. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24797. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24798. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24799. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24800. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24801. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24802. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24803. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24804. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24805. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24806. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24807. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24808. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24809. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24810. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24811. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24812. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24813. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24814. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24815. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24816. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24817. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24818. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24819. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24820. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24821. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24822. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24823. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24824. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24825. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24826. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24827. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24828. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24829. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24830. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24831. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24832. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24833. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24834. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24835. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24836. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24837. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24838. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24839. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24840. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24841. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24842. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24843. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24844. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24845. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24846. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24847. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24848. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24849. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24850. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24851. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24852. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24853. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24854. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24855. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24856. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24857. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24858. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24859. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24860. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24861. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24862. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24863. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24864. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24865. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24866. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24867. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24868. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24869. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24870. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24871. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24872. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24873. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24874. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24875. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24876. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24877. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24878. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24879. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24880. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24881. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24882. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24883. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24884. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24885. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24886. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24887. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24888. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24889. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24890. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24891. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24892. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24893. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24894. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24895. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24896. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24897. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24898. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24899. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24900. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24901. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24902. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24903. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24904. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24905. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24906. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24907. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24908. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24909. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24910. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24911. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24912. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24913. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24914. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24915. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24916. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24917. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24918. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24919. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24920. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24921. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24922. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24923. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24924. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24925. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24926. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24927. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24928. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24929. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24930. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24931. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24932. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24933. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24934. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24935. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24936. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24937. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24938. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24939. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24940. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24941. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24942. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24943. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24944. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24945. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24946. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24947. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24948. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24949. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24950. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24951. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24952. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24953. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24954. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24955. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24956. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24957. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24958. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24959. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24960. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24961. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24962. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24963. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24964. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24965. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24966. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24967. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24968. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24969. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24970. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24971. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24972. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24973. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24974. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24975. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24976. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24977. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24978. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24979. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24980. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24981. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24982. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24983. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24984. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24985. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24986. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24987. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24988. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24989. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24990. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24991. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24992. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24993. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24994. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24995. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24996. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24997. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24998. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24999. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25000. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25001. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25002. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25003. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25004. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25005. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25006. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25007. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25008. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25009. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25010. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25011. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25012. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25013. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25014. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25015. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25016. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25017. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25018. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25019. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25020. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25021. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25022. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25023. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25024. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25025. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25026. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25027. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25028. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25029. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25030. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25031. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25032. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25033. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25034. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25035. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25036. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25037. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25038. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25039. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25040. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25041. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25042. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25043. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25044. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25045. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25046. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25047. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25048. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25049. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25050. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25051. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25052. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25053. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25054. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25055. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25056. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25057. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25058. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25059. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25060. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25061. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25062. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25063. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25064. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25065. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25066. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25067. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25068. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25069. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25070. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25071. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25072. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25073. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25074. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25075. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25076. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25077. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25078. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25079. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25080. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25081. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25082. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25083. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25084. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25085. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25086. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25087. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25088. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25089. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25090. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25091. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25092. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25093. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25094. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25095. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25096. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25097. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25098. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25099. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25100. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25101. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25102. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25103. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25104. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25105. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25106. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25107. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25108. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25109. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25110. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25111. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25112. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25113. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25114. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25115. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25116. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25117. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25118. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25119. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25120. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25121. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25122. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25123. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25124. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25125. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25126. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25127. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25128. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25129. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25130. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25131. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25132. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25133. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25134. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25135. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25136. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25137. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25138. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25139. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25140. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25141. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25142. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25143. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25144. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25145. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25146. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25147. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25148. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25149. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25150. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25151. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25152. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25153. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25154. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25155. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25156. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25157. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25158. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25159. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25160. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25161. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25162. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25163. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25164. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25165. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25166. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25167. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25168. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25169. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25170. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25171. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25172. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25173. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25174. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25175. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25176. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25177. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25178. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25179. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25180. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25181. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25182. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25183. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25184. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25185. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25186. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25187. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25188. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25189. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25190. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25191. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25192. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25193. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25194. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25195. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25196. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25197. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25198. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25199. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25200. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25201. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25202. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25203. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25204. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25205. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25206. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25207. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25208. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25209. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25210. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25211. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25212. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25213. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25214. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25215. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25216. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25217. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25218. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25219. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25220. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25221. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25222. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25223. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25224. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25225. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25226. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25227. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25228. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25229. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25230. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25231. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25232. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25233. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25234. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25235. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25236. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25237. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25238. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25239. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25240. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25241. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25242. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25243. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25244. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25245. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25246. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25247. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25248. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25249. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25250. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25251. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25252. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25253. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25254. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25255. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25256. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25257. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25258. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25259. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25260. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25261. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25262. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25263. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25264. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25265. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25266. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25267. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25268. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25269. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25270. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25271. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25272. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25273. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25274. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25275. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25276. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25277. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25278. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25279. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25280. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25281. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25282. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25283. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25284. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25285. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25286. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25287. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25288. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25289. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25290. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25291. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25292. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25293. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25294. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25295. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25296. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25297. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25298. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25299. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25300. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25301. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25302. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25303. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25304. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25305. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25306. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25307. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25308. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25309. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25310. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25311. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25312. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25313. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25314. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25315. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25316. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25317. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25318. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25319. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25320. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25321. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25322. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25323. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25324. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25325. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25326. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25327. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25328. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25329. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25330. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25331. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25332. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25333. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25334. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25335. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25336. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25337. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25338. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25339. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25340. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25341. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25342. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25343. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25344. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25345. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25346. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25347. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25348. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25349. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25350. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25351. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25352. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25353. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25354. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25355. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25356. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25357. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25358. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25359. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25360. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25361. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25362. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25363. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25364. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25365. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25366. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25367. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25368. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25369. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25370. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25371. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25372. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25373. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25374. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25375. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25376. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25377. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25378. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25379. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25380. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25381. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25382. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25383. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25384. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25385. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25386. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25387. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25388. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25389. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25390. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25391. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25392. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25393. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25394. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25395. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25396. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25397. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25398. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25399. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25400. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25401. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25402. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25403. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25404. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25405. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25406. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25407. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25408. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25409. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25410. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25411. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25412. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25413. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25414. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25415. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25416. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25417. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25418. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25419. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25420. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25421. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25422. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25423. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25424. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25425. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25426. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25427. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25428. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25429. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25430. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25431. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25432. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25433. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25434. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25435. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25436. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25437. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25438. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25439. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25440. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25441. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25442. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25443. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25444. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25445. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25446. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25447. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25448. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25449. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25450. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25451. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25452. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25453. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25454. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25455. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25456. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25457. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25458. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25459. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25460. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25461. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25462. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25463. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25464. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25465. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25466. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25467. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25468. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25469. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25470. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25471. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25472. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25473. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25474. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25475. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25476. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25477. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25478. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25479. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25480. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25481. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25482. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25483. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25484. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25485. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25486. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25487. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25488. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25489. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25490. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25491. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25492. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25493. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25494. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25495. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25496. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25497. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25498. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25499. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25500. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25501. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25502. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25503. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25504. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25505. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25506. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25507. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25508. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25509. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25510. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25511. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25512. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25513. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25514. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25515. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25516. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25517. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25518. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25519. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25520. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25521. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25522. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25523. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25524. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25525. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25526. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25527. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25528. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25529. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25530. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25531. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25532. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25533. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25534. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25535. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25536. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25537. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25538. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25539. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25540. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25541. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25542. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25543. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25544. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25545. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25546. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25547. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25548. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25549. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25550. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25551. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25552. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25553. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25554. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25555. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25556. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25557. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25558. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25559. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25560. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25561. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25562. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25563. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25564. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25565. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25566. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25567. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25568. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25569. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25570. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25571. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25572. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25573. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25574. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25575. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25576. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25577. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25578. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25579. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25580. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25581. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25582. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25583. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25584. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25585. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25586. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25587. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25588. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25589. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25590. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25591. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25592. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25593. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25594. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25595. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25596. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25597. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25598. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25599. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25600. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25601. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25602. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25603. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25604. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25605. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25606. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25607. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25608. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25609. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25610. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25611. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25612. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25613. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25614. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25615. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25616. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25617. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25618. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25619. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25620. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25621. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25622. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25623. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25624. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25625. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25626. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25627. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25628. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25629. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25630. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25631. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25632. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25633. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25634. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25635. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25636. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25637. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25638. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25639. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25640. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25641. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25642. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25643. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25644. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25645. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25646. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25647. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25648. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25649. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25650. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25651. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25652. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25653. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25654. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25655. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25656. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25657. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25658. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25659. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25660. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25661. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25662. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25663. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25664. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25665. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25666. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25667. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25668. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25669. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25670. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25671. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25672. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25673. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25674. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25675. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25676. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25677. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25678. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25679. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25680. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25681. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25682. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25683. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25684. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25685. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25686. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25687. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25688. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25689. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25690. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25691. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25692. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25693. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25694. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25695. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25696. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25697. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25698. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25699. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25700. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25701. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25702. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25703. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25704. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25705. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25706. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25707. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25708. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25709. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25710. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25711. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25712. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25713. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25714. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25715. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25716. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25717. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25718. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25719. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25720. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25721. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25722. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25723. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25724. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25725. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25726. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25727. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25728. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25729. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25730. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25731. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25732. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25733. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25734. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25735. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25736. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25737. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25738. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25739. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25740. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25741. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25742. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25743. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25744. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25745. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25746. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25747. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25748. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25749. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25750. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25751. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25752. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25753. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25754. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25755. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25756. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25757. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25758. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25759. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25760. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25761. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25762. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25763. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25764. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25765. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25766. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25767. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25768. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25769. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25770. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25771. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25772. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25773. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25774. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25775. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25776. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25777. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25778. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25779. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25780. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25781. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25782. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25783. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25784. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25785. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25786. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25787. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25788. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25789. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25790. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25791. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25792. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25793. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25794. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25795. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25796. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25797. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25798. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25799. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25800. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25801. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25802. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25803. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25804. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25805. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25806. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25807. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25808. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25809. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25810. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25811. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25812. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25813. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25814. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25815. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25816. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25817. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25818. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25819. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25820. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25821. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25822. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25823. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25824. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25825. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25826. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25827. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25828. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25829. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25830. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25831. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25832. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25833. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25834. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25835. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25836. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25837. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25838. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25839. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25840. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25841. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25842. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25843. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25844. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25845. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25846. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25847. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25848. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25849. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25850. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25851. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25852. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25853. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25854. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25855. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25856. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25857. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25858. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25859. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25860. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25861. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25862. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25863. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25864. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25865. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25866. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25867. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25868. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25869. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25870. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25871. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25872. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25873. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25874. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25875. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25876. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25877. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25878. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25879. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25880. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25881. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25882. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25883. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25884. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25885. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25886. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25887. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25888. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25889. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25890. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25891. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25892. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25893. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25894. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25895. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25896. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25897. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25898. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25899. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25900. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25901. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25902. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25903. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25904. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25905. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25906. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25907. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25908. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25909. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25910. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25911. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25912. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25913. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25914. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25915. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25916. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25917. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25918. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25919. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25920. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25921. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25922. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25923. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25924. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25925. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25926. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25927. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25928. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25929. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25930. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25931. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25932. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25933. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25934. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25935. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25936. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25937. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25938. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25939. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25940. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25941. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25942. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  25943. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25944. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25945. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25946. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25947. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25948. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25949. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25950. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25951. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25952. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25953. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25954. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25955. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25956. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25957. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25958. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25959. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25960. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25961. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25962. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25963. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25964. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25965. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25966. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25967. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25968. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25969. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25970. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25971. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25972. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25973. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25974. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25975. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25976. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25977. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25978. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25979. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25980. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25981. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25982. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25983. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25984. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25985. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25986. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25987. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25988. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25989. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25990. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25991. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25992. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25993. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25994. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25995. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25996. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25997. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25998. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25999. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26000. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26001. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26002. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26003. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26004. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26005. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26006. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26007. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26008. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26009. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26010. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26011. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26012. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26013. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26014. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26015. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26016. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26017. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26018. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26019. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26020. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26021. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26022. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26023. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26024. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26025. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26026. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26027. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26028. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26029. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26030. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26031. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26032. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26033. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26034. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26035. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26036. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26037. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26038. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26039. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26040. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26041. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26042. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26043. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26044. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26045. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26046. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26047. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26048. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26049. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26050. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26051. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26052. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26053. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26054. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26055. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26056. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26057. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26058. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26059. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26060. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26061. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26062. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26063. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26064. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26065. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26066. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26067. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26068. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26069. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26070. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26071. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26072. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26073. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26074. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26075. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26076. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26077. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26078. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26079. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26080. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26081. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26082. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26083. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26084. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26085. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26086. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26087. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26088. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26089. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26090. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26091. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26092. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26093. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26094. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26095. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26096. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26097. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26098. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26099. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26100. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26101. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26102. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26103. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26104. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26105. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26106. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26107. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26108. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26109. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26110. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26111. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26112. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26113. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26114. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26115. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26116. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26117. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26118. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26119. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26120. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26121. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26122. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26123. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26124. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26125. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26126. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26127. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26128. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26129. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26130. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26131. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26132. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26133. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26134. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26135. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26136. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26137. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26138. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26139. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26140. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26141. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26142. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26143. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26144. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26145. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26146. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26147. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26148. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26149. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26150. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26151. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26152. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26153. {"HDMI", NULL, "HDMI_DL_HL"},
  26154. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26155. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26156. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26157. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26158. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26159. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26160. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26161. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26162. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26163. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26164. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26165. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26166. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26167. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26168. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26169. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26170. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26171. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26172. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26173. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26174. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26175. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26176. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26177. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26178. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26179. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26180. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26181. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26182. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26183. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26184. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26185. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26186. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26187. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26188. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26189. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26190. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26191. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26192. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26193. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26194. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26195. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26196. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26197. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26198. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26199. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26200. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26201. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26202. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26203. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26204. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26205. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26206. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26207. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26208. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26209. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26210. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26211. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26212. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26213. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26214. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26215. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26216. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26217. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26218. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26219. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26220. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26221. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26222. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26223. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26224. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26225. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26226. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26227. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26228. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26229. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26230. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26231. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26232. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26233. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26234. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26235. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26236. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26237. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26238. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26239. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26240. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26241. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26242. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26243. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26244. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26245. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26246. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26247. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26248. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26249. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26250. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26251. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26252. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26253. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26254. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26255. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26256. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26257. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26258. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26259. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26260. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26261. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26262. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26263. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26264. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26265. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26266. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26267. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26268. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26269. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26270. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26271. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26272. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26273. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26274. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26275. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26276. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26277. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26278. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26279. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26280. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26281. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26282. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26283. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26284. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26285. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26286. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26287. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26288. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26289. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26290. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26291. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26292. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26293. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26294. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26295. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26296. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26297. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26298. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26299. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26300. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26301. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26302. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26303. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26304. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26305. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26306. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26307. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26308. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26309. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26310. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26311. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26312. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26313. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26314. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26315. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26316. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26317. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26318. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26319. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26320. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26321. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26322. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26323. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26324. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26325. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26326. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26327. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26328. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26329. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26330. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26331. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26332. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26333. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26334. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26335. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26336. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26337. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26338. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26339. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26340. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26341. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26342. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26343. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26344. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26345. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26346. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26347. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26348. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26349. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26350. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26351. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26352. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26353. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26354. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26355. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26356. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26357. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26358. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26359. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26360. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26361. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26362. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26363. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26364. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26365. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26366. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26367. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26368. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26369. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26370. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26371. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26372. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26373. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26374. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26375. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26376. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26377. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26378. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26379. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26380. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26381. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26382. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26383. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26384. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26385. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26386. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26387. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26388. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26389. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26390. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26391. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26392. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26393. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26394. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26395. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26396. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26397. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26398. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26399. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26400. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26401. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26402. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26403. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26404. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26405. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26406. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26407. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26408. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26409. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26410. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26411. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26412. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26413. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26414. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26415. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26416. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26417. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26418. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26419. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26420. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26421. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26422. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26423. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26424. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26425. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26426. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26427. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26428. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26429. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26430. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26431. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26432. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26433. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26434. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26435. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26436. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26437. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26438. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26439. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26440. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26441. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26442. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26443. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26444. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26445. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26446. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  26447. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  26448. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26449. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26450. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26451. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26452. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26453. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26454. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26455. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26456. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26457. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26458. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26459. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26460. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26461. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26462. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26463. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26464. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26465. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26466. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26467. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26468. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26469. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26470. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26471. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26472. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26473. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26474. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26475. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26476. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26477. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26478. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  26479. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26480. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26481. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26482. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26483. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26484. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26485. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26486. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26487. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26488. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26489. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26490. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26491. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26492. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26493. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26494. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26495. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26496. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26497. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26498. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26499. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26500. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26501. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26502. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26503. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26504. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26505. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26506. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26507. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26508. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26509. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  26510. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26511. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26512. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26513. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26514. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26515. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26516. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26517. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26518. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26519. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26520. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26521. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26522. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26523. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26524. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  26525. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26526. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26527. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26528. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26529. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26530. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26531. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26532. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26533. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26534. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26535. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26536. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26537. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26538. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26539. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  26540. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26541. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26542. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26543. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26544. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26545. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26546. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26547. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26548. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26549. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26550. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26551. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26552. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26553. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26554. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  26555. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26556. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26557. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26558. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26559. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26560. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26561. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26562. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26563. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26564. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26565. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26566. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26567. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  26568. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26569. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26570. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26571. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26572. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26573. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26574. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26575. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26576. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26577. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26578. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26579. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26580. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26581. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26582. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26583. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26584. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26585. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26586. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26587. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26588. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26589. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26590. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26591. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26592. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26593. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26594. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26595. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26596. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26597. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26598. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26599. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26600. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26601. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26602. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26603. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26604. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26605. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26606. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26607. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26608. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26609. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26610. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26611. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26612. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26613. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26614. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26615. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26616. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26617. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26618. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26619. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26620. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26621. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26622. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26623. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26624. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26625. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26626. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26627. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26628. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26629. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26630. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26631. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26632. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26633. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26634. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26635. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26636. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26637. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26638. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26639. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26640. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26641. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26642. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26643. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26644. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26645. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26646. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26647. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26648. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26649. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26650. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26651. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26652. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26653. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26654. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26655. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26656. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26657. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26658. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26659. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26660. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26661. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26662. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26663. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26664. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26665. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26666. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26667. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26668. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26669. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26670. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26671. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26672. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26673. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26674. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26675. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26676. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26677. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26678. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26679. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26680. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26681. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26682. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26683. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26684. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26685. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26686. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26687. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26688. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26689. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26690. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26691. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26692. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26693. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26694. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26695. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26696. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26697. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26698. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26699. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26700. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26701. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26702. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26703. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26704. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26705. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26706. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26707. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26708. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26709. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26710. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26711. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26712. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26713. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26714. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26715. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26716. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26717. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26718. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26719. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26720. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26721. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26722. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26723. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26724. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26725. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26726. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26727. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26728. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26729. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26730. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26731. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26732. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26733. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26734. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26735. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26736. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26737. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26738. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26739. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26740. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26741. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26742. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26743. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26744. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26745. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26746. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26747. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26748. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26749. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26750. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26751. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26752. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26753. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26754. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26755. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26756. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26757. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26758. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26759. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26760. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26761. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26762. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26763. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26764. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26765. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26766. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26767. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26768. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26769. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26770. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26771. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26772. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26773. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26774. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26775. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26776. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26777. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26778. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26779. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26780. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26781. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26782. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26783. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26784. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26785. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26786. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26787. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26788. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26789. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26790. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26791. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26792. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26793. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26794. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26795. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26796. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26797. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26798. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26799. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26800. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26801. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26802. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26803. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26804. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26805. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26806. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26807. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26808. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26809. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26810. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26811. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26812. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26813. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26814. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26815. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26816. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26817. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26818. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26819. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26820. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26821. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26822. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26823. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26824. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26825. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26826. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26827. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26828. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26829. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26830. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26831. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26832. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26833. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26834. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26835. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26836. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26837. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26838. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26839. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26840. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26841. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26842. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26843. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26844. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26845. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26846. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26847. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26848. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26849. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26850. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26851. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26852. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26853. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26854. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26855. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26856. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26857. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26858. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26859. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26860. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26861. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26862. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26863. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26864. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26865. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26866. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26867. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26868. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26869. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26870. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26871. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26872. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26873. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26874. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26875. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26876. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26877. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26878. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26879. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26880. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26881. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26882. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26883. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26884. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26885. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26886. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26887. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26888. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26889. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26890. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26891. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26892. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26893. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26894. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26895. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26896. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26897. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26898. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26899. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26900. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26901. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26902. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26903. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26904. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26905. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26906. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26907. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26908. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26909. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26910. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26911. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26912. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26913. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26914. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26915. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26916. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26917. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26918. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26919. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26920. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26921. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26922. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26923. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26924. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26925. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26926. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26927. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26928. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26929. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26930. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26931. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26932. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26933. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26934. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26935. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26936. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26937. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26938. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26939. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26940. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26941. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26942. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26943. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26944. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26945. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26946. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26947. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26948. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26949. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26950. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26951. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26952. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26953. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26954. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26955. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26956. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26957. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26958. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26959. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26960. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26961. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26962. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26963. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26964. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26965. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26966. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26967. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26968. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26969. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26970. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26971. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26972. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26973. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26974. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26975. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26976. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26977. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26978. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26979. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26980. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26981. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26982. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26983. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26984. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26985. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26986. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26987. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26988. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26989. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26990. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26991. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26992. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26993. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26994. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26995. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26996. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26997. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26998. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26999. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27000. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27001. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27002. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27003. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27004. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27005. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27006. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27007. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27008. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27009. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27010. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27011. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27012. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27013. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27014. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27015. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27016. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27017. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27018. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27019. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27020. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27021. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27022. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27023. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27024. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27025. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27026. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27027. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27028. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27029. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27030. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27031. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27032. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27033. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27034. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27035. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27036. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27037. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27038. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27039. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27040. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27041. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27042. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27043. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27044. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27045. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27046. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27047. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27048. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27049. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27050. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27051. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27052. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27053. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27054. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27055. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27056. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27057. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27058. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27059. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27060. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27061. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27062. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27063. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27064. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27065. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27066. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27067. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27068. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27069. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27070. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27071. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27072. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27073. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27074. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27075. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27076. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27077. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27078. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27079. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27080. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27081. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27082. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27083. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27084. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27085. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27086. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27087. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27088. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27089. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27090. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27091. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27092. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27093. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27094. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27095. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27096. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27097. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27098. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27099. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27100. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27101. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27102. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27103. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27104. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27105. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27106. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27107. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27108. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27109. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27110. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27111. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27112. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27113. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27114. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27115. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27116. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27117. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27118. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27119. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27120. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27121. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27122. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27123. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27124. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27125. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27126. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27127. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27128. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27129. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27130. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27131. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27132. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27133. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27134. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27135. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27136. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27137. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27138. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27139. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27140. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27141. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27142. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27143. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27144. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27145. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27146. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27147. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27148. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27149. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27150. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27151. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27152. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27153. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27154. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27155. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27156. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27157. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27158. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27159. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27160. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27161. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27162. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27163. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27164. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27165. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27166. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27167. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27168. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27169. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27170. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27171. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27172. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27173. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27174. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27175. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27176. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27177. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27178. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27179. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27180. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27181. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27182. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27183. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27184. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27185. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27186. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27187. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27188. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27189. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27190. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27191. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27192. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27193. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27194. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27195. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27196. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27197. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27198. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27199. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27200. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27201. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27202. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27203. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27204. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27205. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27206. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27207. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27208. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27209. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27210. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27211. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27212. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27213. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27214. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27215. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27216. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27217. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27218. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27219. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27220. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27221. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27222. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27223. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27224. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27225. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27226. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27227. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27228. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27229. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27230. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27231. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27232. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27233. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27234. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27235. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27236. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27237. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27238. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27239. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27240. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27241. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27242. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27243. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27244. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27245. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27246. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27247. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27248. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27249. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27250. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27251. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27252. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27253. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27254. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27255. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27256. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27257. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27258. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27259. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27260. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27261. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27262. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27263. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27264. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27265. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27266. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27267. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27268. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27269. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27270. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27271. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27272. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27273. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27274. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27275. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27276. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27277. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27278. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27279. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27280. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27281. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27282. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27283. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27284. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27285. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27286. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27287. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27288. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27289. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27290. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27291. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27292. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27293. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27294. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27295. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27296. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27297. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27298. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27299. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27300. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27301. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27302. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27303. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27304. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27305. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27306. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27307. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27308. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27309. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27310. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27311. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27312. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27313. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27314. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27315. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27316. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27317. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27318. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27319. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27320. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  27321. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27322. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27323. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27324. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27325. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27326. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27327. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27328. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27329. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27330. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27331. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27332. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27333. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  27334. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27335. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27336. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27337. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27338. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  27339. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27340. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27341. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27342. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  27343. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27344. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27345. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27346. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27347. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  27348. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27349. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27350. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27351. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27352. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27353. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27354. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27355. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27356. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27357. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27358. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27359. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27360. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27361. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27362. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27363. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27364. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27365. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27366. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27367. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27368. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  27369. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27370. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27371. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27372. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27373. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27374. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27375. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27376. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27377. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27378. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27379. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27380. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27381. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27382. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27383. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27384. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27385. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27386. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27387. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27388. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27389. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27390. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27391. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27392. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27393. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27394. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27395. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27396. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27397. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27398. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27399. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27400. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27401. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27402. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27403. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27404. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27405. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27406. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27407. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27408. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27409. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27410. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27411. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27412. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27413. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27414. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27415. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27416. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27417. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27418. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27419. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27420. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27421. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27422. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27423. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27424. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27425. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27426. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27427. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27428. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27429. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27430. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27431. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27432. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27433. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27434. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27435. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27436. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27437. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27438. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27439. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27440. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27441. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27442. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27443. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27444. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27445. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27446. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27447. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  27448. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27449. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27450. {"STUB_RX", NULL, "STUB_RX Mixer"},
  27451. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27452. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27453. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  27454. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27455. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27456. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  27457. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27458. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27459. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27460. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27461. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27462. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  27463. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27464. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27465. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27466. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27467. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27468. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  27469. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27470. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27471. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27472. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  27473. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27474. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27475. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  27476. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  27477. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27478. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  27479. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  27480. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  27481. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  27482. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27483. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27484. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27485. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27486. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27487. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27488. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27489. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27490. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27491. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27492. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27493. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27494. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27495. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  27496. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27497. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  27498. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27499. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  27500. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  27501. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  27502. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27503. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  27504. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27505. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27506. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  27507. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27508. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27509. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27510. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27511. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27512. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27513. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27514. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27515. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27516. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27517. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27518. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  27519. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27520. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27521. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27522. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27523. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27524. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27525. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27526. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27527. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27528. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27529. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  27530. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27531. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27532. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27533. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27534. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27535. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27536. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27537. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27538. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  27539. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27540. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27541. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27542. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27543. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27544. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27545. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27546. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27547. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27548. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27549. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  27550. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27551. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27552. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27553. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27554. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27555. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27556. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27557. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27558. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  27559. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27560. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27561. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27562. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27563. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27564. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27565. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27566. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  27567. /* Backend Enablement */
  27568. {"BE_OUT", NULL, "PRI_I2S_RX"},
  27569. {"BE_OUT", NULL, "SEC_I2S_RX"},
  27570. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  27571. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  27572. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  27573. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27574. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  27575. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  27576. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  27577. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  27578. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  27579. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  27580. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  27581. {"BE_OUT", NULL, "HDMI"},
  27582. {"BE_OUT", NULL, "DISPLAY_PORT"},
  27583. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  27584. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  27585. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  27586. {"BE_OUT", NULL, "MI2S_RX"},
  27587. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  27588. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  27589. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  27590. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27591. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27592. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27593. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27594. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27595. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27596. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27597. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27598. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27599. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27600. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27601. {"BE_OUT", NULL, "INT_FM_RX"},
  27602. {"BE_OUT", NULL, "PCM_RX"},
  27603. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27604. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27605. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27606. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27607. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27608. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27609. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27610. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27611. {"BE_OUT", NULL, "INT_FM_RX"},
  27612. {"BE_OUT", NULL, "PCM_RX"},
  27613. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27614. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27615. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27616. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27617. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27618. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27619. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27620. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27621. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27622. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27623. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27624. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27625. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27626. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27627. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27628. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27629. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27630. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27631. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27632. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27633. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27634. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27635. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27636. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27637. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27638. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27639. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27640. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27641. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27642. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27643. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27644. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27645. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27646. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27647. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27648. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27649. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27650. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27651. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27652. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27653. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27654. {"PRI_I2S_TX", NULL, "BE_IN"},
  27655. {"MI2S_TX", NULL, "BE_IN"},
  27656. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27657. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27658. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27659. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27660. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27661. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27662. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27663. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27664. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27665. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27666. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27667. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27668. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27669. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27670. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27671. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27672. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27673. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27674. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27675. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27676. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27677. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27678. {"INT_FM_TX", NULL, "BE_IN"},
  27679. {"PCM_TX", NULL, "BE_IN"},
  27680. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27681. {"BE_OUT", NULL, "STUB_RX"},
  27682. {"STUB_TX", NULL, "BE_IN"},
  27683. {"STUB_1_TX", NULL, "BE_IN"},
  27684. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27685. {"AUX_PCM_TX", NULL, "BE_IN"},
  27686. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27687. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27688. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27689. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27690. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27691. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27692. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27693. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27694. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27695. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27696. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27697. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27698. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27699. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27700. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27701. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27702. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27703. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27704. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27705. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27706. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27707. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27708. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27709. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27710. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27711. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27712. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27713. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27714. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27715. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27716. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27717. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27718. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27719. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27720. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27721. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27722. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27723. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27724. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27725. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27726. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27727. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27728. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27729. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27730. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27731. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27732. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27733. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27734. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27735. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27736. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27737. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27738. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27739. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27740. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27741. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27742. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27743. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27744. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27745. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27746. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27747. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27748. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27749. };
  27750. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27751. struct snd_pcm_hw_params *params)
  27752. {
  27753. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27754. unsigned int be_id = rtd->dai_link->id;
  27755. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27756. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27757. return -EINVAL;
  27758. }
  27759. mutex_lock(&routing_lock);
  27760. msm_bedais[be_id].sample_rate = params_rate(params);
  27761. msm_bedais[be_id].channel = params_channels(params);
  27762. msm_bedais[be_id].format = params_format(params);
  27763. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27764. __func__, msm_bedais[be_id].sample_rate,
  27765. msm_bedais[be_id].format, be_id);
  27766. mutex_unlock(&routing_lock);
  27767. return 0;
  27768. }
  27769. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27770. {
  27771. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27772. unsigned int be_id = rtd->dai_link->id;
  27773. int i, session_type, path_type, topology;
  27774. struct msm_pcm_routing_bdai_data *bedai;
  27775. struct msm_pcm_routing_fdai_data *fdai;
  27776. pr_debug("%s: substream->pcm->id:%s\n",
  27777. __func__, substream->pcm->id);
  27778. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27779. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27780. return -EINVAL;
  27781. }
  27782. bedai = &msm_bedais[be_id];
  27783. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27784. 0 : 1);
  27785. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27786. path_type = ADM_PATH_PLAYBACK;
  27787. else
  27788. path_type = ADM_PATH_LIVE_REC;
  27789. mutex_lock(&routing_lock);
  27790. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27791. if (!is_mm_lsm_fe_id(i))
  27792. continue;
  27793. fdai = &fe_dai_map[i][session_type];
  27794. if (fdai->strm_id != INVALID_SESSION) {
  27795. int idx;
  27796. int port_id;
  27797. unsigned long copp =
  27798. session_copp_map[i][session_type][be_id];
  27799. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27800. if (test_bit(idx, &copp))
  27801. break;
  27802. if (idx >= MAX_COPPS_PER_PORT) {
  27803. pr_debug("%s: copp idx is invalid, exiting\n",
  27804. __func__);
  27805. continue;
  27806. }
  27807. fdai->be_srate = bedai->sample_rate;
  27808. port_id = get_port_id(bedai->port_id);
  27809. topology = adm_get_topology_for_port_copp_idx(port_id,
  27810. idx);
  27811. msm_routing_unload_topology(topology);
  27812. adm_close(port_id, fdai->perf_mode, idx);
  27813. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27814. __func__, copp, i, session_type, be_id,
  27815. topology);
  27816. clear_bit(idx,
  27817. &session_copp_map[i][session_type][be_id]);
  27818. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27819. (fdai->passthr_mode == LEGACY_PCM))
  27820. msm_pcm_routing_deinit_pp(port_id,
  27821. topology);
  27822. }
  27823. }
  27824. bedai->active = 0;
  27825. bedai->sample_rate = 0;
  27826. bedai->channel = 0;
  27827. mutex_unlock(&routing_lock);
  27828. return 0;
  27829. }
  27830. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27831. {
  27832. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27833. unsigned int be_id = rtd->dai_link->id;
  27834. int i, path_type, topology;
  27835. int session_type = INVALID_SESSION;
  27836. struct msm_pcm_routing_bdai_data *bedai;
  27837. u32 channels, sample_rate;
  27838. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27839. struct msm_pcm_routing_fdai_data *fdai;
  27840. u32 session_id;
  27841. struct media_format_info voc_be_media_format;
  27842. bool is_lsm;
  27843. pr_debug("%s: substream->pcm->id:%s\n",
  27844. __func__, substream->pcm->id);
  27845. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27846. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27847. return -EINVAL;
  27848. }
  27849. bedai = &msm_bedais[be_id];
  27850. mutex_lock(&routing_lock);
  27851. if (bedai->active == 1)
  27852. goto done; /* Ignore prepare if back-end already active */
  27853. /* AFE port is not active at this point. However, still
  27854. * go ahead setting active flag under the notion that
  27855. * QDSP6 is able to handle ADM starting before AFE port
  27856. * is started.
  27857. */
  27858. bedai->active = 1;
  27859. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27860. if (!(is_mm_lsm_fe_id(i) &&
  27861. route_check_fe_id_adm_support(i)))
  27862. continue;
  27863. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27864. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27865. fdai = &fe_dai_map[i][session_type];
  27866. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27867. if (fdai->passthr_mode != LEGACY_PCM)
  27868. path_type = ADM_PATH_COMPRESSED_RX;
  27869. else
  27870. path_type = ADM_PATH_PLAYBACK;
  27871. } else {
  27872. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27873. (fdai->passthr_mode != LISTEN))
  27874. path_type = ADM_PATH_COMPRESSED_TX;
  27875. else
  27876. path_type = ADM_PATH_LIVE_REC;
  27877. }
  27878. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27879. (i <= MSM_FRONTEND_DAI_LSM8);
  27880. if (fdai->strm_id != INVALID_SESSION) {
  27881. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27882. int port_id = get_port_id(bedai->port_id);
  27883. if (session_type == SESSION_TYPE_TX &&
  27884. fdai->be_srate &&
  27885. (fdai->be_srate != bedai->sample_rate)) {
  27886. pr_debug("%s: flush strm %d diff BE rates\n",
  27887. __func__,
  27888. fdai->strm_id);
  27889. if (fdai->event_info.event_func)
  27890. fdai->event_info.event_func(
  27891. MSM_PCM_RT_EVT_BUF_RECFG,
  27892. fdai->event_info.priv_data);
  27893. fdai->be_srate = 0; /* might not need it */
  27894. }
  27895. bits_per_sample = msm_routing_get_bit_width(
  27896. bedai->format);
  27897. app_type =
  27898. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27899. if (app_type && is_lsm) {
  27900. app_type_idx =
  27901. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27902. sample_rate =
  27903. fe_dai_app_type_cfg[i][session_type][be_id]
  27904. .sample_rate;
  27905. bits_per_sample =
  27906. lsm_app_type_cfg[app_type_idx].bit_width;
  27907. } else if (app_type) {
  27908. app_type_idx =
  27909. msm_pcm_routing_get_app_type_idx(app_type);
  27910. sample_rate =
  27911. fe_dai_app_type_cfg[i][session_type]
  27912. [be_id].sample_rate;
  27913. bits_per_sample =
  27914. app_type_cfg[app_type_idx].bit_width;
  27915. } else
  27916. sample_rate = bedai->sample_rate;
  27917. /*
  27918. * check if ADM needs to be configured with different
  27919. * channel mapping than backend
  27920. */
  27921. if (!bedai->adm_override_ch)
  27922. channels = bedai->channel;
  27923. else
  27924. channels = bedai->adm_override_ch;
  27925. acdb_dev_id =
  27926. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27927. topology = msm_routing_get_adm_topology(i, session_type,
  27928. be_id);
  27929. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27930. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27931. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27932. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27933. be_bit_width = msm_routing_get_bit_width(
  27934. bedai->format);
  27935. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27936. || bedai->sample_rate == 352800) &&
  27937. be_bit_width == 32)
  27938. bits_per_sample = msm_routing_get_bit_width(
  27939. SNDRV_PCM_FORMAT_S32_LE);
  27940. copp_idx = adm_open(port_id, path_type,
  27941. sample_rate, channels, topology,
  27942. fdai->perf_mode, bits_per_sample,
  27943. app_type, acdb_dev_id,
  27944. session_type);
  27945. if ((copp_idx < 0) ||
  27946. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27947. pr_err("%s: adm open failed\n", __func__);
  27948. mutex_unlock(&routing_lock);
  27949. return -EINVAL;
  27950. }
  27951. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27952. __func__, i, session_type, be_id);
  27953. set_bit(copp_idx,
  27954. &session_copp_map[i][session_type][be_id]);
  27955. if (msm_is_resample_needed(
  27956. sample_rate,
  27957. bedai->sample_rate))
  27958. adm_copp_mfc_cfg(port_id, copp_idx,
  27959. bedai->sample_rate);
  27960. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27961. fdai->perf_mode, fdai->passthr_mode);
  27962. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27963. (fdai->passthr_mode == LEGACY_PCM))
  27964. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27965. topology, channels);
  27966. }
  27967. }
  27968. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27969. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27970. if (session_id) {
  27971. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27972. session_id);
  27973. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27974. voc_path_type = RX_PATH;
  27975. else
  27976. voc_path_type = TX_PATH;
  27977. voc_set_route_flag(session_id, voc_path_type, 1);
  27978. memset(&voc_be_media_format, 0,
  27979. sizeof(struct media_format_info));
  27980. voc_be_media_format.port_id = bedai->port_id;
  27981. voc_be_media_format.num_channels = bedai->channel;
  27982. voc_be_media_format.sample_rate = bedai->sample_rate;
  27983. voc_be_media_format.bits_per_sample = bedai->format;
  27984. /* Defaulting this to 1 for voice call usecases */
  27985. voc_be_media_format.channel_mapping[0] = 1;
  27986. voc_set_device_config(session_id, voc_path_type,
  27987. &voc_be_media_format);
  27988. if (voc_get_route_flag(session_id, RX_PATH) &&
  27989. voc_get_route_flag(session_id, TX_PATH))
  27990. voc_enable_device(session_id);
  27991. }
  27992. }
  27993. /* Check if backend is an external ec ref port and set as needed */
  27994. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27995. memset(&voc_be_media_format, 0,
  27996. sizeof(struct media_format_info));
  27997. /* Get format info for ec ref port from msm_bedais[] */
  27998. voc_be_media_format.port_id = bedai->port_id;
  27999. voc_be_media_format.num_channels = bedai->channel;
  28000. voc_be_media_format.bits_per_sample = bedai->format;
  28001. voc_be_media_format.sample_rate = bedai->sample_rate;
  28002. /* Defaulting this to 1 for voice call usecases */
  28003. voc_be_media_format.channel_mapping[0] = 1;
  28004. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28005. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28006. __func__, voc_be_media_format.port_id,
  28007. voc_be_media_format.num_channels,
  28008. voc_be_media_format.bits_per_sample,
  28009. voc_be_media_format.sample_rate);
  28010. }
  28011. done:
  28012. mutex_unlock(&routing_lock);
  28013. return 0;
  28014. }
  28015. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28016. int fe_id)
  28017. {
  28018. int index, topo_id, be_idx;
  28019. unsigned long pp_config = 0;
  28020. bool mute_on;
  28021. int latency, session_type;
  28022. bool compr_passthr_mode = true;
  28023. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28024. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28025. pr_err("%s: Device pp params on invalid port %d\n",
  28026. __func__, port_id);
  28027. return -EINVAL;
  28028. }
  28029. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28030. if (port_id == msm_bedais[be_idx].port_id)
  28031. break;
  28032. }
  28033. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28034. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28035. return -EINVAL;
  28036. }
  28037. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28038. if (msm_bedais_pp_params[index].port_id == port_id)
  28039. break;
  28040. }
  28041. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28042. pr_err("%s: Invalid backend pp params index %d\n",
  28043. __func__, index);
  28044. return -EINVAL;
  28045. }
  28046. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28047. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28048. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28049. __func__, topo_id);
  28050. return -EINVAL;
  28051. }
  28052. session_type =
  28053. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28054. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28055. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28056. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28057. compr_passthr_mode = false;
  28058. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28059. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28060. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28061. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28062. mute_on = msm_bedais_pp_params[index].mute_on;
  28063. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28064. adm_send_compressed_device_mute(port_id,
  28065. copp_idx,
  28066. mute_on);
  28067. }
  28068. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28069. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28070. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28071. &pp_config);
  28072. latency = msm_bedais_pp_params[index].latency;
  28073. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28074. adm_send_compressed_device_latency(port_id,
  28075. copp_idx,
  28076. latency);
  28077. }
  28078. return 0;
  28079. }
  28080. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28081. {
  28082. uint32_t topology = NULL_COPP_TOPOLOGY;
  28083. void *cal_info = NULL;
  28084. uint32_t size = 0;
  28085. /* Retrieve cal_info size from cal data*/
  28086. if (data_size < sizeof(struct audio_cal_type_basic) +
  28087. sizeof(struct audio_cal_info_adm_top)) {
  28088. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28089. goto done;
  28090. }
  28091. size = data_size - sizeof(struct audio_cal_type_basic);
  28092. cal_info = kzalloc(size, GFP_KERNEL);
  28093. if (!cal_info)
  28094. goto done;
  28095. memcpy(cal_info,
  28096. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28097. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28098. kfree(cal_info);
  28099. cal_info = NULL;
  28100. done:
  28101. pr_debug("%s: Using topology %d\n", __func__, topology);
  28102. return topology;
  28103. }
  28104. static void msm_routing_load_topology(size_t data_size, void *data)
  28105. {
  28106. uint32_t topology_id;
  28107. int ret = -EINVAL;
  28108. topology_id = msm_routing_get_topology(data_size, data);
  28109. if (topology_id != NULL_COPP_TOPOLOGY)
  28110. ret = q6core_load_unload_topo_modules(topology_id,
  28111. CORE_LOAD_TOPOLOGY);
  28112. if (ret < 0)
  28113. pr_debug("%s %d load topology failed\n",
  28114. __func__, topology_id);
  28115. }
  28116. static void msm_routing_unload_topology(uint32_t topology_id)
  28117. {
  28118. int ret = -EINVAL;
  28119. if (topology_id != NULL_COPP_TOPOLOGY)
  28120. ret = q6core_load_unload_topo_modules(topology_id,
  28121. CORE_UNLOAD_TOPOLOGY);
  28122. if (ret < 0)
  28123. pr_debug("%s %d unload topology failed\n",
  28124. __func__, topology_id);
  28125. }
  28126. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28127. struct snd_ctl_elem_value *ucontrol)
  28128. {
  28129. int pp_id = ucontrol->value.integer.value[0];
  28130. int port_id = 0;
  28131. int index, be_idx, i, topo_id, idx;
  28132. bool mute;
  28133. int latency, session_type;
  28134. bool compr_passthr_mode = true;
  28135. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28136. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28137. port_id = msm_bedais[be_idx].port_id;
  28138. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28139. break;
  28140. }
  28141. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28142. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28143. return -EINVAL;
  28144. }
  28145. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28146. if (msm_bedais_pp_params[index].port_id == port_id)
  28147. break;
  28148. }
  28149. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28150. pr_err("%s: Invalid pp params backend index %d\n",
  28151. __func__, index);
  28152. return -EINVAL;
  28153. }
  28154. session_type =
  28155. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28156. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28157. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28158. MSM_FRONTEND_DAI_MM_SIZE) {
  28159. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28160. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28161. compr_passthr_mode = false;
  28162. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28163. unsigned long copp =
  28164. session_copp_map[i]
  28165. [SESSION_TYPE_RX][be_idx];
  28166. if (!test_bit(idx, &copp))
  28167. continue;
  28168. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28169. idx);
  28170. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28171. continue;
  28172. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28173. __func__, port_id, copp, msm_bedais[be_idx].active,
  28174. fe_dai_map[i][session_type].passthr_mode);
  28175. switch (pp_id) {
  28176. case ADM_PP_PARAM_MUTE_ID:
  28177. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28178. mute = ucontrol->value.integer.value[1] ? true : false;
  28179. msm_bedais_pp_params[index].mute_on = mute;
  28180. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28181. &msm_bedais_pp_params[index].pp_params_config);
  28182. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28183. adm_send_compressed_device_mute(port_id,
  28184. idx, mute);
  28185. break;
  28186. case ADM_PP_PARAM_LATENCY_ID:
  28187. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28188. msm_bedais_pp_params[index].latency =
  28189. ucontrol->value.integer.value[1];
  28190. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28191. &msm_bedais_pp_params[index].pp_params_config);
  28192. latency = msm_bedais_pp_params[index].latency =
  28193. ucontrol->value.integer.value[1];
  28194. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28195. adm_send_compressed_device_latency(port_id,
  28196. idx, latency);
  28197. break;
  28198. default:
  28199. pr_info("%s, device pp param %d not supported\n",
  28200. __func__, pp_id);
  28201. break;
  28202. }
  28203. }
  28204. }
  28205. return 0;
  28206. }
  28207. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28208. struct snd_ctl_elem_value *ucontrol)
  28209. {
  28210. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28211. return 0;
  28212. }
  28213. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28214. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28215. 0, 3, msm_routing_get_device_pp_params_mixer,
  28216. msm_routing_put_device_pp_params_mixer),
  28217. };
  28218. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28219. struct snd_ctl_elem_value *ucontrol)
  28220. {
  28221. ucontrol->value.integer.value[0] =
  28222. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28223. pr_debug("%s: status %ld\n", __func__,
  28224. ucontrol->value.integer.value[0]);
  28225. return 0;
  28226. }
  28227. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28228. struct snd_ctl_elem_value *ucontrol)
  28229. {
  28230. int32_t status = 0;
  28231. status = core_set_license(ucontrol->value.integer.value[0],
  28232. APTX_CLASSIC_DEC_LICENSE_ID);
  28233. pr_debug("%s: status %d\n", __func__, status);
  28234. return status;
  28235. }
  28236. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28237. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28238. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28239. msm_aptx_dec_license_control_put),
  28240. };
  28241. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28242. struct snd_ctl_elem_value *ucontrol)
  28243. {
  28244. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28245. uint32_t be_idx = ucontrol->value.integer.value[0];
  28246. int i;
  28247. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28248. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28249. return -EINVAL;
  28250. }
  28251. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28252. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28253. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28254. pr_err("%s: Invalid channel map %d\n",
  28255. __func__, channel_map[i]);
  28256. return -EINVAL;
  28257. }
  28258. }
  28259. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28260. return 0;
  28261. }
  28262. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28263. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28264. MSM_BACKEND_DAI_MAX, 0,
  28265. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28266. msm_routing_put_port_chmap_mixer),
  28267. };
  28268. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28269. struct snd_ctl_elem_info *uinfo)
  28270. {
  28271. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  28272. uinfo->count = sizeof(be_dai_name_table);
  28273. return 0;
  28274. }
  28275. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  28276. unsigned int __user *bytes,
  28277. unsigned int size)
  28278. {
  28279. int i;
  28280. int ret = 0;
  28281. if (size < sizeof(be_dai_name_table)) {
  28282. pr_err("%s: invalid size %d requested, returning\n",
  28283. __func__, size);
  28284. ret = -EINVAL;
  28285. goto done;
  28286. }
  28287. /*
  28288. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  28289. * needed when adding new backends
  28290. */
  28291. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28292. be_dai_name_table[i].be_id = i;
  28293. strlcpy(be_dai_name_table[i].be_name,
  28294. msm_bedais[i].name,
  28295. LPASS_BE_NAME_MAX_LENGTH);
  28296. }
  28297. ret = copy_to_user(bytes, &be_dai_name_table,
  28298. sizeof(be_dai_name_table));
  28299. if (ret) {
  28300. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  28301. ret = -EFAULT;
  28302. }
  28303. done:
  28304. return ret;
  28305. }
  28306. static const struct snd_kcontrol_new
  28307. msm_routing_be_dai_name_table_mixer_controls[] = {
  28308. {
  28309. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  28310. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  28311. .info = msm_routing_be_dai_name_table_info,
  28312. .name = "Backend DAI Name Table",
  28313. .tlv.c = snd_soc_bytes_tlv_callback,
  28314. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  28315. .max = sizeof(be_dai_name_table),
  28316. .get = msm_routing_be_dai_name_table_tlv_get,
  28317. }
  28318. },
  28319. };
  28320. static int msm_routing_stereo_channel_reverse_control_get(
  28321. struct snd_kcontrol *kcontrol,
  28322. struct snd_ctl_elem_value *ucontrol)
  28323. {
  28324. ucontrol->value.integer.value[0] = swap_ch;
  28325. pr_debug("%s: Swap channel value: %ld\n", __func__,
  28326. ucontrol->value.integer.value[0]);
  28327. return 0;
  28328. }
  28329. static int msm_routing_stereo_channel_reverse_control_put(
  28330. struct snd_kcontrol *kcontrol,
  28331. struct snd_ctl_elem_value *ucontrol)
  28332. {
  28333. int i, idx, be_index, port_id;
  28334. int ret = 0;
  28335. unsigned long copp;
  28336. pr_debug("%s Swap channel value:%ld\n", __func__,
  28337. ucontrol->value.integer.value[0]);
  28338. swap_ch = ucontrol->value.integer.value[0];
  28339. mutex_lock(&routing_lock);
  28340. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  28341. port_id = msm_bedais[be_index].port_id;
  28342. if (!msm_bedais[be_index].active)
  28343. continue;
  28344. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  28345. MSM_FRONTEND_DAI_MM_SIZE) {
  28346. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  28347. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28348. if (!test_bit(idx, &copp))
  28349. continue;
  28350. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  28351. __func__, port_id, idx);
  28352. ret = adm_swap_speaker_channels(
  28353. port_id, idx,
  28354. msm_bedais[be_index].sample_rate,
  28355. swap_ch);
  28356. if (ret) {
  28357. pr_err("%s:Swap_channel failed, err=%d\n",
  28358. __func__, ret);
  28359. goto done;
  28360. }
  28361. }
  28362. }
  28363. }
  28364. done:
  28365. mutex_unlock(&routing_lock);
  28366. return ret;
  28367. }
  28368. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  28369. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  28370. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  28371. msm_routing_stereo_channel_reverse_control_put),
  28372. };
  28373. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  28374. struct snd_ctl_elem_info *uinfo)
  28375. {
  28376. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28377. uinfo->count = 1;
  28378. return 0;
  28379. }
  28380. static int msm_routing_instance_id_support_put(
  28381. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28382. {
  28383. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28384. q6common_update_instance_id_support(supported);
  28385. return 0;
  28386. }
  28387. static int msm_routing_instance_id_support_get(
  28388. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28389. {
  28390. bool supported = false;
  28391. supported = q6common_is_instance_id_supported();
  28392. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28393. return 0;
  28394. }
  28395. static const struct snd_kcontrol_new
  28396. msm_routing_feature_support_mixer_controls[] = {
  28397. {
  28398. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28399. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28400. .info = msm_routing_instance_id_support_info,
  28401. .name = "Instance ID Support",
  28402. .put = msm_routing_instance_id_support_put,
  28403. .get = msm_routing_instance_id_support_get,
  28404. },
  28405. };
  28406. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28407. .hw_params = msm_pcm_routing_hw_params,
  28408. .close = msm_pcm_routing_close,
  28409. .prepare = msm_pcm_routing_prepare,
  28410. };
  28411. /* Not used but frame seems to require it */
  28412. static int msm_routing_probe(struct snd_soc_component *component)
  28413. {
  28414. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28415. ARRAY_SIZE(msm_qdsp6_widgets));
  28416. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28417. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28418. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28419. ARRAY_SIZE(intercon));
  28420. snd_soc_dapm_new_widgets(component->dapm.card);
  28421. snd_soc_add_component_controls(component, lsm_controls,
  28422. ARRAY_SIZE(lsm_controls));
  28423. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28424. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28425. snd_soc_add_component_controls(component, aanc_noise_level,
  28426. ARRAY_SIZE(aanc_noise_level));
  28427. snd_soc_add_component_controls(component, msm_voc_session_controls,
  28428. ARRAY_SIZE(msm_voc_session_controls));
  28429. snd_soc_add_component_controls(component, app_type_cfg_controls,
  28430. ARRAY_SIZE(app_type_cfg_controls));
  28431. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  28432. ARRAY_SIZE(lsm_app_type_cfg_controls));
  28433. snd_soc_add_component_controls(component, module_cfg_controls,
  28434. ARRAY_SIZE(module_cfg_controls));
  28435. snd_soc_add_component_controls(component,
  28436. stereo_to_custom_stereo_controls,
  28437. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  28438. snd_soc_add_component_controls(component, ec_ref_param_controls,
  28439. ARRAY_SIZE(ec_ref_param_controls));
  28440. snd_soc_add_component_controls(component, channel_mixer_controls,
  28441. ARRAY_SIZE(channel_mixer_controls));
  28442. msm_qti_pp_add_controls(component);
  28443. msm_dts_srs_tm_add_controls(component);
  28444. msm_dolby_dap_add_controls(component);
  28445. snd_soc_add_component_controls(component,
  28446. use_ds1_or_ds2_controls,
  28447. ARRAY_SIZE(use_ds1_or_ds2_controls));
  28448. snd_soc_add_component_controls(component,
  28449. hifi_filter_controls,
  28450. ARRAY_SIZE(hifi_filter_controls));
  28451. snd_soc_add_component_controls(component,
  28452. device_pp_params_mixer_controls,
  28453. ARRAY_SIZE(device_pp_params_mixer_controls));
  28454. snd_soc_add_component_controls(component,
  28455. msm_routing_be_dai_name_table_mixer_controls,
  28456. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  28457. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  28458. ARRAY_SIZE(msm_source_tracking_controls));
  28459. snd_soc_add_component_controls(component, adm_channel_config_controls,
  28460. ARRAY_SIZE(adm_channel_config_controls));
  28461. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  28462. ARRAY_SIZE(aptx_dec_license_controls));
  28463. snd_soc_add_component_controls(component,
  28464. stereo_channel_reverse_control,
  28465. ARRAY_SIZE(stereo_channel_reverse_control));
  28466. snd_soc_add_component_controls(
  28467. component, msm_routing_feature_support_mixer_controls,
  28468. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  28469. snd_soc_add_component_controls(component,
  28470. port_multi_channel_map_mixer_controls,
  28471. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  28472. return 0;
  28473. }
  28474. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  28475. {
  28476. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  28477. }
  28478. void msm_routing_pcm_free(struct snd_pcm *pcm)
  28479. {
  28480. msm_pcm_routing_hwdep_free(pcm);
  28481. }
  28482. static struct snd_soc_component_driver msm_soc_routing_component = {
  28483. .name = DRV_NAME,
  28484. .ops = &msm_routing_pcm_ops,
  28485. .probe = msm_routing_probe,
  28486. .pcm_new = msm_routing_pcm_new,
  28487. .pcm_free = msm_routing_pcm_free,
  28488. };
  28489. static int msm_routing_pcm_probe(struct platform_device *pdev)
  28490. {
  28491. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  28492. return snd_soc_register_component(&pdev->dev,
  28493. &msm_soc_routing_component,
  28494. NULL, 0);
  28495. }
  28496. static int msm_routing_pcm_remove(struct platform_device *pdev)
  28497. {
  28498. snd_soc_unregister_component(&pdev->dev);
  28499. return 0;
  28500. }
  28501. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  28502. {.compatible = "qcom,msm-pcm-routing"},
  28503. {}
  28504. };
  28505. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  28506. static struct platform_driver msm_routing_pcm_driver = {
  28507. .driver = {
  28508. .name = "msm-pcm-routing",
  28509. .owner = THIS_MODULE,
  28510. .of_match_table = msm_pcm_routing_dt_match,
  28511. .suppress_bind_attrs = true,
  28512. },
  28513. .probe = msm_routing_pcm_probe,
  28514. .remove = msm_routing_pcm_remove,
  28515. };
  28516. int msm_routing_check_backend_enabled(int fedai_id)
  28517. {
  28518. int i;
  28519. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  28520. /* bad ID assigned in machine driver */
  28521. pr_err("%s: bad MM ID\n", __func__);
  28522. return 0;
  28523. }
  28524. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28525. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  28526. return msm_bedais[i].active;
  28527. }
  28528. return 0;
  28529. }
  28530. static int get_cal_type_index(int32_t cal_type)
  28531. {
  28532. int ret = -EINVAL;
  28533. switch (cal_type) {
  28534. case ADM_TOPOLOGY_CAL_TYPE:
  28535. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  28536. break;
  28537. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  28538. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  28539. break;
  28540. default:
  28541. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  28542. }
  28543. return ret;
  28544. }
  28545. static int msm_routing_set_cal(int32_t cal_type,
  28546. size_t data_size, void *data)
  28547. {
  28548. int ret = 0;
  28549. int cal_index;
  28550. pr_debug("%s\n", __func__);
  28551. cal_index = get_cal_type_index(cal_type);
  28552. if (cal_index < 0) {
  28553. pr_err("%s: Could not get cal index %d\n",
  28554. __func__, cal_index);
  28555. ret = -EINVAL;
  28556. goto done;
  28557. }
  28558. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  28559. if (ret < 0) {
  28560. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  28561. __func__, ret, cal_type);
  28562. ret = -EINVAL;
  28563. goto done;
  28564. }
  28565. /* Pre-load if it is ADM topology */
  28566. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  28567. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  28568. msm_routing_load_topology(data_size, data);
  28569. }
  28570. done:
  28571. return ret;
  28572. }
  28573. static void msm_routing_delete_cal_data(void)
  28574. {
  28575. pr_debug("%s\n", __func__);
  28576. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  28577. }
  28578. static int msm_routing_init_cal_data(void)
  28579. {
  28580. int ret = 0;
  28581. struct cal_type_info cal_type_info[] = {
  28582. {{ADM_TOPOLOGY_CAL_TYPE,
  28583. {NULL, NULL, NULL,
  28584. msm_routing_set_cal, NULL, NULL} },
  28585. {NULL, NULL, cal_utils_match_buf_num} },
  28586. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  28587. {NULL, NULL, NULL,
  28588. msm_routing_set_cal, NULL, NULL} },
  28589. {NULL, NULL, cal_utils_match_buf_num} },
  28590. };
  28591. pr_debug("%s\n", __func__);
  28592. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28593. &cal_type_info[0]);
  28594. if (ret < 0) {
  28595. pr_err("%s: could not create cal type!\n",
  28596. __func__);
  28597. ret = -EINVAL;
  28598. goto err;
  28599. }
  28600. return ret;
  28601. err:
  28602. msm_routing_delete_cal_data();
  28603. return ret;
  28604. }
  28605. int __init msm_soc_routing_platform_init(void)
  28606. {
  28607. mutex_init(&routing_lock);
  28608. if (msm_routing_init_cal_data())
  28609. pr_err("%s: could not init cal data!\n", __func__);
  28610. afe_set_routing_callback(
  28611. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28612. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28613. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28614. return platform_driver_register(&msm_routing_pcm_driver);
  28615. }
  28616. void msm_soc_routing_platform_exit(void)
  28617. {
  28618. msm_routing_delete_cal_data();
  28619. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28620. mutex_destroy(&routing_lock);
  28621. platform_driver_unregister(&msm_routing_pcm_driver);
  28622. }
  28623. MODULE_DESCRIPTION("MSM routing platform driver");
  28624. MODULE_LICENSE("GPL v2");