msm-pcm-routing-v2.c 1.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/pcm_params.h>
  21. #include <sound/hwdep.h>
  22. #include <sound/audio_effects.h>
  23. #include <dsp/msm-dts-srs-tm-config.h>
  24. #include <dsp/q6voice.h>
  25. #include <dsp/q6adm-v2.h>
  26. #include <dsp/q6asm-v2.h>
  27. #include <dsp/q6afe-v2.h>
  28. #include <dsp/q6lsm.h>
  29. #include <dsp/q6core.h>
  30. #include <dsp/q6common.h>
  31. #include <dsp/audio_cal_utils.h>
  32. #include "msm-pcm-routing-v2.h"
  33. #include "msm-pcm-routing-devdep.h"
  34. #include "msm-qti-pp-config.h"
  35. #include "msm-dolby-dap-config.h"
  36. #include "msm-ds2-dap-config.h"
  37. #define DRV_NAME "msm-pcm-routing-v2"
  38. #ifndef CONFIG_DOLBY_DAP
  39. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  40. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  41. #endif
  42. #ifndef CONFIG_DOLBY_DS2
  43. #undef DS2_ADM_COPP_TOPOLOGY_ID
  44. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  45. #endif
  46. static struct mutex routing_lock;
  47. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  48. static int fm_switch_enable;
  49. static int hfp_switch_enable;
  50. static int a2dp_switch_enable;
  51. static int sco_switch_enable;
  52. static int int0_mi2s_switch_enable;
  53. static int int4_mi2s_switch_enable;
  54. static int pri_mi2s_switch_enable;
  55. static int sec_mi2s_switch_enable;
  56. static int tert_mi2s_switch_enable;
  57. static int quat_mi2s_switch_enable;
  58. static int quin_mi2s_switch_enable;
  59. static int sen_mi2s_switch_enable;
  60. static int fm_pcmrx_switch_enable;
  61. static int usb_switch_enable;
  62. static int lsm_port_index[MAX_LSM_SESSIONS];
  63. static int slim0_rx_aanc_fb_port;
  64. static int msm_route_ec_ref_rx;
  65. static int msm_ec_ref_ch = 4;
  66. static int msm_ec_ref_ch_downmixed = 4;
  67. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  68. static int msm_ec_ref_sampling_rate = 48000;
  69. static uint32_t voc_session_id = ALL_SESSION_VSID;
  70. static int msm_route_ext_ec_ref;
  71. static bool is_custom_stereo_on;
  72. static bool is_ds2_on;
  73. static bool ffecns_freeze_event;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  113. #define LSM_FUNCTION_TEXT "LSM Function"
  114. static const char * const lsm_port_text[] = {
  115. "None",
  116. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  117. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  118. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  119. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  120. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  121. TERT_TDM_TX_TEXT
  122. };
  123. struct msm_pcm_route_bdai_pp_params {
  124. u16 port_id; /* AFE port ID */
  125. unsigned long pp_params_config;
  126. bool mute_on;
  127. int latency;
  128. };
  129. static struct msm_pcm_route_bdai_pp_params
  130. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  131. {HDMI_RX, 0, 0, 0},
  132. {DISPLAY_PORT_RX, 0, 0, 0},
  133. };
  134. /*
  135. * The be_dai_name_table is passed to HAL so that it can specify the
  136. * BE ID for the BE it wants to enable based on the name. Thus there
  137. * is a matching table and structure in HAL that need to be updated
  138. * if any changes to these are made.
  139. */
  140. struct msm_pcm_route_bdai_name {
  141. unsigned int be_id;
  142. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  143. };
  144. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  145. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  146. int fe_id);
  147. static void msm_routing_load_topology(size_t data_size, void *data);
  148. static void msm_routing_unload_topology(uint32_t topology_id);
  149. static int msm_routing_get_bit_width(unsigned int format)
  150. {
  151. int bit_width;
  152. switch (format) {
  153. case SNDRV_PCM_FORMAT_S32_LE:
  154. bit_width = 32;
  155. break;
  156. case SNDRV_PCM_FORMAT_S24_LE:
  157. case SNDRV_PCM_FORMAT_S24_3LE:
  158. bit_width = 24;
  159. break;
  160. case SNDRV_PCM_FORMAT_S16_LE:
  161. default:
  162. bit_width = 16;
  163. }
  164. return bit_width;
  165. }
  166. static bool msm_is_resample_needed(int input_sr, int output_sr)
  167. {
  168. bool rc = false;
  169. if (input_sr != output_sr)
  170. rc = true;
  171. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  172. (rc ? "oh yes" : "not really"),
  173. input_sr, output_sr);
  174. return rc;
  175. }
  176. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  177. int channels)
  178. {
  179. int rc = 0;
  180. switch (topology) {
  181. case SRS_TRUMEDIA_TOPOLOGY_ID:
  182. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  183. msm_dts_srs_tm_init(port_id, copp_idx);
  184. break;
  185. case DS2_ADM_COPP_TOPOLOGY_ID:
  186. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  187. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  192. __func__, topology, port_id,
  193. is_custom_stereo_on, rc);
  194. break;
  195. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  196. if (is_ds2_on) {
  197. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  198. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. } else {
  204. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  205. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  206. is_custom_stereo_on);
  207. if (rc < 0)
  208. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  209. __func__, topology, port_id, rc);
  210. }
  211. break;
  212. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  213. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  214. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  215. if (rc < 0)
  216. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  217. __func__, topology, port_id, copp_idx, rc);
  218. break;
  219. default:
  220. /* custom topology specific feature param handlers */
  221. break;
  222. }
  223. }
  224. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  225. {
  226. switch (topology) {
  227. case SRS_TRUMEDIA_TOPOLOGY_ID:
  228. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  229. msm_dts_srs_tm_deinit(port_id);
  230. break;
  231. case DS2_ADM_COPP_TOPOLOGY_ID:
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  233. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  234. msm_ds2_dap_deinit(port_id);
  235. break;
  236. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  237. if (is_ds2_on) {
  238. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_ds2_dap_deinit(port_id);
  240. } else {
  241. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  242. msm_dolby_dap_deinit(port_id);
  243. }
  244. break;
  245. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  246. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  247. msm_qti_pp_asphere_deinit(port_id);
  248. break;
  249. default:
  250. /* custom topology specific feature deinit handlers */
  251. break;
  252. }
  253. }
  254. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  255. int path_type, int perf_mode)
  256. {
  257. int itr = 0, rc = 0;
  258. if ((path_type == ADM_PATH_PLAYBACK) &&
  259. (perf_mode == LEGACY_PCM_MODE) &&
  260. is_custom_stereo_on) {
  261. for (itr = 0; itr < payload.num_copps; itr++) {
  262. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  263. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  264. continue;
  265. }
  266. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  267. payload.port_id[itr],
  268. payload.copp_idx[itr],
  269. payload.session_id,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE);
  274. if (rc < 0)
  275. pr_err("%s: err setting custom stereo\n",
  276. __func__);
  277. }
  278. }
  279. }
  280. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  281. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  282. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  283. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  284. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  285. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  286. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  287. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  288. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  289. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  290. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  291. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_RX},
  293. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AFE_PCM_TX},
  295. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_RX},
  297. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_AUXPCM_TX},
  299. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE_PLAYBACK_TX},
  301. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_VOICE2_PLAYBACK_TX},
  303. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_RX},
  305. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  306. LPASS_BE_INCALL_RECORD_TX},
  307. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  308. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  309. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  310. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  311. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  312. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  313. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  314. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  315. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  316. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  317. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  318. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  319. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  320. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  321. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  322. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  323. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  324. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  325. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_RX},
  331. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_QUAT_MI2S_TX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_RX},
  335. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_MI2S_TX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_RX},
  339. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_MI2S_TX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_RX},
  343. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_TERT_MI2S_TX},
  345. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_AUDIO_I2S_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_RX},
  349. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_SEC_AUXPCM_TX},
  351. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_SPDIF_RX},
  353. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SEC_MI2S_RX_SD1},
  355. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_RX},
  357. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_QUIN_MI2S_TX},
  359. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_SENARY_MI2S_TX},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_0},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_1},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_2},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_3},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_4},
  381. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_RX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_TX_5},
  385. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_RX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_TX_6},
  389. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_RX_7},
  391. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_PRI_TDM_TX_7},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_0},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_1},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_2},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_3},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_4},
  413. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_RX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_TX_5},
  417. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_RX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_TX_6},
  421. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_RX_7},
  423. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_SEC_TDM_TX_7},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_0},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_1},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_2},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_3},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_4},
  445. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_RX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_TX_5},
  449. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_RX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_TX_6},
  453. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_RX_7},
  455. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_TERT_TDM_TX_7},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_0},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_1},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_2},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_3},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_4},
  477. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_RX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_TX_5},
  481. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_RX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_TX_6},
  485. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_RX_7},
  487. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUAT_TDM_TX_7},
  489. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_0},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_1},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_2},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_3},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_4},
  509. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_RX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_TX_5},
  513. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_RX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_TX_6},
  517. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_RX_7},
  519. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_QUIN_TDM_TX_7},
  521. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_RX_0},
  523. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_TX_0},
  525. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_RX_1},
  527. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_TX_1},
  529. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_RX_2},
  531. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_TX_2},
  533. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_RX_3},
  535. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_TX_3},
  537. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_RX_4},
  539. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_TX_4},
  541. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_RX_5},
  543. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_TX_5},
  545. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_RX_6},
  547. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_TX_6},
  549. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_RX_7},
  551. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_SEN_TDM_TX_7},
  553. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT_BT_A2DP_RX},
  555. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_RX},
  557. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_USB_AUDIO_TX},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT},
  561. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_DISPLAY_PORT1},
  563. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_RX},
  565. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_TERT_AUXPCM_TX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_RX},
  569. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUAT_AUXPCM_TX},
  571. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_RX},
  573. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_QUIN_AUXPCM_TX},
  575. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_RX},
  577. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT0_MI2S_TX},
  579. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_RX},
  581. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT1_MI2S_TX},
  583. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_RX},
  585. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT2_MI2S_TX},
  587. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_RX},
  589. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT3_MI2S_TX},
  591. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_RX},
  593. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT4_MI2S_TX},
  595. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_RX},
  597. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT5_MI2S_TX},
  599. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_RX},
  601. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_INT6_MI2S_TX},
  603. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_RX},
  605. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SEN_AUXPCM_TX},
  607. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_SENARY_MI2S_RX},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_RX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_TX_0},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_RX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_1},
  617. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_WSA_CDC_DMA_TX_2},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_0},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_1},
  623. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_VA_CDC_DMA_TX_2},
  625. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_RX_CDC_DMA_RX_0},
  627. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_TX_CDC_DMA_TX_0},
  629. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_RX_CDC_DMA_RX_1},
  631. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_TX_CDC_DMA_TX_1},
  633. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_RX_CDC_DMA_RX_2},
  635. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_TX_CDC_DMA_TX_2},
  637. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_RX_CDC_DMA_RX_3},
  639. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_TX_CDC_DMA_TX_3},
  641. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_RX_CDC_DMA_RX_4},
  643. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_TX_CDC_DMA_TX_4},
  645. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_RX_CDC_DMA_RX_5},
  647. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_TX_CDC_DMA_TX_5},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_6},
  651. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_RX_CDC_DMA_RX_7},
  653. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_PRI_SPDIF_TX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_RX},
  657. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  658. LPASS_BE_SEC_SPDIF_TX},
  659. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  660. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  661. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  662. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_PRI_META_MI2S_RX},
  664. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_SEC_META_MI2S_RX},
  666. };
  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. /* MULTIMEDIA24 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA25 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA26 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA27 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* MULTIMEDIA28 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* MULTIMEDIA29 */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* MULTIMEDIA30 */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* VOIP */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* AFE_RX */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* AFE_TX */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* VOICE_STUB */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* DTMF_RX */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* QCHAT */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* VOLTE_STUB */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* LSM1 */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM2 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM3 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM4 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM5 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* LSM6 */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* LSM7 */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* LSM8 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. /* VOICE2_STUB */
  808. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  809. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  810. /* VOICEMMODE1 */
  811. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  812. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  813. /* VOICEMMODE2 */
  814. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  815. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  816. };
  817. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  818. [MSM_BACKEND_DAI_MAX];
  819. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  820. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  821. static struct msm_pcm_stream_app_type_cfg
  822. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  823. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  824. /* The caller of this should acquire routing lock */
  825. void msm_pcm_routing_get_bedai_info(int be_idx,
  826. struct msm_pcm_routing_bdai_data *be_dai)
  827. {
  828. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  829. memcpy(be_dai, &msm_bedais[be_idx],
  830. sizeof(struct msm_pcm_routing_bdai_data));
  831. }
  832. /* The caller of this should acquire routing lock */
  833. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  834. struct msm_pcm_routing_fdai_data *fe_dai)
  835. {
  836. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  837. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  838. sizeof(struct msm_pcm_routing_fdai_data));
  839. }
  840. void msm_pcm_routing_acquire_lock(void)
  841. {
  842. mutex_lock(&routing_lock);
  843. }
  844. void msm_pcm_routing_release_lock(void)
  845. {
  846. mutex_unlock(&routing_lock);
  847. }
  848. static int msm_pcm_routing_get_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_info("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  860. {
  861. int idx;
  862. pr_debug("%s: app_type: %d\n", __func__, app_type);
  863. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  864. if (lsm_app_type_cfg[idx].app_type == app_type)
  865. return idx;
  866. }
  867. pr_debug("%s: App type not available, fallback to default\n", __func__);
  868. return 0;
  869. }
  870. static int get_port_id(int port_id)
  871. {
  872. int ret = port_id;
  873. if (port_id == AFE_LOOPBACK_TX) {
  874. /*
  875. * Return afe_loopback_tx_port_id if set. Else return
  876. * msm_ec_ref_port_id to maintain backward compatibility.
  877. */
  878. if (afe_loopback_tx_port_id != -1)
  879. ret = afe_loopback_tx_port_id;
  880. else
  881. ret = msm_ec_ref_port_id;
  882. }
  883. return ret;
  884. }
  885. static bool is_mm_lsm_fe_id(int fe_id)
  886. {
  887. bool rc = true;
  888. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  889. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  890. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  891. rc = false;
  892. }
  893. return rc;
  894. }
  895. /*
  896. * msm_pcm_routing_send_chmix_cfg:
  897. * send the channel mixer command to mix the input channels
  898. * into output channels.
  899. *
  900. * @fe_id: front end id
  901. * @ip_channel_cnt: input channel count
  902. * @op_channel_cnt: output channel count
  903. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  904. * @session_type: indicates session is of type TX or RX
  905. * @stream_type: indicates either Audio or Listen stream type
  906. */
  907. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  908. int op_channel_cnt, int *ch_wght_coeff,
  909. int session_type, int stream_type)
  910. {
  911. int rc = 0, idx = 0;
  912. int be_index = 0, port_id;
  913. unsigned int session_id = 0;
  914. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  915. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  916. stream_type);
  917. if (!is_mm_lsm_fe_id(fe_id)) {
  918. /* bad ID assigned in machine driver */
  919. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  920. return -EINVAL;
  921. }
  922. if (ch_wght_coeff == NULL) {
  923. pr_err("%s: Null channel weightage coefficients passed\n",
  924. __func__);
  925. return -EINVAL;
  926. }
  927. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  928. port_id = msm_bedais[be_index].port_id;
  929. if (!msm_bedais[be_index].active ||
  930. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  931. continue;
  932. session_id = fe_dai_map[fe_id][session_type].strm_id;
  933. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  934. unsigned long copp =
  935. session_copp_map[fe_id][session_type][be_index];
  936. if (!test_bit(idx, &copp))
  937. continue;
  938. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  939. session_id, ip_channel_cnt,
  940. op_channel_cnt, ch_wght_coeff,
  941. session_type, stream_type);
  942. if (rc < 0)
  943. pr_err("%s: err setting channel mix config\n",
  944. __func__);
  945. }
  946. }
  947. return 0;
  948. }
  949. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  950. /**
  951. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  952. * setting before use case start.
  953. *
  954. * @fe_id: frontend idx
  955. * @type: stream direction type
  956. * @params: parameters of channel mixer setting
  957. *
  958. * Return 0 for success
  959. */
  960. int msm_pcm_routing_set_channel_mixer_cfg(
  961. int fe_id, int type,
  962. struct msm_pcm_channel_mixer *params)
  963. {
  964. int i, j = 0;
  965. channel_mixer_v2[fe_id][type].enable = params->enable;
  966. channel_mixer_v2[fe_id][type].rule = params->rule;
  967. channel_mixer_v2[fe_id][type].input_channel =
  968. params->input_channel;
  969. channel_mixer_v2[fe_id][type].output_channel =
  970. params->output_channel;
  971. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  972. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  973. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  974. params->in_ch_map[i];
  975. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  976. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  977. params->out_ch_map[i];
  978. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  979. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  980. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  981. params->channel_weight[i][j];
  982. channel_mixer_v2[fe_id][type].override_in_ch_map =
  983. params->override_in_ch_map;
  984. channel_mixer_v2[fe_id][type].override_out_ch_map =
  985. params->override_out_ch_map;
  986. return 0;
  987. }
  988. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  989. int msm_pcm_routing_reg_stream_app_type_cfg(
  990. int fedai_id, int session_type, int be_id,
  991. struct msm_pcm_stream_app_type_cfg *cfg_data)
  992. {
  993. int ret = 0;
  994. if (cfg_data == NULL) {
  995. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  996. ret = -EINVAL;
  997. goto done;
  998. }
  999. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1000. __func__, fedai_id, session_type, be_id,
  1001. cfg_data->app_type, cfg_data->acdb_dev_id,
  1002. cfg_data->sample_rate);
  1003. if (!is_mm_lsm_fe_id(fedai_id)) {
  1004. pr_err("%s: Invalid machine driver ID %d\n",
  1005. __func__, fedai_id);
  1006. ret = -EINVAL;
  1007. goto done;
  1008. }
  1009. if (session_type != SESSION_TYPE_RX &&
  1010. session_type != SESSION_TYPE_TX) {
  1011. pr_err("%s: Invalid session type %d\n",
  1012. __func__, session_type);
  1013. ret = -EINVAL;
  1014. goto done;
  1015. }
  1016. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1017. pr_err("%s: Received out of bounds be_id %d\n",
  1018. __func__, be_id);
  1019. ret = -EINVAL;
  1020. goto done;
  1021. }
  1022. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1023. /*
  1024. * Store the BE ID of the configuration information set as the latest so
  1025. * the get mixer control knows what to return.
  1026. */
  1027. last_be_id_configured[fedai_id][session_type] = be_id;
  1028. done:
  1029. return ret;
  1030. }
  1031. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1032. /**
  1033. * msm_pcm_routing_get_stream_app_type_cfg
  1034. *
  1035. * Receives fedai_id, session_type, be_id, and populates app_type,
  1036. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1037. * -EINVAL and does not alter passed values.
  1038. *
  1039. * fedai_id - Passed value, front end ID for which app type config is wanted
  1040. * session_type - Passed value, session type for which app type config
  1041. * is wanted
  1042. * be_id - Returned value, back end device id the app type config data is for
  1043. * cfg_data - Returned value, configuration data used by app type config
  1044. */
  1045. int msm_pcm_routing_get_stream_app_type_cfg(
  1046. int fedai_id, int session_type, int *bedai_id,
  1047. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1048. {
  1049. int be_id;
  1050. int ret = 0;
  1051. if (bedai_id == NULL) {
  1052. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1053. ret = -EINVAL;
  1054. goto done;
  1055. } else if (cfg_data == NULL) {
  1056. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1057. ret = -EINVAL;
  1058. goto done;
  1059. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1060. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. } else if (session_type != SESSION_TYPE_RX &&
  1064. session_type != SESSION_TYPE_TX) {
  1065. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1066. ret = -EINVAL;
  1067. goto done;
  1068. }
  1069. be_id = last_be_id_configured[fedai_id][session_type];
  1070. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1071. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1072. ret = -EINVAL;
  1073. goto done;
  1074. }
  1075. *bedai_id = be_id;
  1076. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1077. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1078. __func__, fedai_id, session_type, *bedai_id,
  1079. cfg_data->app_type, cfg_data->acdb_dev_id,
  1080. cfg_data->sample_rate);
  1081. done:
  1082. return ret;
  1083. }
  1084. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1085. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1086. int cal_index)
  1087. {
  1088. struct list_head *ptr, *next;
  1089. struct cal_block_data *cal_block = NULL;
  1090. pr_debug("%s\n", __func__);
  1091. list_for_each_safe(ptr, next,
  1092. &cal_data[cal_index]->cal_blocks) {
  1093. cal_block = list_entry(ptr,
  1094. struct cal_block_data, list);
  1095. if (cal_utils_is_cal_stale(cal_block))
  1096. continue;
  1097. if (((struct audio_cal_info_adm_top *)cal_block
  1098. ->cal_info)->path == path) {
  1099. return cal_block;
  1100. }
  1101. }
  1102. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1103. return NULL;
  1104. }
  1105. static struct cal_block_data *msm_routing_find_topology(int path,
  1106. int app_type,
  1107. int acdb_id,
  1108. int cal_index,
  1109. bool exact)
  1110. {
  1111. struct list_head *ptr, *next;
  1112. struct cal_block_data *cal_block = NULL;
  1113. struct audio_cal_info_adm_top *cal_info;
  1114. pr_debug("%s\n", __func__);
  1115. list_for_each_safe(ptr, next,
  1116. &cal_data[cal_index]->cal_blocks) {
  1117. cal_block = list_entry(ptr,
  1118. struct cal_block_data, list);
  1119. if (cal_utils_is_cal_stale(cal_block))
  1120. continue;
  1121. cal_info = (struct audio_cal_info_adm_top *)
  1122. cal_block->cal_info;
  1123. if ((cal_info->path == path) &&
  1124. (cal_info->app_type == app_type) &&
  1125. (cal_info->acdb_id == acdb_id)) {
  1126. return cal_block;
  1127. }
  1128. }
  1129. pr_debug("%s: Can't find topology for path %d, app %d, "
  1130. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1131. exact ? "fail" : "defaulting to search by path");
  1132. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1133. cal_index);
  1134. }
  1135. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1136. int acdb_dev_id, int idx,
  1137. bool exact)
  1138. {
  1139. int topology = -EINVAL;
  1140. struct cal_block_data *cal_block = NULL;
  1141. mutex_lock(&cal_data[idx]->lock);
  1142. cal_block = msm_routing_find_topology(session_type, app_type,
  1143. acdb_dev_id, idx, exact);
  1144. if (cal_block != NULL) {
  1145. topology = ((struct audio_cal_info_adm_top *)
  1146. cal_block->cal_info)->topology;
  1147. }
  1148. mutex_unlock(&cal_data[idx]->lock);
  1149. return topology;
  1150. }
  1151. /*
  1152. * Retrieving cal_block will mark cal_block as stale.
  1153. * Hence it cannot be reused or resent unless the flag
  1154. * is reset.
  1155. */
  1156. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1157. int be_id)
  1158. {
  1159. int topology = NULL_COPP_TOPOLOGY;
  1160. int app_type = 0, acdb_dev_id = 0;
  1161. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1162. __func__, fedai_id, session_type, be_id);
  1163. if (cal_data == NULL)
  1164. goto done;
  1165. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1166. acdb_dev_id =
  1167. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1168. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1169. topology = msm_routing_find_topology_on_index(session_type,
  1170. app_type,
  1171. acdb_dev_id,
  1172. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1173. true /*exact*/);
  1174. if (topology < 0) {
  1175. pr_debug("%s: Check for compatible topology\n", __func__);
  1176. topology = msm_routing_find_topology_on_index(session_type,
  1177. app_type,
  1178. acdb_dev_id,
  1179. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1180. false /*exact*/);
  1181. if (topology < 0)
  1182. topology = NULL_COPP_TOPOLOGY;
  1183. }
  1184. done:
  1185. pr_debug("%s: Using topology %d\n", __func__, topology);
  1186. return topology;
  1187. }
  1188. static uint8_t is_be_dai_extproc(int be_dai)
  1189. {
  1190. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1191. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1192. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1193. return 1;
  1194. else
  1195. return 0;
  1196. }
  1197. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1198. int path_type, int perf_mode,
  1199. uint32_t passthr_mode)
  1200. {
  1201. int i, port_type, j, num_copps = 0;
  1202. struct route_payload payload;
  1203. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1204. path_type == ADM_PATH_COMPRESSED_RX) ?
  1205. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1206. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1207. if (!is_be_dai_extproc(i) &&
  1208. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1209. (msm_bedais[i].active) &&
  1210. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1211. int port_id = get_port_id(msm_bedais[i].port_id);
  1212. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1213. unsigned long copp =
  1214. session_copp_map[fedai_id][sess_type][i];
  1215. if (test_bit(j, &copp)) {
  1216. payload.port_id[num_copps] = port_id;
  1217. payload.copp_idx[num_copps] = j;
  1218. payload.app_type[num_copps] =
  1219. fe_dai_app_type_cfg
  1220. [fedai_id][sess_type][i]
  1221. .app_type;
  1222. payload.acdb_dev_id[num_copps] =
  1223. fe_dai_app_type_cfg
  1224. [fedai_id][sess_type][i]
  1225. .acdb_dev_id;
  1226. payload.sample_rate[num_copps] =
  1227. fe_dai_app_type_cfg
  1228. [fedai_id][sess_type][i]
  1229. .sample_rate;
  1230. num_copps++;
  1231. }
  1232. }
  1233. }
  1234. }
  1235. if (num_copps) {
  1236. payload.num_copps = num_copps;
  1237. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1238. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1239. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1240. }
  1241. }
  1242. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1243. int stream_type)
  1244. {
  1245. int i, session_type, path_type, port_type;
  1246. u32 mode = 0;
  1247. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1248. /* bad ID assigned in machine driver */
  1249. pr_err("%s: bad MM ID\n", __func__);
  1250. return;
  1251. }
  1252. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1253. session_type = SESSION_TYPE_RX;
  1254. path_type = ADM_PATH_PLAYBACK;
  1255. port_type = MSM_AFE_PORT_TYPE_RX;
  1256. } else {
  1257. session_type = SESSION_TYPE_TX;
  1258. path_type = ADM_PATH_LIVE_REC;
  1259. port_type = MSM_AFE_PORT_TYPE_TX;
  1260. }
  1261. mutex_lock(&routing_lock);
  1262. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1263. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1264. if (!is_be_dai_extproc(i) &&
  1265. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1266. (msm_bedais[i].active) &&
  1267. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1268. mode = afe_get_port_type(msm_bedais[i].port_id);
  1269. adm_connect_afe_port(mode, dspst_id,
  1270. msm_bedais[i].port_id);
  1271. break;
  1272. }
  1273. }
  1274. mutex_unlock(&routing_lock);
  1275. }
  1276. static bool route_check_fe_id_adm_support(int fe_id)
  1277. {
  1278. bool rc = true;
  1279. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1280. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1281. /* fe id is listen while port is set to afe */
  1282. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1283. ADM_LSM_PORT_INDEX) {
  1284. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1285. __func__, fe_id,
  1286. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1287. rc = false;
  1288. }
  1289. }
  1290. return rc;
  1291. }
  1292. /*
  1293. * msm_pcm_routing_get_pp_ch_cnt:
  1294. * Read the processed channel count
  1295. *
  1296. * @fe_id: Front end ID
  1297. * @session_type: Inidicates RX or TX session type
  1298. */
  1299. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1300. {
  1301. struct msm_pcm_stream_app_type_cfg cfg_data;
  1302. int be_id = 0, app_type_idx = 0, app_type = 0;
  1303. int ret = -EINVAL;
  1304. memset(&cfg_data, 0, sizeof(cfg_data));
  1305. if (!is_mm_lsm_fe_id(fe_id)) {
  1306. pr_err("%s: bad MM ID\n", __func__);
  1307. return -EINVAL;
  1308. }
  1309. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1310. &be_id, &cfg_data);
  1311. if (ret) {
  1312. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1313. return ret;
  1314. }
  1315. app_type = cfg_data.app_type;
  1316. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1317. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1318. }
  1319. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1320. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1321. int dspst_id, int stream_type,
  1322. uint32_t passthr_mode)
  1323. {
  1324. int i, j, session_type, path_type, port_type, topology;
  1325. int num_copps = 0;
  1326. struct route_payload payload;
  1327. u32 channels, sample_rate;
  1328. u16 bit_width = 16, be_bit_width;
  1329. bool is_lsm;
  1330. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1331. __func__, fe_id, perf_mode, dspst_id,
  1332. stream_type, passthr_mode);
  1333. if (!is_mm_lsm_fe_id(fe_id)) {
  1334. /* bad ID assigned in machine driver */
  1335. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1336. return -EINVAL;
  1337. }
  1338. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1339. session_type = SESSION_TYPE_RX;
  1340. if (passthr_mode != LEGACY_PCM)
  1341. path_type = ADM_PATH_COMPRESSED_RX;
  1342. else
  1343. path_type = ADM_PATH_PLAYBACK;
  1344. port_type = MSM_AFE_PORT_TYPE_RX;
  1345. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1346. session_type = SESSION_TYPE_TX;
  1347. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1348. path_type = ADM_PATH_COMPRESSED_TX;
  1349. else
  1350. path_type = ADM_PATH_LIVE_REC;
  1351. port_type = MSM_AFE_PORT_TYPE_TX;
  1352. } else {
  1353. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1354. return -EINVAL;
  1355. }
  1356. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1357. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1358. mutex_lock(&routing_lock);
  1359. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1360. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1361. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1362. if (!route_check_fe_id_adm_support(fe_id)) {
  1363. /* ignore adm open if not supported for fe_id */
  1364. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1365. mutex_unlock(&routing_lock);
  1366. return 0;
  1367. }
  1368. payload.num_copps = 0; /* only RX needs to use payload */
  1369. /* re-enable EQ if active */
  1370. msm_qti_pp_send_eq_values(fe_id);
  1371. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1372. if (!is_be_dai_extproc(i) &&
  1373. (afe_get_port_type(msm_bedais[i].port_id) ==
  1374. port_type) &&
  1375. (msm_bedais[i].active) &&
  1376. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1377. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1378. int port_id = get_port_id(msm_bedais[i].port_id);
  1379. /*
  1380. * check if ADM needs to be configured with different
  1381. * channel mapping than backend
  1382. */
  1383. if (!msm_bedais[i].adm_override_ch)
  1384. channels = msm_bedais[i].channel;
  1385. else
  1386. channels = msm_bedais[i].adm_override_ch;
  1387. bit_width = msm_routing_get_bit_width(
  1388. msm_bedais[i].format);
  1389. app_type =
  1390. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1391. if (app_type && is_lsm) {
  1392. app_type_idx =
  1393. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1394. sample_rate =
  1395. fe_dai_app_type_cfg[fe_id][session_type][i]
  1396. .sample_rate;
  1397. bit_width =
  1398. lsm_app_type_cfg[app_type_idx].bit_width;
  1399. } else if (app_type) {
  1400. app_type_idx =
  1401. msm_pcm_routing_get_app_type_idx(
  1402. app_type);
  1403. sample_rate =
  1404. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1405. bit_width =
  1406. app_type_cfg[app_type_idx].bit_width;
  1407. } else {
  1408. sample_rate = msm_bedais[i].sample_rate;
  1409. }
  1410. acdb_dev_id =
  1411. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1412. topology = msm_routing_get_adm_topology(fe_id,
  1413. session_type,
  1414. i);
  1415. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1416. || (passthr_mode ==
  1417. COMPRESSED_PASSTHROUGH_GEN)
  1418. || (passthr_mode ==
  1419. COMPRESSED_PASSTHROUGH_IEC61937))
  1420. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1421. pr_debug("%s: Before adm open topology %d\n", __func__,
  1422. topology);
  1423. be_bit_width = msm_routing_get_bit_width(
  1424. msm_bedais[i].format);
  1425. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1426. == 384000 || msm_bedais[i].sample_rate ==
  1427. 352800) && be_bit_width == 32)
  1428. bit_width = msm_routing_get_bit_width(
  1429. SNDRV_PCM_FORMAT_S32_LE);
  1430. copp_idx =
  1431. adm_open(port_id, path_type, sample_rate,
  1432. channels, topology, perf_mode,
  1433. bit_width, app_type, acdb_dev_id,
  1434. session_type);
  1435. if ((copp_idx < 0) ||
  1436. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1437. pr_err("%s:adm open failed coppid:%d\n",
  1438. __func__, copp_idx);
  1439. mutex_unlock(&routing_lock);
  1440. return -EINVAL;
  1441. }
  1442. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1443. __func__, fe_id, session_type, i);
  1444. set_bit(copp_idx,
  1445. &session_copp_map[fe_id][session_type][i]);
  1446. if (msm_is_resample_needed(
  1447. sample_rate,
  1448. msm_bedais[i].sample_rate))
  1449. adm_copp_mfc_cfg(port_id, copp_idx,
  1450. msm_bedais[i].sample_rate);
  1451. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1452. unsigned long copp =
  1453. session_copp_map[fe_id][session_type][i];
  1454. if (test_bit(j, &copp)) {
  1455. payload.port_id[num_copps] = port_id;
  1456. payload.copp_idx[num_copps] = j;
  1457. payload.app_type[num_copps] =
  1458. fe_dai_app_type_cfg
  1459. [fe_id][session_type][i]
  1460. .app_type;
  1461. payload.acdb_dev_id[num_copps] =
  1462. fe_dai_app_type_cfg
  1463. [fe_id][session_type][i]
  1464. .acdb_dev_id;
  1465. payload.sample_rate[num_copps] =
  1466. fe_dai_app_type_cfg
  1467. [fe_id][session_type][i]
  1468. .sample_rate;
  1469. num_copps++;
  1470. }
  1471. }
  1472. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1473. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1474. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1475. msm_routing_send_device_pp_params(port_id,
  1476. copp_idx, fe_id);
  1477. }
  1478. }
  1479. if (num_copps) {
  1480. payload.num_copps = num_copps;
  1481. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1482. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1483. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1484. }
  1485. mutex_unlock(&routing_lock);
  1486. return 0;
  1487. }
  1488. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1489. {
  1490. u32 session_id;
  1491. switch (val) {
  1492. case MSM_FRONTEND_DAI_QCHAT:
  1493. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1494. break;
  1495. case MSM_FRONTEND_DAI_VOIP:
  1496. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1497. break;
  1498. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1499. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1500. break;
  1501. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1502. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1503. break;
  1504. default:
  1505. session_id = 0;
  1506. }
  1507. pr_debug("%s session_id 0x%x", __func__, session_id);
  1508. return session_id;
  1509. }
  1510. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1511. int dspst_id, int stream_type)
  1512. {
  1513. int copp_idx = 0;
  1514. int sess_type = 0;
  1515. int j = 0, be_id = 0;
  1516. int ret = 0;
  1517. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1518. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1519. return 0;
  1520. }
  1521. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1522. sess_type = SESSION_TYPE_RX;
  1523. else
  1524. sess_type = SESSION_TYPE_TX;
  1525. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1526. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1527. __func__, fe_id, sess_type);
  1528. return 0;
  1529. }
  1530. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1531. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1532. channel_mixer_v2[fe_id][sess_type].input_channel;
  1533. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1534. __func__, sess_type, fe_id,
  1535. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1536. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1537. msm_bedais[be_id].active);
  1538. if ((msm_bedais[be_id].active) &&
  1539. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1540. unsigned long copp =
  1541. session_copp_map[fe_id][sess_type][be_id];
  1542. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1543. if (test_bit(j, &copp)) {
  1544. copp_idx = j;
  1545. break;
  1546. }
  1547. }
  1548. ret = adm_programable_channel_mixer(
  1549. msm_bedais[be_id].port_id,
  1550. copp_idx, dspst_id, sess_type,
  1551. &channel_mixer_v2[fe_id][sess_type], 0);
  1552. }
  1553. return ret;
  1554. }
  1555. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1556. int dspst_id, int stream_type)
  1557. {
  1558. int copp_idx = 0;
  1559. int sess_type = 0;
  1560. int i = 0, j = 0, be_id;
  1561. int ret = 0;
  1562. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1563. dspst_id, stream_type);
  1564. if (ret) {
  1565. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1566. fe_id);
  1567. return ret;
  1568. }
  1569. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1570. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1571. return 0;
  1572. }
  1573. if (!(channel_mixer[fe_id].enable)) {
  1574. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1575. __func__, fe_id);
  1576. return 0;
  1577. }
  1578. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1579. sess_type = SESSION_TYPE_RX;
  1580. else
  1581. sess_type = SESSION_TYPE_TX;
  1582. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1583. ++i) {
  1584. be_id = channel_input[fe_id][i] - 1;
  1585. channel_mixer[fe_id].input_channels[i] =
  1586. msm_bedais[be_id].channel;
  1587. if ((msm_bedais[be_id].active) &&
  1588. test_bit(fe_id,
  1589. &msm_bedais[be_id].fe_sessions[0])) {
  1590. unsigned long copp =
  1591. session_copp_map[fe_id][sess_type][be_id];
  1592. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1593. if (test_bit(j, &copp)) {
  1594. copp_idx = j;
  1595. break;
  1596. }
  1597. }
  1598. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1599. __func__,
  1600. fe_id, be_id, msm_bedais[be_id].channel,
  1601. copp_idx);
  1602. ret = adm_programable_channel_mixer(
  1603. get_port_id(msm_bedais[be_id].port_id),
  1604. copp_idx, dspst_id, sess_type,
  1605. channel_mixer + fe_id, i);
  1606. }
  1607. }
  1608. return ret;
  1609. }
  1610. /**
  1611. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1612. * setting during runtime.
  1613. *
  1614. * @be_id: backend index
  1615. * @session_id: session index
  1616. * @session_type: session type
  1617. * @params: parameters for channel mixer
  1618. *
  1619. * Retuen: 0 for success, else error
  1620. */
  1621. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1622. int session_type,
  1623. struct msm_pcm_channel_mixer *params)
  1624. {
  1625. int rc = 0;
  1626. int port_id, copp_idx = 0;
  1627. be_id--;
  1628. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1629. pr_err("%s: invalid backend id %d\n", __func__,
  1630. be_id);
  1631. return -EINVAL;
  1632. }
  1633. port_id = msm_bedais[be_id].port_id;
  1634. copp_idx = adm_get_default_copp_idx(port_id);
  1635. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1636. __func__, port_id, copp_idx, session_id);
  1637. if ((params->input_channel < 0) ||
  1638. (params->input_channel > ADM_MAX_CHANNELS)) {
  1639. pr_err("%s: invalid input channel %d\n", __func__,
  1640. params->input_channel);
  1641. return -EINVAL;
  1642. }
  1643. if ((params->output_channel < 0) ||
  1644. (params->output_channel > ADM_MAX_CHANNELS)) {
  1645. pr_err("%s: invalid output channel %d\n", __func__,
  1646. params->output_channel);
  1647. return -EINVAL;
  1648. }
  1649. params->input_channels[0] = params->input_channel;
  1650. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1651. __func__, session_type,
  1652. params->override_in_ch_map,
  1653. params->override_out_ch_map,
  1654. msm_bedais[be_id].active);
  1655. rc = adm_programable_channel_mixer(port_id,
  1656. copp_idx,
  1657. session_id,
  1658. session_type,
  1659. params,
  1660. 0);
  1661. if (rc) {
  1662. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1663. rc = -EINVAL;
  1664. }
  1665. return rc;
  1666. }
  1667. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1668. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1669. int dspst_id, int stream_type)
  1670. {
  1671. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1672. struct route_payload payload;
  1673. u32 channels, sample_rate;
  1674. uint16_t bits_per_sample = 16, be_bit_width;
  1675. uint32_t passthr_mode = LEGACY_PCM;
  1676. int ret = 0;
  1677. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1678. /* bad ID assigned in machine driver */
  1679. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1680. return -EINVAL;
  1681. }
  1682. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1683. session_type = SESSION_TYPE_RX;
  1684. path_type = ADM_PATH_PLAYBACK;
  1685. port_type = MSM_AFE_PORT_TYPE_RX;
  1686. } else {
  1687. session_type = SESSION_TYPE_TX;
  1688. path_type = ADM_PATH_LIVE_REC;
  1689. port_type = MSM_AFE_PORT_TYPE_TX;
  1690. }
  1691. mutex_lock(&routing_lock);
  1692. payload.num_copps = 0; /* only RX needs to use payload */
  1693. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1694. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1695. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1696. /* re-enable EQ if active */
  1697. msm_qti_pp_send_eq_values(fedai_id);
  1698. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1699. if (!is_be_dai_extproc(i) &&
  1700. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1701. (msm_bedais[i].active) &&
  1702. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1703. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1704. int port_id = get_port_id(msm_bedais[i].port_id);
  1705. /*
  1706. * check if ADM needs to be configured with different
  1707. * channel mapping than backend
  1708. */
  1709. if (!msm_bedais[i].adm_override_ch)
  1710. channels = msm_bedais[i].channel;
  1711. else
  1712. channels = msm_bedais[i].adm_override_ch;
  1713. bits_per_sample = msm_routing_get_bit_width(
  1714. msm_bedais[i].format);
  1715. app_type =
  1716. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1717. if (app_type) {
  1718. app_type_idx =
  1719. msm_pcm_routing_get_app_type_idx(app_type);
  1720. sample_rate =
  1721. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1722. .sample_rate;
  1723. bits_per_sample =
  1724. app_type_cfg[app_type_idx].bit_width;
  1725. } else
  1726. sample_rate = msm_bedais[i].sample_rate;
  1727. acdb_dev_id =
  1728. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1729. .acdb_dev_id;
  1730. topology = msm_routing_get_adm_topology(fedai_id,
  1731. session_type,
  1732. i);
  1733. be_bit_width = msm_routing_get_bit_width(
  1734. msm_bedais[i].format);
  1735. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1736. 384000 ||msm_bedais[i].sample_rate == 352800)
  1737. && be_bit_width == 32)
  1738. bits_per_sample = msm_routing_get_bit_width(
  1739. SNDRV_PCM_FORMAT_S32_LE);
  1740. copp_idx = adm_open(port_id, path_type,
  1741. sample_rate, channels, topology,
  1742. perf_mode, bits_per_sample,
  1743. app_type, acdb_dev_id,
  1744. session_type);
  1745. if ((copp_idx < 0) ||
  1746. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1747. pr_err("%s: adm open failed copp_idx:%d\n",
  1748. __func__, copp_idx);
  1749. mutex_unlock(&routing_lock);
  1750. return -EINVAL;
  1751. }
  1752. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1753. __func__, fedai_id, session_type, i);
  1754. set_bit(copp_idx,
  1755. &session_copp_map[fedai_id][session_type][i]);
  1756. if (msm_is_resample_needed(
  1757. sample_rate,
  1758. msm_bedais[i].sample_rate))
  1759. adm_copp_mfc_cfg(port_id, copp_idx,
  1760. msm_bedais[i].sample_rate);
  1761. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1762. unsigned long copp =
  1763. session_copp_map[fedai_id][session_type][i];
  1764. if (test_bit(j, &copp)) {
  1765. payload.port_id[num_copps] = port_id;
  1766. payload.copp_idx[num_copps] = j;
  1767. payload.app_type[num_copps] =
  1768. fe_dai_app_type_cfg
  1769. [fedai_id][session_type]
  1770. [i].app_type;
  1771. payload.acdb_dev_id[num_copps] =
  1772. fe_dai_app_type_cfg
  1773. [fedai_id][session_type]
  1774. [i].acdb_dev_id;
  1775. payload.sample_rate[num_copps] =
  1776. fe_dai_app_type_cfg
  1777. [fedai_id][session_type]
  1778. [i].sample_rate;
  1779. num_copps++;
  1780. }
  1781. }
  1782. if (perf_mode == LEGACY_PCM_MODE)
  1783. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1784. topology, channels);
  1785. }
  1786. }
  1787. if (num_copps) {
  1788. payload.num_copps = num_copps;
  1789. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1790. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1791. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1792. }
  1793. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1794. dspst_id, stream_type);
  1795. mutex_unlock(&routing_lock);
  1796. return ret;
  1797. }
  1798. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1799. int dspst_id, int stream_type,
  1800. struct msm_pcm_routing_evt event_info)
  1801. {
  1802. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1803. stream_type)) {
  1804. pr_err("%s: failed to reg phy stream\n", __func__);
  1805. return -EINVAL;
  1806. }
  1807. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1808. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1809. else
  1810. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1811. return 0;
  1812. }
  1813. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1814. {
  1815. int i, port_type, session_type, path_type, topology, port_id;
  1816. struct msm_pcm_routing_fdai_data *fdai;
  1817. if (!is_mm_lsm_fe_id(fedai_id)) {
  1818. /* bad ID assigned in machine driver */
  1819. pr_err("%s: bad MM ID\n", __func__);
  1820. return;
  1821. }
  1822. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1823. port_type = MSM_AFE_PORT_TYPE_RX;
  1824. session_type = SESSION_TYPE_RX;
  1825. path_type = ADM_PATH_PLAYBACK;
  1826. } else {
  1827. port_type = MSM_AFE_PORT_TYPE_TX;
  1828. session_type = SESSION_TYPE_TX;
  1829. path_type = ADM_PATH_LIVE_REC;
  1830. }
  1831. mutex_lock(&routing_lock);
  1832. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1833. if (!is_be_dai_extproc(i) &&
  1834. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1835. (msm_bedais[i].active) &&
  1836. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1837. int idx;
  1838. unsigned long copp =
  1839. session_copp_map[fedai_id][session_type][i];
  1840. fdai = &fe_dai_map[fedai_id][session_type];
  1841. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1842. if (test_bit(idx, &copp))
  1843. break;
  1844. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1845. pr_debug("%s: copp idx is invalid, exiting\n",
  1846. __func__);
  1847. continue;
  1848. }
  1849. port_id = get_port_id(msm_bedais[i].port_id);
  1850. topology = adm_get_topology_for_port_copp_idx(
  1851. port_id, idx);
  1852. msm_routing_unload_topology(topology);
  1853. adm_close(port_id, fdai->perf_mode, idx);
  1854. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1855. __func__, copp, fedai_id, session_type, i);
  1856. clear_bit(idx,
  1857. &session_copp_map[fedai_id][session_type][i]);
  1858. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1859. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1860. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1861. (fdai->passthr_mode == LEGACY_PCM))
  1862. msm_pcm_routing_deinit_pp(port_id, topology);
  1863. }
  1864. }
  1865. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1866. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1867. mutex_unlock(&routing_lock);
  1868. }
  1869. /* Check if FE/BE route is set */
  1870. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1871. {
  1872. bool rc = false;
  1873. if (!is_mm_lsm_fe_id(fe_id)) {
  1874. /* recheck FE ID in the mixer control defined in this file */
  1875. pr_err("%s: bad MM ID\n", __func__);
  1876. return rc;
  1877. }
  1878. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1879. rc = true;
  1880. return rc;
  1881. }
  1882. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1883. {
  1884. int session_type, path_type, topology;
  1885. u32 channels, sample_rate;
  1886. uint16_t bits_per_sample = 16, be_bit_width;
  1887. struct msm_pcm_routing_fdai_data *fdai;
  1888. uint32_t passthr_mode;
  1889. bool is_lsm;
  1890. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1891. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1892. afe_get_port_type(msm_bedais[reg].port_id) ==
  1893. MSM_AFE_PORT_TYPE_RX) {
  1894. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1895. __func__, set, msm_bedais[reg].port_id);
  1896. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1897. } else if (!is_mm_lsm_fe_id(val)) {
  1898. /* recheck FE ID in the mixer control defined in this file */
  1899. pr_err("%s: bad MM ID\n", __func__);
  1900. return;
  1901. }
  1902. if (!route_check_fe_id_adm_support(val)) {
  1903. /* ignore adm open if not supported for fe_id */
  1904. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1905. if (set)
  1906. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1907. else
  1908. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1909. return;
  1910. }
  1911. session_type =
  1912. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1913. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1914. fdai = &fe_dai_map[val][session_type];
  1915. passthr_mode = fdai->passthr_mode;
  1916. if (session_type == SESSION_TYPE_RX) {
  1917. if (passthr_mode != LEGACY_PCM)
  1918. path_type = ADM_PATH_COMPRESSED_RX;
  1919. else
  1920. path_type = ADM_PATH_PLAYBACK;
  1921. } else {
  1922. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1923. path_type = ADM_PATH_COMPRESSED_TX;
  1924. else
  1925. path_type = ADM_PATH_LIVE_REC;
  1926. }
  1927. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1928. (val <= MSM_FRONTEND_DAI_LSM8);
  1929. mutex_lock(&routing_lock);
  1930. if (set) {
  1931. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1932. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1933. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1934. voc_start_playback(set, msm_bedais[reg].port_id);
  1935. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1936. if (msm_bedais[reg].active && fdai->strm_id !=
  1937. INVALID_SESSION) {
  1938. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1939. int port_id = get_port_id(msm_bedais[reg].port_id);
  1940. /*
  1941. * check if ADM needs to be configured with different
  1942. * channel mapping than backend
  1943. */
  1944. if (!msm_bedais[reg].adm_override_ch)
  1945. channels = msm_bedais[reg].channel;
  1946. else
  1947. channels = msm_bedais[reg].adm_override_ch;
  1948. if (session_type == SESSION_TYPE_TX &&
  1949. fdai->be_srate &&
  1950. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1951. pr_debug("%s: flush strm %d diff BE rates\n",
  1952. __func__, fdai->strm_id);
  1953. if (fdai->event_info.event_func)
  1954. fdai->event_info.event_func(
  1955. MSM_PCM_RT_EVT_BUF_RECFG,
  1956. fdai->event_info.priv_data);
  1957. fdai->be_srate = 0; /* might not need it */
  1958. }
  1959. bits_per_sample = msm_routing_get_bit_width(
  1960. msm_bedais[reg].format);
  1961. app_type =
  1962. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1963. if (app_type && is_lsm) {
  1964. app_type_idx =
  1965. msm_pcm_routing_get_lsm_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. lsm_app_type_cfg[app_type_idx].bit_width;
  1971. } else if (app_type) {
  1972. app_type_idx =
  1973. msm_pcm_routing_get_app_type_idx(app_type);
  1974. sample_rate =
  1975. fe_dai_app_type_cfg[val][session_type][reg]
  1976. .sample_rate;
  1977. bits_per_sample =
  1978. app_type_cfg[app_type_idx].bit_width;
  1979. } else
  1980. sample_rate = msm_bedais[reg].sample_rate;
  1981. topology = msm_routing_get_adm_topology(val,
  1982. session_type,
  1983. reg);
  1984. acdb_dev_id =
  1985. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1986. be_bit_width = msm_routing_get_bit_width(
  1987. msm_bedais[reg].format);
  1988. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1989. == 384000 ||msm_bedais[reg].sample_rate ==
  1990. 352800) && be_bit_width == 32)
  1991. bits_per_sample = msm_routing_get_bit_width(
  1992. SNDRV_PCM_FORMAT_S32_LE);
  1993. copp_idx = adm_open(port_id, path_type,
  1994. sample_rate, channels, topology,
  1995. fdai->perf_mode, bits_per_sample,
  1996. app_type, acdb_dev_id,
  1997. session_type);
  1998. if ((copp_idx < 0) ||
  1999. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2000. pr_err("%s: adm open failed\n", __func__);
  2001. mutex_unlock(&routing_lock);
  2002. return;
  2003. }
  2004. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2005. __func__, val, session_type, reg);
  2006. set_bit(copp_idx,
  2007. &session_copp_map[val][session_type][reg]);
  2008. if (msm_is_resample_needed(
  2009. sample_rate,
  2010. msm_bedais[reg].sample_rate))
  2011. adm_copp_mfc_cfg(port_id, copp_idx,
  2012. msm_bedais[reg].sample_rate);
  2013. if (session_type == SESSION_TYPE_RX &&
  2014. fdai->event_info.event_func)
  2015. fdai->event_info.event_func(
  2016. MSM_PCM_RT_EVT_DEVSWITCH,
  2017. fdai->event_info.priv_data);
  2018. msm_pcm_routing_build_matrix(val, session_type,
  2019. path_type,
  2020. fdai->perf_mode,
  2021. passthr_mode);
  2022. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2023. (passthr_mode == LEGACY_PCM))
  2024. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2025. topology, channels);
  2026. }
  2027. } else {
  2028. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2029. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2030. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2031. voc_start_playback(set, msm_bedais[reg].port_id);
  2032. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2033. if (msm_bedais[reg].active && fdai->strm_id !=
  2034. INVALID_SESSION) {
  2035. int idx;
  2036. int port_id;
  2037. unsigned long copp =
  2038. session_copp_map[val][session_type][reg];
  2039. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2040. if (test_bit(idx, &copp))
  2041. break;
  2042. if (idx >= MAX_COPPS_PER_PORT) {
  2043. pr_debug("%s: copp idx is invalid, exiting\n",
  2044. __func__);
  2045. mutex_unlock(&routing_lock);
  2046. return;
  2047. }
  2048. port_id = get_port_id(msm_bedais[reg].port_id);
  2049. topology = adm_get_topology_for_port_copp_idx(port_id,
  2050. idx);
  2051. msm_routing_unload_topology(topology);
  2052. adm_close(port_id, fdai->perf_mode, idx);
  2053. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2054. __func__, copp, val, session_type, reg,
  2055. topology);
  2056. clear_bit(idx,
  2057. &session_copp_map[val][session_type][reg]);
  2058. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2059. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2060. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2061. (passthr_mode == LEGACY_PCM))
  2062. msm_pcm_routing_deinit_pp(port_id, topology);
  2063. msm_pcm_routing_build_matrix(val, session_type,
  2064. path_type,
  2065. fdai->perf_mode,
  2066. passthr_mode);
  2067. }
  2068. }
  2069. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2070. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2071. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2072. mutex_unlock(&routing_lock);
  2073. }
  2074. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2075. struct snd_ctl_elem_value *ucontrol)
  2076. {
  2077. struct soc_mixer_control *mc =
  2078. (struct soc_mixer_control *)kcontrol->private_value;
  2079. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2080. ucontrol->value.integer.value[0] = 1;
  2081. else
  2082. ucontrol->value.integer.value[0] = 0;
  2083. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2084. ucontrol->value.integer.value[0]);
  2085. return 0;
  2086. }
  2087. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2088. struct snd_ctl_elem_value *ucontrol)
  2089. {
  2090. struct snd_soc_dapm_widget *widget =
  2091. snd_soc_dapm_kcontrol_widget(kcontrol);
  2092. struct soc_mixer_control *mc =
  2093. (struct soc_mixer_control *)kcontrol->private_value;
  2094. struct snd_soc_dapm_update *update = NULL;
  2095. if (ucontrol->value.integer.value[0] &&
  2096. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2097. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2098. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2099. update);
  2100. } else if (!ucontrol->value.integer.value[0] &&
  2101. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2102. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2103. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2104. update);
  2105. }
  2106. return 1;
  2107. }
  2108. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2109. struct snd_ctl_elem_value *ucontrol)
  2110. {
  2111. struct soc_mixer_control *mc =
  2112. (struct soc_mixer_control *)kcontrol->private_value;
  2113. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2114. ucontrol->value.integer.value[0] = 1;
  2115. else
  2116. ucontrol->value.integer.value[0] = 0;
  2117. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2118. ucontrol->value.integer.value[0]);
  2119. return 0;
  2120. }
  2121. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2122. struct snd_ctl_elem_value *ucontrol)
  2123. {
  2124. struct snd_soc_dapm_widget *widget =
  2125. snd_soc_dapm_kcontrol_widget(kcontrol);
  2126. struct soc_mixer_control *mc =
  2127. (struct soc_mixer_control *)kcontrol->private_value;
  2128. struct snd_soc_dapm_update *update = NULL;
  2129. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2130. ucontrol->value.integer.value[0]);
  2131. if (ucontrol->value.integer.value[0]) {
  2132. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2133. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2134. snd_soc_dapm_mixer_update_power(widget->dapm,
  2135. kcontrol, 1, update);
  2136. } else if (!ucontrol->value.integer.value[0]) {
  2137. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2138. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2139. snd_soc_dapm_mixer_update_power(widget->dapm,
  2140. kcontrol, 0, update);
  2141. }
  2142. return 1;
  2143. }
  2144. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2145. {
  2146. u32 session_id = 0;
  2147. u16 path_type;
  2148. struct media_format_info voc_be_media_format;
  2149. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2150. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2151. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2152. __func__, val, session_id);
  2153. mutex_lock(&routing_lock);
  2154. if (set)
  2155. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2156. else
  2157. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2158. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2159. afe_get_port_type(msm_bedais[reg].port_id) ==
  2160. MSM_AFE_PORT_TYPE_RX) {
  2161. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2162. __func__, set, msm_bedais[reg].port_id);
  2163. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2164. }
  2165. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2166. MSM_AFE_PORT_TYPE_RX)
  2167. path_type = RX_PATH;
  2168. else
  2169. path_type = TX_PATH;
  2170. if (set) {
  2171. if (msm_bedais[reg].active) {
  2172. voc_set_route_flag(session_id, path_type, 1);
  2173. memset(&voc_be_media_format, 0,
  2174. sizeof(struct media_format_info));
  2175. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2176. voc_be_media_format.num_channels =
  2177. msm_bedais[reg].channel;
  2178. voc_be_media_format.sample_rate =
  2179. msm_bedais[reg].sample_rate;
  2180. voc_be_media_format.bits_per_sample =
  2181. msm_bedais[reg].format;
  2182. /* Defaulting this to 1 for voice call usecases */
  2183. voc_be_media_format.channel_mapping[0] = 1;
  2184. voc_set_device_config(session_id, path_type,
  2185. &voc_be_media_format);
  2186. if (voc_get_route_flag(session_id, TX_PATH) &&
  2187. voc_get_route_flag(session_id, RX_PATH))
  2188. voc_enable_device(session_id);
  2189. } else {
  2190. pr_debug("%s BE is not active\n", __func__);
  2191. }
  2192. } else {
  2193. voc_set_route_flag(session_id, path_type, 0);
  2194. voc_disable_device(session_id);
  2195. }
  2196. mutex_unlock(&routing_lock);
  2197. }
  2198. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2199. struct snd_ctl_elem_value *ucontrol)
  2200. {
  2201. struct soc_mixer_control *mc =
  2202. (struct soc_mixer_control *)kcontrol->private_value;
  2203. mutex_lock(&routing_lock);
  2204. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2205. ucontrol->value.integer.value[0] = 1;
  2206. else
  2207. ucontrol->value.integer.value[0] = 0;
  2208. mutex_unlock(&routing_lock);
  2209. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2210. ucontrol->value.integer.value[0]);
  2211. return 0;
  2212. }
  2213. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2214. struct snd_ctl_elem_value *ucontrol)
  2215. {
  2216. struct snd_soc_dapm_widget *widget =
  2217. snd_soc_dapm_kcontrol_widget(kcontrol);
  2218. struct soc_mixer_control *mc =
  2219. (struct soc_mixer_control *)kcontrol->private_value;
  2220. struct snd_soc_dapm_update *update = NULL;
  2221. if (ucontrol->value.integer.value[0]) {
  2222. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2223. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2224. update);
  2225. } else {
  2226. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2227. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2228. update);
  2229. }
  2230. return 1;
  2231. }
  2232. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2233. struct snd_ctl_elem_value *ucontrol)
  2234. {
  2235. struct soc_mixer_control *mc =
  2236. (struct soc_mixer_control *)kcontrol->private_value;
  2237. mutex_lock(&routing_lock);
  2238. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2239. ucontrol->value.integer.value[0] = 1;
  2240. else
  2241. ucontrol->value.integer.value[0] = 0;
  2242. mutex_unlock(&routing_lock);
  2243. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2244. ucontrol->value.integer.value[0]);
  2245. return 0;
  2246. }
  2247. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2248. struct snd_ctl_elem_value *ucontrol)
  2249. {
  2250. struct snd_soc_dapm_widget *widget =
  2251. snd_soc_dapm_kcontrol_widget(kcontrol);
  2252. struct soc_mixer_control *mc =
  2253. (struct soc_mixer_control *)kcontrol->private_value;
  2254. struct snd_soc_dapm_update *update = NULL;
  2255. if (ucontrol->value.integer.value[0]) {
  2256. mutex_lock(&routing_lock);
  2257. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2258. mutex_unlock(&routing_lock);
  2259. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2260. update);
  2261. } else {
  2262. mutex_lock(&routing_lock);
  2263. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2264. mutex_unlock(&routing_lock);
  2265. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2266. update);
  2267. }
  2268. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2269. ucontrol->value.integer.value[0]);
  2270. return 1;
  2271. }
  2272. /*
  2273. * Return the mapping between port ID and backend ID to enable the AFE callback
  2274. * to determine the acdb_dev_id from the port id
  2275. */
  2276. int msm_pcm_get_be_id_from_port_id(int port_id)
  2277. {
  2278. int i;
  2279. int be_id = -EINVAL;
  2280. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2281. if (msm_bedais[i].port_id == port_id) {
  2282. be_id = i;
  2283. break;
  2284. }
  2285. }
  2286. return be_id;
  2287. }
  2288. /*
  2289. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2290. * correct AFE calibration information by comparing the header information.
  2291. */
  2292. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2293. {
  2294. int acdb_id = -EINVAL;
  2295. int i = 0;
  2296. int session;
  2297. int port_type = afe_get_port_type(port_id);
  2298. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2299. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2300. __func__, port_id, be_id, port_type);
  2301. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2302. session = SESSION_TYPE_TX;
  2303. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2304. session = SESSION_TYPE_RX;
  2305. } else {
  2306. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2307. acdb_id = -EINVAL;
  2308. goto exit;
  2309. }
  2310. if (be_id < 0) {
  2311. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2312. goto exit;
  2313. }
  2314. mutex_lock(&routing_lock);
  2315. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2316. MSM_FRONTEND_DAI_MAX);
  2317. if (i < MSM_FRONTEND_DAI_MAX)
  2318. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2319. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2320. __func__, i, session, be_id, acdb_id);
  2321. mutex_unlock(&routing_lock);
  2322. exit:
  2323. return acdb_id;
  2324. }
  2325. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2326. struct snd_ctl_elem_value *ucontrol)
  2327. {
  2328. ucontrol->value.integer.value[0] = fm_switch_enable;
  2329. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2330. ucontrol->value.integer.value[0]);
  2331. return 0;
  2332. }
  2333. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2334. struct snd_ctl_elem_value *ucontrol)
  2335. {
  2336. struct snd_soc_dapm_widget *widget =
  2337. snd_soc_dapm_kcontrol_widget(kcontrol);
  2338. struct snd_soc_dapm_update *update = NULL;
  2339. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2340. ucontrol->value.integer.value[0]);
  2341. if (ucontrol->value.integer.value[0])
  2342. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2343. update);
  2344. else
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2346. update);
  2347. fm_switch_enable = ucontrol->value.integer.value[0];
  2348. return 1;
  2349. }
  2350. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2351. struct snd_ctl_elem_value *ucontrol)
  2352. {
  2353. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2354. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2355. ucontrol->value.integer.value[0]);
  2356. return 0;
  2357. }
  2358. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2359. struct snd_ctl_elem_value *ucontrol)
  2360. {
  2361. struct snd_soc_dapm_widget *widget =
  2362. snd_soc_dapm_kcontrol_widget(kcontrol);
  2363. struct snd_soc_dapm_update *update = NULL;
  2364. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2365. ucontrol->value.integer.value[0]);
  2366. if (ucontrol->value.integer.value[0])
  2367. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2368. 1, update);
  2369. else
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2371. 0, update);
  2372. hfp_switch_enable = ucontrol->value.integer.value[0];
  2373. return 1;
  2374. }
  2375. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2376. struct snd_ctl_elem_value *ucontrol)
  2377. {
  2378. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2379. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2380. ucontrol->value.integer.value[0]);
  2381. return 0;
  2382. }
  2383. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2384. struct snd_ctl_elem_value *ucontrol)
  2385. {
  2386. struct snd_soc_dapm_widget *widget =
  2387. snd_soc_dapm_kcontrol_widget(kcontrol);
  2388. struct snd_soc_dapm_update *update = NULL;
  2389. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2390. ucontrol->value.integer.value[0]);
  2391. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2392. if (a2dp_switch_enable)
  2393. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2394. 1, update);
  2395. else
  2396. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2397. 0, update);
  2398. return 1;
  2399. }
  2400. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2401. struct snd_ctl_elem_value *ucontrol)
  2402. {
  2403. ucontrol->value.integer.value[0] = sco_switch_enable;
  2404. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2405. ucontrol->value.integer.value[0]);
  2406. return 0;
  2407. }
  2408. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2409. struct snd_ctl_elem_value *ucontrol)
  2410. {
  2411. struct snd_soc_dapm_widget *widget =
  2412. snd_soc_dapm_kcontrol_widget(kcontrol);
  2413. struct snd_soc_dapm_update *update = NULL;
  2414. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2415. ucontrol->value.integer.value[0]);
  2416. sco_switch_enable = ucontrol->value.integer.value[0];
  2417. if (sco_switch_enable)
  2418. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2419. 1, update);
  2420. else
  2421. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2422. 0, update);
  2423. return 1;
  2424. }
  2425. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2426. struct snd_ctl_elem_value *ucontrol)
  2427. {
  2428. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2429. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2430. ucontrol->value.integer.value[0]);
  2431. return 0;
  2432. }
  2433. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2434. struct snd_ctl_elem_value *ucontrol)
  2435. {
  2436. struct snd_soc_dapm_widget *widget =
  2437. snd_soc_dapm_kcontrol_widget(kcontrol);
  2438. struct snd_soc_dapm_update *update = NULL;
  2439. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2440. ucontrol->value.integer.value[0]);
  2441. if (ucontrol->value.integer.value[0])
  2442. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2443. update);
  2444. else
  2445. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2446. update);
  2447. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2448. return 1;
  2449. }
  2450. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2451. struct snd_ctl_elem_value *ucontrol)
  2452. {
  2453. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2454. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2455. ucontrol->value.integer.value[0]);
  2456. return 0;
  2457. }
  2458. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2459. struct snd_ctl_elem_value *ucontrol)
  2460. {
  2461. struct snd_soc_dapm_widget *widget =
  2462. snd_soc_dapm_kcontrol_widget(kcontrol);
  2463. struct snd_soc_dapm_update *update = NULL;
  2464. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2465. ucontrol->value.integer.value[0]);
  2466. if (ucontrol->value.integer.value[0])
  2467. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2468. update);
  2469. else
  2470. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2471. update);
  2472. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2473. return 1;
  2474. }
  2475. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2476. struct snd_ctl_elem_value *ucontrol)
  2477. {
  2478. ucontrol->value.integer.value[0] = usb_switch_enable;
  2479. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2480. ucontrol->value.integer.value[0]);
  2481. return 0;
  2482. }
  2483. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2484. struct snd_ctl_elem_value *ucontrol)
  2485. {
  2486. struct snd_soc_dapm_widget *widget =
  2487. snd_soc_dapm_kcontrol_widget(kcontrol);
  2488. struct snd_soc_dapm_update *update = NULL;
  2489. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2490. ucontrol->value.integer.value[0]);
  2491. if (ucontrol->value.integer.value[0])
  2492. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2493. 1, update);
  2494. else
  2495. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2496. 0, update);
  2497. usb_switch_enable = ucontrol->value.integer.value[0];
  2498. return 1;
  2499. }
  2500. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2501. struct snd_ctl_elem_value *ucontrol)
  2502. {
  2503. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2504. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2505. ucontrol->value.integer.value[0]);
  2506. return 0;
  2507. }
  2508. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2509. struct snd_ctl_elem_value *ucontrol)
  2510. {
  2511. struct snd_soc_dapm_widget *widget =
  2512. snd_soc_dapm_kcontrol_widget(kcontrol);
  2513. struct snd_soc_dapm_update *update = NULL;
  2514. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2515. ucontrol->value.integer.value[0]);
  2516. if (ucontrol->value.integer.value[0])
  2517. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2518. update);
  2519. else
  2520. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2521. update);
  2522. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2523. return 1;
  2524. }
  2525. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2526. struct snd_ctl_elem_value *ucontrol)
  2527. {
  2528. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2529. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2530. ucontrol->value.integer.value[0]);
  2531. return 0;
  2532. }
  2533. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2534. struct snd_ctl_elem_value *ucontrol)
  2535. {
  2536. struct snd_soc_dapm_widget *widget =
  2537. snd_soc_dapm_kcontrol_widget(kcontrol);
  2538. struct snd_soc_dapm_update *update = NULL;
  2539. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2540. ucontrol->value.integer.value[0]);
  2541. if (ucontrol->value.integer.value[0])
  2542. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2543. update);
  2544. else
  2545. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2546. update);
  2547. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2548. return 1;
  2549. }
  2550. static int msm_routing_get_tert_mi2s_switch_mixer(
  2551. struct snd_kcontrol *kcontrol,
  2552. struct snd_ctl_elem_value *ucontrol)
  2553. {
  2554. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2555. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2556. ucontrol->value.integer.value[0]);
  2557. return 0;
  2558. }
  2559. static int msm_routing_put_tert_mi2s_switch_mixer(
  2560. struct snd_kcontrol *kcontrol,
  2561. struct snd_ctl_elem_value *ucontrol)
  2562. {
  2563. struct snd_soc_dapm_widget *widget =
  2564. snd_soc_dapm_kcontrol_widget(kcontrol);
  2565. struct snd_soc_dapm_update *update = NULL;
  2566. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2567. ucontrol->value.integer.value[0]);
  2568. if (ucontrol->value.integer.value[0])
  2569. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2570. update);
  2571. else
  2572. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2573. update);
  2574. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2575. return 1;
  2576. }
  2577. static int msm_routing_get_quat_mi2s_switch_mixer(
  2578. struct snd_kcontrol *kcontrol,
  2579. struct snd_ctl_elem_value *ucontrol)
  2580. {
  2581. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2582. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2583. ucontrol->value.integer.value[0]);
  2584. return 0;
  2585. }
  2586. static int msm_routing_put_quat_mi2s_switch_mixer(
  2587. struct snd_kcontrol *kcontrol,
  2588. struct snd_ctl_elem_value *ucontrol)
  2589. {
  2590. struct snd_soc_dapm_widget *widget =
  2591. snd_soc_dapm_kcontrol_widget(kcontrol);
  2592. struct snd_soc_dapm_update *update = NULL;
  2593. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2594. ucontrol->value.integer.value[0]);
  2595. if (ucontrol->value.integer.value[0])
  2596. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2597. update);
  2598. else
  2599. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2600. update);
  2601. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2602. return 1;
  2603. }
  2604. static int msm_routing_get_quin_mi2s_switch_mixer(
  2605. struct snd_kcontrol *kcontrol,
  2606. struct snd_ctl_elem_value *ucontrol)
  2607. {
  2608. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2609. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2610. ucontrol->value.integer.value[0]);
  2611. return 0;
  2612. }
  2613. static int msm_routing_put_quin_mi2s_switch_mixer(
  2614. struct snd_kcontrol *kcontrol,
  2615. struct snd_ctl_elem_value *ucontrol)
  2616. {
  2617. struct snd_soc_dapm_widget *widget =
  2618. snd_soc_dapm_kcontrol_widget(kcontrol);
  2619. struct snd_soc_dapm_update *update = NULL;
  2620. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2621. ucontrol->value.integer.value[0]);
  2622. if (ucontrol->value.integer.value[0])
  2623. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2624. update);
  2625. else
  2626. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2627. update);
  2628. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2629. return 1;
  2630. }
  2631. static int msm_routing_get_sen_mi2s_switch_mixer(
  2632. struct snd_kcontrol *kcontrol,
  2633. struct snd_ctl_elem_value *ucontrol)
  2634. {
  2635. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2636. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2637. ucontrol->value.integer.value[0]);
  2638. return 0;
  2639. }
  2640. static int msm_routing_put_sen_mi2s_switch_mixer(
  2641. struct snd_kcontrol *kcontrol,
  2642. struct snd_ctl_elem_value *ucontrol)
  2643. {
  2644. struct snd_soc_dapm_widget *widget =
  2645. snd_soc_dapm_kcontrol_widget(kcontrol);
  2646. struct snd_soc_dapm_update *update = NULL;
  2647. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2648. ucontrol->value.integer.value[0]);
  2649. if (ucontrol->value.integer.value[0])
  2650. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2651. update);
  2652. else
  2653. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2654. update);
  2655. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2656. return 1;
  2657. }
  2658. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2659. struct snd_ctl_elem_value *ucontrol)
  2660. {
  2661. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2662. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2663. ucontrol->value.integer.value[0]);
  2664. return 0;
  2665. }
  2666. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2667. struct snd_ctl_elem_value *ucontrol)
  2668. {
  2669. struct snd_soc_dapm_widget *widget =
  2670. snd_soc_dapm_kcontrol_widget(kcontrol);
  2671. struct snd_soc_dapm_update *update = NULL;
  2672. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2673. ucontrol->value.integer.value[0]);
  2674. if (ucontrol->value.integer.value[0])
  2675. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2676. update);
  2677. else
  2678. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2679. update);
  2680. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2681. return 1;
  2682. }
  2683. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2684. u8 *fe_idx)
  2685. {
  2686. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2687. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2688. fe_id = MSM_FRONTEND_DAI_LSM1;
  2689. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2690. fe_id = MSM_FRONTEND_DAI_LSM2;
  2691. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2692. fe_id = MSM_FRONTEND_DAI_LSM3;
  2693. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2694. fe_id = MSM_FRONTEND_DAI_LSM4;
  2695. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2696. fe_id = MSM_FRONTEND_DAI_LSM5;
  2697. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2698. fe_id = MSM_FRONTEND_DAI_LSM6;
  2699. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2700. fe_id = MSM_FRONTEND_DAI_LSM7;
  2701. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2702. fe_id = MSM_FRONTEND_DAI_LSM8;
  2703. } else {
  2704. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2705. kcontrol->id.name);
  2706. return;
  2707. }
  2708. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2709. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2710. }
  2711. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2712. struct snd_ctl_elem_value *ucontrol)
  2713. {
  2714. u8 fe_idx = 0;
  2715. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2716. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2717. return 0;
  2718. }
  2719. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2720. struct snd_ctl_elem_value *ucontrol)
  2721. {
  2722. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2723. int mux = ucontrol->value.enumerated.item[0];
  2724. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2725. u8 fe_idx = 0;
  2726. if (mux >= e->items) {
  2727. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2728. return -EINVAL;
  2729. }
  2730. pr_debug("%s: LSM enable %ld\n", __func__,
  2731. ucontrol->value.integer.value[0]);
  2732. switch (ucontrol->value.integer.value[0]) {
  2733. case 1:
  2734. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2735. break;
  2736. case 2:
  2737. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2738. break;
  2739. case 3:
  2740. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2741. break;
  2742. case 4:
  2743. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2744. break;
  2745. case 5:
  2746. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2747. break;
  2748. case 6:
  2749. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2750. break;
  2751. case 7:
  2752. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2753. break;
  2754. case 8:
  2755. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2756. break;
  2757. case 9:
  2758. lsm_port = ADM_LSM_PORT_ID;
  2759. break;
  2760. case 10:
  2761. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2762. break;
  2763. case 11:
  2764. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2765. break;
  2766. case 12:
  2767. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2768. break;
  2769. case 13:
  2770. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2771. break;
  2772. case 14:
  2773. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2774. break;
  2775. case 15:
  2776. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2777. break;
  2778. case 16:
  2779. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2780. break;
  2781. default:
  2782. pr_err("Default lsm port");
  2783. break;
  2784. }
  2785. set_lsm_port(lsm_port);
  2786. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2787. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2788. return 0;
  2789. }
  2790. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2791. struct snd_ctl_elem_value *ucontrol)
  2792. {
  2793. int i;
  2794. u16 port_id;
  2795. enum afe_mad_type mad_type;
  2796. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2797. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2798. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2799. strlen(lsm_port_text[i])))
  2800. break;
  2801. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2802. pr_warn("%s: Invalid id name %s\n", __func__,
  2803. kcontrol->id.name);
  2804. return -EINVAL;
  2805. }
  2806. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2807. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2808. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2809. strlen(lsm_port_text[7])))
  2810. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2811. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2812. strlen(lsm_port_text[8])))
  2813. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2814. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2815. strlen(lsm_port_text[10])))
  2816. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2817. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2818. strlen(lsm_port_text[14])))
  2819. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2820. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2821. strlen(lsm_port_text[15])))
  2822. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2823. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2824. strlen(lsm_port_text[16])))
  2825. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2826. mad_type = afe_port_get_mad_type(port_id);
  2827. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2828. mad_type);
  2829. switch (mad_type) {
  2830. case MAD_HW_NONE:
  2831. ucontrol->value.integer.value[0] = MADNONE;
  2832. break;
  2833. case MAD_HW_AUDIO:
  2834. ucontrol->value.integer.value[0] = MADAUDIO;
  2835. break;
  2836. case MAD_HW_BEACON:
  2837. ucontrol->value.integer.value[0] = MADBEACON;
  2838. break;
  2839. case MAD_HW_ULTRASOUND:
  2840. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2841. break;
  2842. case MAD_SW_AUDIO:
  2843. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2844. break;
  2845. default:
  2846. pr_warn("%s: Unknown\n", __func__);
  2847. return -EINVAL;
  2848. }
  2849. return 0;
  2850. }
  2851. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2852. struct snd_ctl_elem_value *ucontrol)
  2853. {
  2854. int i;
  2855. u16 port_id;
  2856. enum afe_mad_type mad_type;
  2857. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2858. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2859. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2860. strlen(lsm_port_text[i])))
  2861. break;
  2862. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2863. pr_warn("%s: Invalid id name %s\n", __func__,
  2864. kcontrol->id.name);
  2865. return -EINVAL;
  2866. }
  2867. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2868. switch (ucontrol->value.integer.value[0]) {
  2869. case MADNONE:
  2870. mad_type = MAD_HW_NONE;
  2871. break;
  2872. case MADAUDIO:
  2873. mad_type = MAD_HW_AUDIO;
  2874. break;
  2875. case MADBEACON:
  2876. mad_type = MAD_HW_BEACON;
  2877. break;
  2878. case MADULTRASOUND:
  2879. mad_type = MAD_HW_ULTRASOUND;
  2880. break;
  2881. case MADSWAUDIO:
  2882. mad_type = MAD_SW_AUDIO;
  2883. break;
  2884. default:
  2885. pr_warn("%s: Unknown\n", __func__);
  2886. return -EINVAL;
  2887. }
  2888. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2889. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2890. strlen(lsm_port_text[7])))
  2891. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2892. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2893. strlen(lsm_port_text[8])))
  2894. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2895. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2896. strlen(lsm_port_text[10])))
  2897. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2898. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2899. strlen(lsm_port_text[14])))
  2900. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2901. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2902. strlen(lsm_port_text[15])))
  2903. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2904. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2905. strlen(lsm_port_text[16])))
  2906. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2907. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2908. mad_type);
  2909. return afe_port_set_mad_type(port_id, mad_type);
  2910. }
  2911. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2912. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2913. adm_override_chs_text);
  2914. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2915. {
  2916. int backend_id;
  2917. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2918. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2919. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2920. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2921. } else {
  2922. pr_err("%s: unsupported backend id: %s",
  2923. __func__, kcontrol->id.name);
  2924. return -EINVAL;
  2925. }
  2926. return backend_id;
  2927. }
  2928. static int msm_routing_adm_channel_config_get(
  2929. struct snd_kcontrol *kcontrol,
  2930. struct snd_ctl_elem_value *ucontrol)
  2931. {
  2932. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2933. if (backend_id >= 0) {
  2934. mutex_lock(&routing_lock);
  2935. ucontrol->value.integer.value[0] =
  2936. msm_bedais[backend_id].adm_override_ch;
  2937. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2938. ucontrol->value.integer.value[0], backend_id);
  2939. mutex_unlock(&routing_lock);
  2940. }
  2941. return 0;
  2942. }
  2943. static int msm_routing_adm_channel_config_put(
  2944. struct snd_kcontrol *kcontrol,
  2945. struct snd_ctl_elem_value *ucontrol)
  2946. {
  2947. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2948. if (backend_id >= 0) {
  2949. mutex_lock(&routing_lock);
  2950. msm_bedais[backend_id].adm_override_ch =
  2951. ucontrol->value.integer.value[0];
  2952. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2953. __func__, backend_id,
  2954. msm_bedais[backend_id].adm_override_ch);
  2955. mutex_unlock(&routing_lock);
  2956. }
  2957. return 0;
  2958. }
  2959. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2960. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2961. msm_routing_adm_channel_config_get,
  2962. msm_routing_adm_channel_config_put),
  2963. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2964. msm_routing_adm_channel_config_get,
  2965. msm_routing_adm_channel_config_put),
  2966. };
  2967. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2968. struct snd_ctl_elem_value *ucontrol)
  2969. {
  2970. mutex_lock(&routing_lock);
  2971. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2972. mutex_unlock(&routing_lock);
  2973. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2974. ucontrol->value.integer.value[0]);
  2975. return 0;
  2976. };
  2977. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2978. struct snd_ctl_elem_value *ucontrol)
  2979. {
  2980. struct aanc_data aanc_info;
  2981. mutex_lock(&routing_lock);
  2982. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2983. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2984. ucontrol->value.integer.value[0]);
  2985. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2986. if (ucontrol->value.integer.value[0] == 0) {
  2987. aanc_info.aanc_active = false;
  2988. aanc_info.aanc_tx_port = 0;
  2989. aanc_info.aanc_rx_port = 0;
  2990. } else {
  2991. aanc_info.aanc_active = true;
  2992. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2993. aanc_info.aanc_tx_port =
  2994. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2995. }
  2996. afe_set_aanc_info(&aanc_info);
  2997. mutex_unlock(&routing_lock);
  2998. return 0;
  2999. };
  3000. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3001. struct snd_ctl_elem_value *ucontrol)
  3002. {
  3003. int idx = 0, shift = 0;
  3004. struct soc_mixer_control *mc =
  3005. (struct soc_mixer_control *)kcontrol->private_value;
  3006. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3007. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3008. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3009. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3010. return -EINVAL;
  3011. }
  3012. if (test_bit(shift,
  3013. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3014. ucontrol->value.integer.value[0] = 1;
  3015. else
  3016. ucontrol->value.integer.value[0] = 0;
  3017. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3018. ucontrol->value.integer.value[0]);
  3019. return 0;
  3020. }
  3021. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3022. struct snd_ctl_elem_value *ucontrol)
  3023. {
  3024. int idx = 0, shift = 0;
  3025. struct soc_mixer_control *mc =
  3026. (struct soc_mixer_control *)kcontrol->private_value;
  3027. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3028. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3029. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3030. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3031. return -EINVAL;
  3032. }
  3033. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3034. __func__, mc->shift, mc->rshift,
  3035. ucontrol->value.integer.value[0], idx, shift);
  3036. if (ucontrol->value.integer.value[0]) {
  3037. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3038. msm_bedais[mc->rshift].port_id);
  3039. set_bit(shift,
  3040. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3041. } else {
  3042. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3043. msm_bedais[mc->rshift].port_id);
  3044. clear_bit(shift,
  3045. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3046. }
  3047. return 1;
  3048. }
  3049. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3050. struct snd_ctl_elem_value *ucontrol)
  3051. {
  3052. u16 fe_id = 0;
  3053. fe_id = ((struct soc_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. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3060. return 0;
  3061. }
  3062. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3063. struct snd_ctl_elem_value *ucontrol)
  3064. {
  3065. u16 fe_id = 0;
  3066. fe_id = ((struct soc_mixer_control *)
  3067. kcontrol->private_value)->shift;
  3068. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3069. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3070. return -EINVAL;
  3071. }
  3072. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3073. return 1;
  3074. }
  3075. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3076. struct snd_ctl_elem_value *ucontrol)
  3077. {
  3078. u16 fe_id = 0;
  3079. fe_id = ((struct soc_multi_mixer_control *)
  3080. kcontrol->private_value)->shift;
  3081. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3082. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3083. return -EINVAL;
  3084. }
  3085. ucontrol->value.integer.value[0] =
  3086. channel_mixer[fe_id].output_channel;
  3087. return 0;
  3088. }
  3089. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3090. struct snd_ctl_elem_value *ucontrol)
  3091. {
  3092. u16 fe_id = 0;
  3093. fe_id = ((struct soc_multi_mixer_control *)
  3094. kcontrol->private_value)->shift;
  3095. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3096. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3097. return -EINVAL;
  3098. }
  3099. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3100. fe_id,
  3101. (unsigned int)(ucontrol->value.integer.value[0]));
  3102. channel_mixer[fe_id].output_channel =
  3103. (unsigned int)(ucontrol->value.integer.value[0]);
  3104. return 1;
  3105. }
  3106. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3107. /* If new backend is added, need update this array */
  3108. static const char *const be_name[] = {
  3109. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3110. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3111. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3112. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3113. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3114. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3115. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3116. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3117. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3118. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3119. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3120. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3121. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3122. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3123. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3124. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3125. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3126. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3127. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3128. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3129. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3130. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3131. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3132. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3133. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3134. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3135. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3136. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3137. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3138. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3139. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3140. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3141. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3142. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3143. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3144. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3145. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3146. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3147. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3148. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3149. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3150. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3151. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3152. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3153. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3154. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3155. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3156. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3157. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3158. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3159. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3160. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3161. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3162. "SEC_META_MI2S_RX"
  3163. };
  3164. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3165. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3166. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3167. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3168. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3169. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3170. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3171. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3172. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3173. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3174. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3175. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3176. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3177. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3178. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3179. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3180. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3181. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3182. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3183. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3184. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3185. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3186. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3187. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3188. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3189. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3190. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3191. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3192. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3193. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3194. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3195. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3196. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3197. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3198. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3199. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3200. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3201. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3202. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3203. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3204. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3205. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3206. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3207. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3208. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3209. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3210. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3211. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3212. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3213. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3214. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3215. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3216. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3217. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3218. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3219. unsigned int channels,
  3220. unsigned int items, const char *const names[])
  3221. {
  3222. if (uinfo->value.enumerated.item >= items)
  3223. uinfo->value.enumerated.item = items - 1;
  3224. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3225. sizeof(uinfo->value.enumerated.name),
  3226. "ALSA: too long item name '%s'\n",
  3227. names[uinfo->value.enumerated.item]);
  3228. strlcpy(uinfo->value.enumerated.name,
  3229. names[uinfo->value.enumerated.item],
  3230. sizeof(uinfo->value.enumerated.name));
  3231. return 0;
  3232. }
  3233. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3234. struct snd_ctl_elem_info *uinfo)
  3235. {
  3236. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3237. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3238. uinfo->count = 1;
  3239. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3240. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3241. return 0;
  3242. }
  3243. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. u16 fe_id = 0;
  3247. fe_id = ((struct soc_enum *)
  3248. kcontrol->private_value)->shift_l;
  3249. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3250. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3251. return -EINVAL;
  3252. }
  3253. pr_debug("%s: FE %d %s\n", __func__,
  3254. fe_id,
  3255. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3256. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3257. return 0;
  3258. }
  3259. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3260. struct snd_ctl_elem_value *ucontrol)
  3261. {
  3262. u16 fe_id = 0;
  3263. fe_id = ((struct soc_enum *)
  3264. kcontrol->private_value)->shift_l;
  3265. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3266. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3267. return -EINVAL;
  3268. }
  3269. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3270. pr_debug("%s: %s FE %d\n", __func__,
  3271. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3272. fe_id);
  3273. return 0;
  3274. }
  3275. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3276. struct snd_ctl_elem_info *uinfo)
  3277. {
  3278. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3279. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3280. uinfo->count = 1;
  3281. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3282. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3283. return 0;
  3284. }
  3285. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3286. struct snd_ctl_elem_value *ucontrol)
  3287. {
  3288. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3289. u16 fe_id = 0, in_ch = 0;
  3290. fe_id = e->shift_l;
  3291. in_ch = e->shift_r;
  3292. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3293. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3294. return -EINVAL;
  3295. }
  3296. if (in_ch >= ADM_MAX_CHANNELS) {
  3297. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3298. return -EINVAL;
  3299. }
  3300. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3301. return 1;
  3302. }
  3303. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3304. struct snd_ctl_elem_value *ucontrol)
  3305. {
  3306. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3307. u16 fe_id = 0, in_ch = 0;
  3308. fe_id = e->shift_l;
  3309. in_ch = e->shift_r;
  3310. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3311. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3312. return -EINVAL;
  3313. }
  3314. if (in_ch >= ADM_MAX_CHANNELS) {
  3315. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3316. return -EINVAL;
  3317. }
  3318. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3319. return 1;
  3320. }
  3321. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3322. struct snd_ctl_elem_info *uinfo)
  3323. {
  3324. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3325. uinfo->count = ADM_MAX_CHANNELS;
  3326. uinfo->value.integer.min = 0;
  3327. uinfo->value.integer.max = WEIGHT_0_DB;
  3328. return 0;
  3329. }
  3330. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3331. struct snd_ctl_elem_value *ucontrol)
  3332. {
  3333. u16 fe_id = 0, out_ch = 0;
  3334. int i, weight;
  3335. fe_id = ((struct soc_multi_mixer_control *)
  3336. kcontrol->private_value)->shift;
  3337. out_ch = ((struct soc_multi_mixer_control *)
  3338. kcontrol->private_value)->rshift;
  3339. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3340. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3341. return -EINVAL;
  3342. }
  3343. if (out_ch >= ADM_MAX_CHANNELS) {
  3344. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3345. return -EINVAL;
  3346. }
  3347. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3348. __func__, fe_id,
  3349. ucontrol->value.integer.value[0],
  3350. ucontrol->value.integer.value[1],
  3351. ucontrol->value.integer.value[2],
  3352. ucontrol->value.integer.value[3],
  3353. ucontrol->value.integer.value[4],
  3354. ucontrol->value.integer.value[5],
  3355. ucontrol->value.integer.value[6],
  3356. ucontrol->value.integer.value[7]);
  3357. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3358. weight = ucontrol->value.integer.value[i];
  3359. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3360. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3361. __func__, fe_id, out_ch, i,
  3362. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3363. }
  3364. return 0;
  3365. }
  3366. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3367. struct snd_ctl_elem_value *ucontrol)
  3368. {
  3369. u16 fe_id = 0, out_ch = 0;
  3370. int i;
  3371. fe_id = ((struct soc_multi_mixer_control *)
  3372. kcontrol->private_value)->shift;
  3373. out_ch = ((struct soc_multi_mixer_control *)
  3374. kcontrol->private_value)->rshift;
  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. if (out_ch >= ADM_MAX_CHANNELS) {
  3380. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3381. return -EINVAL;
  3382. }
  3383. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3384. ucontrol->value.integer.value[i] =
  3385. channel_mixer[fe_id].channel_weight[out_ch][i];
  3386. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3387. __func__, fe_id,
  3388. ucontrol->value.integer.value[0],
  3389. ucontrol->value.integer.value[1],
  3390. ucontrol->value.integer.value[2],
  3391. ucontrol->value.integer.value[3],
  3392. ucontrol->value.integer.value[4],
  3393. ucontrol->value.integer.value[5],
  3394. ucontrol->value.integer.value[6],
  3395. ucontrol->value.integer.value[7]);
  3396. return 0;
  3397. }
  3398. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3399. struct snd_ctl_elem_info *uinfo)
  3400. {
  3401. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3402. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3403. /* Valid channel map value ranges from 1 to 64 */
  3404. uinfo->value.integer.min = 0;
  3405. uinfo->value.integer.max = 64;
  3406. return 0;
  3407. }
  3408. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3409. struct snd_ctl_elem_value *ucontrol)
  3410. {
  3411. u16 fe_id = 0;
  3412. int i, ch_map;
  3413. fe_id = ((struct soc_multi_mixer_control *)
  3414. kcontrol->private_value)->shift;
  3415. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3416. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3417. return -EINVAL;
  3418. }
  3419. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3420. ch_map = ucontrol->value.integer.value[i];
  3421. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3422. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3423. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3424. }
  3425. /* Make override_out_ch_map false if ch map is reset */
  3426. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3427. channel_mixer[fe_id].override_out_ch_map = false;
  3428. else
  3429. channel_mixer[fe_id].override_out_ch_map = true;
  3430. return 0;
  3431. }
  3432. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3433. struct snd_ctl_elem_value *ucontrol)
  3434. {
  3435. u16 fe_id = 0;
  3436. int i;
  3437. fe_id = ((struct soc_multi_mixer_control *)
  3438. kcontrol->private_value)->shift;
  3439. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3440. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3441. return -EINVAL;
  3442. }
  3443. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3444. ucontrol->value.integer.value[i] =
  3445. channel_mixer[fe_id].out_ch_map[i];
  3446. return 0;
  3447. }
  3448. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3449. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3451. msm_pcm_get_channel_rule_index,
  3452. msm_pcm_put_channel_rule_index),
  3453. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3455. msm_pcm_get_channel_rule_index,
  3456. msm_pcm_put_channel_rule_index),
  3457. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3459. msm_pcm_get_channel_rule_index,
  3460. msm_pcm_put_channel_rule_index),
  3461. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3463. msm_pcm_get_channel_rule_index,
  3464. msm_pcm_put_channel_rule_index),
  3465. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3467. msm_pcm_get_channel_rule_index,
  3468. msm_pcm_put_channel_rule_index),
  3469. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3471. msm_pcm_get_channel_rule_index,
  3472. msm_pcm_put_channel_rule_index),
  3473. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3475. msm_pcm_get_channel_rule_index,
  3476. msm_pcm_put_channel_rule_index),
  3477. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3478. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3479. msm_pcm_get_channel_rule_index,
  3480. msm_pcm_put_channel_rule_index),
  3481. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3483. msm_pcm_get_channel_rule_index,
  3484. msm_pcm_put_channel_rule_index),
  3485. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3486. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3487. msm_pcm_get_channel_rule_index,
  3488. msm_pcm_put_channel_rule_index),
  3489. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3491. msm_pcm_get_channel_rule_index,
  3492. msm_pcm_put_channel_rule_index),
  3493. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3494. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3495. msm_pcm_get_out_chs,
  3496. msm_pcm_put_out_chs),
  3497. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3498. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3499. msm_pcm_get_out_chs,
  3500. msm_pcm_put_out_chs),
  3501. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3502. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3503. msm_pcm_get_out_chs,
  3504. msm_pcm_put_out_chs),
  3505. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3506. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3507. msm_pcm_get_out_chs,
  3508. msm_pcm_put_out_chs),
  3509. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3510. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3511. msm_pcm_get_out_chs,
  3512. msm_pcm_put_out_chs),
  3513. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3514. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3515. msm_pcm_get_out_chs,
  3516. msm_pcm_put_out_chs),
  3517. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3518. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3519. msm_pcm_get_out_chs,
  3520. msm_pcm_put_out_chs),
  3521. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3522. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3523. msm_pcm_get_out_chs,
  3524. msm_pcm_put_out_chs),
  3525. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3526. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3527. msm_pcm_get_out_chs,
  3528. msm_pcm_put_out_chs),
  3529. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3530. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3531. msm_pcm_get_out_chs,
  3532. msm_pcm_put_out_chs),
  3533. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3534. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3535. msm_pcm_get_out_chs,
  3536. msm_pcm_put_out_chs),
  3537. {
  3538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3540. .name = "MultiMedia1 Channel Mixer",
  3541. .info = msm_pcm_channel_mixer_info,
  3542. .get = msm_pcm_channel_mixer_get,
  3543. .put = msm_pcm_channel_mixer_put,
  3544. .private_value = (unsigned long)&(mm1_channel_mux)
  3545. },
  3546. {
  3547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3548. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3549. .name = "MultiMedia2 Channel Mixer",
  3550. .info = msm_pcm_channel_mixer_info,
  3551. .get = msm_pcm_channel_mixer_get,
  3552. .put = msm_pcm_channel_mixer_put,
  3553. .private_value = (unsigned long)&(mm2_channel_mux)
  3554. },
  3555. {
  3556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3558. .name = "MultiMedia3 Channel Mixer",
  3559. .info = msm_pcm_channel_mixer_info,
  3560. .get = msm_pcm_channel_mixer_get,
  3561. .put = msm_pcm_channel_mixer_put,
  3562. .private_value = (unsigned long)&(mm3_channel_mux)
  3563. },
  3564. {
  3565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3567. .name = "MultiMedia4 Channel Mixer",
  3568. .info = msm_pcm_channel_mixer_info,
  3569. .get = msm_pcm_channel_mixer_get,
  3570. .put = msm_pcm_channel_mixer_put,
  3571. .private_value = (unsigned long)&(mm4_channel_mux)
  3572. },
  3573. {
  3574. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3575. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3576. .name = "MultiMedia18 Channel Mixer",
  3577. .info = msm_pcm_channel_mixer_info,
  3578. .get = msm_pcm_channel_mixer_get,
  3579. .put = msm_pcm_channel_mixer_put,
  3580. .private_value = (unsigned long)&(mm18_channel_mux)
  3581. },
  3582. {
  3583. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3584. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3585. .name = "MultiMedia19 Channel Mixer",
  3586. .info = msm_pcm_channel_mixer_info,
  3587. .get = msm_pcm_channel_mixer_get,
  3588. .put = msm_pcm_channel_mixer_put,
  3589. .private_value = (unsigned long)&(mm19_channel_mux)
  3590. },
  3591. {
  3592. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3593. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3594. .name = "MultiMedia28 Channel Mixer",
  3595. .info = msm_pcm_channel_mixer_info,
  3596. .get = msm_pcm_channel_mixer_get,
  3597. .put = msm_pcm_channel_mixer_put,
  3598. .private_value = (unsigned long)&(mm28_channel_mux)
  3599. },
  3600. {
  3601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3602. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3603. .name = "MultiMedia29 Channel Mixer",
  3604. .info = msm_pcm_channel_mixer_info,
  3605. .get = msm_pcm_channel_mixer_get,
  3606. .put = msm_pcm_channel_mixer_put,
  3607. .private_value = (unsigned long)&(mm29_channel_mux)
  3608. },
  3609. {
  3610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3611. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3612. .name = "MultiMedia30 Channel Mixer",
  3613. .info = msm_pcm_channel_mixer_info,
  3614. .get = msm_pcm_channel_mixer_get,
  3615. .put = msm_pcm_channel_mixer_put,
  3616. .private_value = (unsigned long)&(mm30_channel_mux)
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel1",
  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 = 0,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel2",
  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 = 1, }
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel3",
  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 = 2,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel4",
  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 = 3,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel5",
  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 = 4,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia1 Output Channel6",
  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 = 5,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia1 Output Channel7",
  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 = 6,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia1 Output Channel8",
  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 = 7,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia1 Output Channel9",
  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 = 8,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia1 Output Channel10",
  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 = 9,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia1 Output Channel11",
  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_MULTIMEDIA1, .rshift = 10,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia1 Output Channel12",
  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_MULTIMEDIA1, .rshift = 11,}
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia1 Output Channel13",
  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_MULTIMEDIA1, .rshift = 12,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia1 Output Channel14",
  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_MULTIMEDIA1, .rshift = 13,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia2 Output Channel1",
  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_MULTIMEDIA2, .rshift = 0,}
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia2 Output Channel2",
  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_MULTIMEDIA2, .rshift = 1,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia2 Output Channel3",
  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_MULTIMEDIA2, .rshift = 2,}
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia3 Output Channel1",
  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_MULTIMEDIA3, .rshift = 0,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia3 Output Channel2",
  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_MULTIMEDIA3, .rshift = 1,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel1",
  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 = 0,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel2",
  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 = 1, }
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel3",
  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 = 2,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel4",
  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 = 3,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel5",
  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 = 4,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia18 Output Channel6",
  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 = 5,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia18 Output Channel7",
  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 = 6,}
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia18 Output Channel8",
  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 = 7,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia18 Output Channel9",
  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 = 8,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia18 Output Channel10",
  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 = 9,}
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia18 Output Channel11",
  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_MULTIMEDIA18, .rshift = 10,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia18 Output Channel12",
  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_MULTIMEDIA18, .rshift = 11,}
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia18 Output Channel13",
  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_MULTIMEDIA18, .rshift = 12,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia18 Output Channel14",
  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_MULTIMEDIA18, .rshift = 13,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel1",
  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 = 0,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel2",
  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 = 1, }
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel3",
  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 = 2,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel4",
  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 = 3,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel5",
  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 = 4,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia19 Output Channel6",
  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 = 5,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia19 Output Channel7",
  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 = 6,}
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia19 Output Channel8",
  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 = 7,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia19 Output Channel9",
  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 = 8,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia19 Output Channel10",
  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 = 9,}
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia19 Output Channel11",
  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_MULTIMEDIA19, .rshift = 10,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia19 Output Channel12",
  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_MULTIMEDIA19, .rshift = 11,}
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia19 Output Channel13",
  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_MULTIMEDIA19, .rshift = 12,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia19 Output Channel14",
  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_MULTIMEDIA19, .rshift = 13,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel1",
  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 = 0,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel2",
  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 = 1, }
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel3",
  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 = 2,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel4",
  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 = 3,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel5",
  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 = 4,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia28 Output Channel6",
  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 = 5,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia28 Output Channel7",
  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 = 6,}
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia28 Output Channel8",
  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 = 7,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia28 Output Channel9",
  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 = 8,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia28 Output Channel10",
  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 = 9,}
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia28 Output Channel11",
  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_MULTIMEDIA28, .rshift = 10,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia28 Output Channel12",
  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_MULTIMEDIA28, .rshift = 11,}
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia28 Output Channel13",
  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_MULTIMEDIA28, .rshift = 12,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia28 Output Channel14",
  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_MULTIMEDIA28, .rshift = 13,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel1",
  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 = 0,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel2",
  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 = 1, }
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel3",
  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 = 2,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel4",
  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 = 3,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel5",
  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 = 4,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia29 Output Channel6",
  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 = 5,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia29 Output Channel7",
  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 = 6,}
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia29 Output Channel8",
  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 = 7,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia29 Output Channel9",
  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 = 8,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia29 Output Channel10",
  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 = 9,}
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia29 Output Channel11",
  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_MULTIMEDIA29, .rshift = 10,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia29 Output Channel12",
  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_MULTIMEDIA29, .rshift = 11,}
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia29 Output Channel13",
  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_MULTIMEDIA29, .rshift = 12,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia29 Output Channel14",
  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_MULTIMEDIA29, .rshift = 13,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel1",
  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 = 0,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel2",
  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 = 1, }
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel3",
  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 = 2,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel4",
  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 = 3,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel5",
  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 = 4,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia30 Output Channel6",
  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 = 5,}
  4427. },
  4428. {
  4429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4430. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4431. .name = "MultiMedia30 Output Channel7",
  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 = 6,}
  4437. },
  4438. {
  4439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4441. .name = "MultiMedia30 Output Channel8",
  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 = 7,}
  4447. },
  4448. {
  4449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4451. .name = "MultiMedia30 Output Channel9",
  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 = 8,}
  4457. },
  4458. {
  4459. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4460. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4461. .name = "MultiMedia30 Output Channel10",
  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 = 9,}
  4467. },
  4468. {
  4469. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4470. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4471. .name = "MultiMedia30 Output Channel11",
  4472. .info = msm_pcm_channel_weight_info,
  4473. .get = msm_pcm_channel_weight_get,
  4474. .put = msm_pcm_channel_weight_put,
  4475. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4476. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4477. },
  4478. {
  4479. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4480. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4481. .name = "MultiMedia30 Output Channel12",
  4482. .info = msm_pcm_channel_weight_info,
  4483. .get = msm_pcm_channel_weight_get,
  4484. .put = msm_pcm_channel_weight_put,
  4485. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4486. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4487. },
  4488. {
  4489. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4490. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4491. .name = "MultiMedia30 Output Channel13",
  4492. .info = msm_pcm_channel_weight_info,
  4493. .get = msm_pcm_channel_weight_get,
  4494. .put = msm_pcm_channel_weight_put,
  4495. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4496. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4497. },
  4498. {
  4499. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4500. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4501. .name = "MultiMedia30 Output Channel14",
  4502. .info = msm_pcm_channel_weight_info,
  4503. .get = msm_pcm_channel_weight_get,
  4504. .put = msm_pcm_channel_weight_put,
  4505. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4506. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4507. },
  4508. {
  4509. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4510. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4511. .name = "MultiMedia1 Channel1",
  4512. .info = msm_pcm_channel_input_be_info,
  4513. .get = msm_pcm_channel_input_be_get,
  4514. .put = msm_pcm_channel_input_be_put,
  4515. .private_value = (unsigned long)&(mm1_ch1_enum)
  4516. },
  4517. {
  4518. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4519. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4520. .name = "MultiMedia1 Channel2",
  4521. .info = msm_pcm_channel_input_be_info,
  4522. .get = msm_pcm_channel_input_be_get,
  4523. .put = msm_pcm_channel_input_be_put,
  4524. .private_value = (unsigned long)&(mm1_ch2_enum)
  4525. },
  4526. {
  4527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4528. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4529. .name = "MultiMedia1 Channel3",
  4530. .info = msm_pcm_channel_input_be_info,
  4531. .get = msm_pcm_channel_input_be_get,
  4532. .put = msm_pcm_channel_input_be_put,
  4533. .private_value = (unsigned long)&(mm1_ch3_enum)
  4534. },
  4535. {
  4536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4538. .name = "MultiMedia1 Channel4",
  4539. .info = msm_pcm_channel_input_be_info,
  4540. .get = msm_pcm_channel_input_be_get,
  4541. .put = msm_pcm_channel_input_be_put,
  4542. .private_value = (unsigned long)&(mm1_ch4_enum)
  4543. },
  4544. {
  4545. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4546. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4547. .name = "MultiMedia1 Channel5",
  4548. .info = msm_pcm_channel_input_be_info,
  4549. .get = msm_pcm_channel_input_be_get,
  4550. .put = msm_pcm_channel_input_be_put,
  4551. .private_value = (unsigned long)&(mm1_ch5_enum)
  4552. },
  4553. {
  4554. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4555. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4556. .name = "MultiMedia1 Channel6",
  4557. .info = msm_pcm_channel_input_be_info,
  4558. .get = msm_pcm_channel_input_be_get,
  4559. .put = msm_pcm_channel_input_be_put,
  4560. .private_value = (unsigned long)&(mm1_ch6_enum)
  4561. },
  4562. {
  4563. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4564. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4565. .name = "MultiMedia1 Channel7",
  4566. .info = msm_pcm_channel_input_be_info,
  4567. .get = msm_pcm_channel_input_be_get,
  4568. .put = msm_pcm_channel_input_be_put,
  4569. .private_value = (unsigned long)&(mm1_ch7_enum)
  4570. },
  4571. {
  4572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4573. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4574. .name = "MultiMedia1 Channel8",
  4575. .info = msm_pcm_channel_input_be_info,
  4576. .get = msm_pcm_channel_input_be_get,
  4577. .put = msm_pcm_channel_input_be_put,
  4578. .private_value = (unsigned long)&(mm1_ch8_enum)
  4579. },
  4580. {
  4581. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4582. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4583. .name = "MultiMedia18 Channel1",
  4584. .info = msm_pcm_channel_input_be_info,
  4585. .get = msm_pcm_channel_input_be_get,
  4586. .put = msm_pcm_channel_input_be_put,
  4587. .private_value = (unsigned long)&(mm18_ch1_enum)
  4588. },
  4589. {
  4590. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4591. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4592. .name = "MultiMedia18 Channel2",
  4593. .info = msm_pcm_channel_input_be_info,
  4594. .get = msm_pcm_channel_input_be_get,
  4595. .put = msm_pcm_channel_input_be_put,
  4596. .private_value = (unsigned long)&(mm18_ch2_enum)
  4597. },
  4598. {
  4599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4601. .name = "MultiMedia19 Channel1",
  4602. .info = msm_pcm_channel_input_be_info,
  4603. .get = msm_pcm_channel_input_be_get,
  4604. .put = msm_pcm_channel_input_be_put,
  4605. .private_value = (unsigned long)&(mm19_ch1_enum)
  4606. },
  4607. {
  4608. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4609. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4610. .name = "MultiMedia19 Channel2",
  4611. .info = msm_pcm_channel_input_be_info,
  4612. .get = msm_pcm_channel_input_be_get,
  4613. .put = msm_pcm_channel_input_be_put,
  4614. .private_value = (unsigned long)&(mm19_ch2_enum)
  4615. },
  4616. {
  4617. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4618. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4619. .name = "MultiMedia28 Channel1",
  4620. .info = msm_pcm_channel_input_be_info,
  4621. .get = msm_pcm_channel_input_be_get,
  4622. .put = msm_pcm_channel_input_be_put,
  4623. .private_value = (unsigned long)&(mm28_ch1_enum)
  4624. },
  4625. {
  4626. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4627. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4628. .name = "MultiMedia28 Channel2",
  4629. .info = msm_pcm_channel_input_be_info,
  4630. .get = msm_pcm_channel_input_be_get,
  4631. .put = msm_pcm_channel_input_be_put,
  4632. .private_value = (unsigned long)&(mm28_ch2_enum)
  4633. },
  4634. {
  4635. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4636. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4637. .name = "MultiMedia29 Channel1",
  4638. .info = msm_pcm_channel_input_be_info,
  4639. .get = msm_pcm_channel_input_be_get,
  4640. .put = msm_pcm_channel_input_be_put,
  4641. .private_value = (unsigned long)&(mm29_ch1_enum)
  4642. },
  4643. {
  4644. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4645. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4646. .name = "MultiMedia29 Channel2",
  4647. .info = msm_pcm_channel_input_be_info,
  4648. .get = msm_pcm_channel_input_be_get,
  4649. .put = msm_pcm_channel_input_be_put,
  4650. .private_value = (unsigned long)&(mm29_ch2_enum)
  4651. },
  4652. {
  4653. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4654. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4655. .name = "MultiMedia30 Channel1",
  4656. .info = msm_pcm_channel_input_be_info,
  4657. .get = msm_pcm_channel_input_be_get,
  4658. .put = msm_pcm_channel_input_be_put,
  4659. .private_value = (unsigned long)&(mm30_ch1_enum)
  4660. },
  4661. {
  4662. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4663. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4664. .name = "MultiMedia30 Channel2",
  4665. .info = msm_pcm_channel_input_be_info,
  4666. .get = msm_pcm_channel_input_be_get,
  4667. .put = msm_pcm_channel_input_be_put,
  4668. .private_value = (unsigned long)&(mm30_ch2_enum)
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia1 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_MULTIMEDIA1,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia2 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_MULTIMEDIA2,}
  4689. },
  4690. {
  4691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4693. .name = "MultiMedia3 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_MULTIMEDIA3,}
  4699. },
  4700. {
  4701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4703. .name = "MultiMedia4 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_MULTIMEDIA4,}
  4709. },
  4710. {
  4711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4713. .name = "MultiMedia5 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_MULTIMEDIA5,}
  4719. },
  4720. {
  4721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4723. .name = "MultiMedia6 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_MULTIMEDIA6,}
  4729. },
  4730. {
  4731. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4732. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4733. .name = "MultiMedia18 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_MULTIMEDIA18,}
  4739. },
  4740. {
  4741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4742. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4743. .name = "MultiMedia19 Output Channel Map",
  4744. .info = msm_pcm_channel_output_map_info,
  4745. .get = msm_pcm_channel_output_map_get,
  4746. .put = msm_pcm_channel_output_map_put,
  4747. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4748. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4749. },
  4750. {
  4751. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4752. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4753. .name = "MultiMedia28 Output Channel Map",
  4754. .info = msm_pcm_channel_output_map_info,
  4755. .get = msm_pcm_channel_output_map_get,
  4756. .put = msm_pcm_channel_output_map_put,
  4757. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4758. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4759. },
  4760. {
  4761. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4762. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4763. .name = "MultiMedia29 Output Channel Map",
  4764. .info = msm_pcm_channel_output_map_info,
  4765. .get = msm_pcm_channel_output_map_get,
  4766. .put = msm_pcm_channel_output_map_put,
  4767. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4768. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4769. },
  4770. {
  4771. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4772. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4773. .name = "MultiMedia30 Output Channel Map",
  4774. .info = msm_pcm_channel_output_map_info,
  4775. .get = msm_pcm_channel_output_map_get,
  4776. .put = msm_pcm_channel_output_map_put,
  4777. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4778. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4779. },
  4780. };
  4781. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4782. struct snd_ctl_elem_value *ucontrol)
  4783. {
  4784. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4785. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4786. ucontrol->value.integer.value[0]);
  4787. return 0;
  4788. }
  4789. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4790. struct snd_ctl_elem_value *ucontrol)
  4791. {
  4792. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4793. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4794. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4795. return 0;
  4796. }
  4797. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4798. struct snd_ctl_elem_value *ucontrol)
  4799. {
  4800. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4801. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4802. ucontrol->value.integer.value[0]);
  4803. return 0;
  4804. }
  4805. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4806. struct snd_ctl_elem_value *ucontrol)
  4807. {
  4808. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4809. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4810. __func__, msm_ec_ref_ch_downmixed);
  4811. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4812. return 0;
  4813. }
  4814. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4815. struct snd_ctl_elem_value *ucontrol)
  4816. {
  4817. int i = 0, ret = 0;
  4818. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4819. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4820. kcontrol->private_value)->shift;
  4821. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4822. weights[i] = ucontrol->value.integer.value[i];
  4823. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4824. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4825. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4826. return ret;
  4827. }
  4828. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4829. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4830. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4831. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4832. struct snd_ctl_elem_value *ucontrol)
  4833. {
  4834. switch (msm_ec_ref_bit_format) {
  4835. case SNDRV_PCM_FORMAT_S24_LE:
  4836. ucontrol->value.integer.value[0] = 2;
  4837. break;
  4838. case SNDRV_PCM_FORMAT_S16_LE:
  4839. ucontrol->value.integer.value[0] = 1;
  4840. break;
  4841. default:
  4842. ucontrol->value.integer.value[0] = 0;
  4843. break;
  4844. }
  4845. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4846. __func__, ucontrol->value.integer.value[0]);
  4847. return 0;
  4848. }
  4849. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4850. struct snd_ctl_elem_value *ucontrol)
  4851. {
  4852. u16 bit_width = 0;
  4853. switch (ucontrol->value.integer.value[0]) {
  4854. case 2:
  4855. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4856. break;
  4857. case 1:
  4858. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4859. break;
  4860. default:
  4861. msm_ec_ref_bit_format = 0;
  4862. break;
  4863. }
  4864. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4865. bit_width = 16;
  4866. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4867. bit_width = 24;
  4868. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4869. __func__, msm_ec_ref_bit_format);
  4870. adm_ec_ref_rx_bit_width(bit_width);
  4871. return 0;
  4872. }
  4873. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4874. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4875. struct snd_ctl_elem_value *ucontrol)
  4876. {
  4877. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4878. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4879. __func__, ucontrol->value.integer.value[0]);
  4880. return 0;
  4881. }
  4882. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4883. struct snd_ctl_elem_value *ucontrol)
  4884. {
  4885. switch (ucontrol->value.integer.value[0]) {
  4886. case 0:
  4887. msm_ec_ref_sampling_rate = 0;
  4888. break;
  4889. case 1:
  4890. msm_ec_ref_sampling_rate = 8000;
  4891. break;
  4892. case 2:
  4893. msm_ec_ref_sampling_rate = 16000;
  4894. break;
  4895. case 3:
  4896. msm_ec_ref_sampling_rate = 32000;
  4897. break;
  4898. case 4:
  4899. msm_ec_ref_sampling_rate = 44100;
  4900. break;
  4901. case 5:
  4902. msm_ec_ref_sampling_rate = 48000;
  4903. break;
  4904. case 6:
  4905. msm_ec_ref_sampling_rate = 96000;
  4906. break;
  4907. case 7:
  4908. msm_ec_ref_sampling_rate = 192000;
  4909. break;
  4910. case 8:
  4911. msm_ec_ref_sampling_rate = 384000;
  4912. break;
  4913. default:
  4914. msm_ec_ref_sampling_rate = 48000;
  4915. break;
  4916. }
  4917. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4918. __func__, msm_ec_ref_sampling_rate);
  4919. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4920. return 0;
  4921. }
  4922. static int get_ec_ref_port_id(int value, int *index)
  4923. {
  4924. int port_id;
  4925. switch (value) {
  4926. case 0:
  4927. *index = 0;
  4928. port_id = AFE_PORT_INVALID;
  4929. break;
  4930. case 1:
  4931. *index = 1;
  4932. port_id = SLIMBUS_0_RX;
  4933. break;
  4934. case 2:
  4935. *index = 2;
  4936. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4937. break;
  4938. case 3:
  4939. *index = 3;
  4940. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4941. break;
  4942. case 4:
  4943. *index = 4;
  4944. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4945. break;
  4946. case 5:
  4947. *index = 5;
  4948. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4949. break;
  4950. case 6:
  4951. *index = 6;
  4952. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4953. break;
  4954. case 7:
  4955. *index = 7;
  4956. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4957. break;
  4958. case 9:
  4959. *index = 9;
  4960. port_id = SLIMBUS_5_RX;
  4961. break;
  4962. case 10:
  4963. *index = 10;
  4964. port_id = SLIMBUS_1_TX;
  4965. break;
  4966. case 11:
  4967. *index = 11;
  4968. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4969. break;
  4970. case 12:
  4971. *index = 12;
  4972. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4973. break;
  4974. case 13:
  4975. *index = 13;
  4976. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4977. break;
  4978. case 14:
  4979. *index = 14;
  4980. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4981. break;
  4982. case 15:
  4983. *index = 15;
  4984. port_id = SLIMBUS_6_RX;
  4985. break;
  4986. case 16:
  4987. *index = 16;
  4988. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4989. break;
  4990. case 17:
  4991. *index = 17;
  4992. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4993. break;
  4994. case 18:
  4995. *index = 18;
  4996. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4997. break;
  4998. case 19:
  4999. *index = 19;
  5000. port_id = AFE_PORT_ID_USB_RX;
  5001. break;
  5002. case 20:
  5003. *index = 20;
  5004. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5005. break;
  5006. case 21:
  5007. *index = 21;
  5008. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5009. break;
  5010. case 22:
  5011. *index = 22;
  5012. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5013. break;
  5014. case 23:
  5015. *index = 23;
  5016. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5017. break;
  5018. case 24:
  5019. *index = 24;
  5020. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5021. break;
  5022. case 25:
  5023. *index = 25;
  5024. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5025. break;
  5026. case 26:
  5027. *index = 26;
  5028. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5029. break;
  5030. case 27:
  5031. *index = 27;
  5032. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5033. break;
  5034. case 28:
  5035. *index = 28;
  5036. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5037. break;
  5038. case 29:
  5039. *index = 29;
  5040. port_id = SLIMBUS_7_RX;
  5041. break;
  5042. case 30:
  5043. *index = 30;
  5044. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5045. break;
  5046. case 31:
  5047. *index = 31;
  5048. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5049. break;
  5050. case 32:
  5051. *index = 32;
  5052. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5053. break;
  5054. case 33:
  5055. *index = 33;
  5056. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5057. break;
  5058. case 34:
  5059. *index = 34;
  5060. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5061. break;
  5062. case 35:
  5063. *index = 35;
  5064. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5065. break;
  5066. case 36:
  5067. *index = 36;
  5068. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5069. break;
  5070. case 37:
  5071. *index = 37;
  5072. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5073. break;
  5074. case 38:
  5075. *index = 38;
  5076. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5077. break;
  5078. case 39:
  5079. *index = 39;
  5080. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5081. break;
  5082. case 40:
  5083. *index = 40;
  5084. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5085. break;
  5086. default:
  5087. *index = 0; /* NONE */
  5088. pr_err("%s: Invalid value %d\n", __func__, value);
  5089. port_id = AFE_PORT_INVALID;
  5090. break;
  5091. }
  5092. return port_id;
  5093. }
  5094. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5095. struct snd_ctl_elem_value *ucontrol)
  5096. {
  5097. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5098. mutex_lock(&routing_lock);
  5099. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5100. mutex_unlock(&routing_lock);
  5101. return 0;
  5102. }
  5103. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5104. struct snd_ctl_elem_value *ucontrol)
  5105. {
  5106. int value = ucontrol->value.integer.value[0];
  5107. mutex_lock(&routing_lock);
  5108. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5109. &afe_loopback_tx_port_index);
  5110. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5111. __func__, afe_loopback_tx_port_index);
  5112. mutex_unlock(&routing_lock);
  5113. return 0;
  5114. }
  5115. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5116. "32000", "44100", "48000", "96000", "192000", "384000"};
  5117. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5118. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5119. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5120. ec_ref_bit_format_text),
  5121. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5122. };
  5123. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5124. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5125. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5126. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5127. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5128. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5129. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5130. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5131. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5132. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5133. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5134. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5135. };
  5136. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5137. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5138. };
  5139. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5140. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5141. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5142. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5143. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5144. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5145. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5146. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5147. msm_route_ec_ref_params_enum[0],
  5148. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5149. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5150. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5151. msm_ec_ref_chmixer_weights_put),
  5152. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5153. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5154. msm_ec_ref_chmixer_weights_put),
  5155. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5156. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5157. msm_ec_ref_chmixer_weights_put),
  5158. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5159. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5160. msm_ec_ref_chmixer_weights_put),
  5161. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5162. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5163. msm_ec_ref_chmixer_weights_put),
  5164. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5165. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5166. msm_ec_ref_chmixer_weights_put),
  5167. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5168. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5169. msm_ec_ref_chmixer_weights_put),
  5170. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5171. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5172. msm_ec_ref_chmixer_weights_put),
  5173. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5174. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5175. };
  5176. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5177. struct snd_ctl_elem_value *ucontrol)
  5178. {
  5179. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5180. mutex_lock(&routing_lock);
  5181. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5182. mutex_unlock(&routing_lock);
  5183. return 0;
  5184. }
  5185. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5186. struct snd_ctl_elem_value *ucontrol)
  5187. {
  5188. int value = ucontrol->value.integer.value[0];
  5189. struct snd_soc_dapm_widget *widget =
  5190. snd_soc_dapm_kcontrol_widget(kcontrol);
  5191. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5192. struct snd_soc_dapm_update *update = NULL;
  5193. mutex_lock(&routing_lock);
  5194. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5195. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5196. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5197. __func__, msm_route_ec_ref_rx);
  5198. mutex_unlock(&routing_lock);
  5199. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5200. msm_route_ec_ref_rx, e, update);
  5201. return 0;
  5202. }
  5203. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5204. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 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_ul2 =
  5208. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 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_ul3 =
  5212. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 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 const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5216. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5217. msm_route_ec_ref_rx_enum[0],
  5218. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5219. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5220. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5221. msm_route_ec_ref_rx_enum[0],
  5222. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5223. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5224. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5225. msm_route_ec_ref_rx_enum[0],
  5226. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5227. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5228. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5229. msm_route_ec_ref_rx_enum[0],
  5230. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5231. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5232. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5233. msm_route_ec_ref_rx_enum[0],
  5234. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5235. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5236. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5237. msm_route_ec_ref_rx_enum[0],
  5238. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5239. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5240. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5241. msm_route_ec_ref_rx_enum[0],
  5242. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5243. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5244. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5245. msm_route_ec_ref_rx_enum[0],
  5246. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5247. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5248. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5249. msm_route_ec_ref_rx_enum[0],
  5250. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5251. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5252. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5253. msm_route_ec_ref_rx_enum[0],
  5254. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5255. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5256. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5257. msm_route_ec_ref_rx_enum[0],
  5258. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5259. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5260. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5261. msm_route_ec_ref_rx_enum[0],
  5262. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5263. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5264. struct snd_ctl_elem_value *ucontrol)
  5265. {
  5266. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5267. mutex_lock(&routing_lock);
  5268. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5269. mutex_unlock(&routing_lock);
  5270. return 0;
  5271. }
  5272. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5273. struct snd_ctl_elem_value *ucontrol)
  5274. {
  5275. struct snd_soc_dapm_widget *widget =
  5276. snd_soc_dapm_kcontrol_widget(kcontrol);
  5277. int mux = ucontrol->value.enumerated.item[0];
  5278. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5279. int ret = 1;
  5280. bool state = true;
  5281. uint16_t ext_ec_ref_port_id;
  5282. struct snd_soc_dapm_update *update = NULL;
  5283. if (mux >= e->items) {
  5284. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5285. return -EINVAL;
  5286. }
  5287. mutex_lock(&routing_lock);
  5288. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5289. switch (msm_route_ext_ec_ref) {
  5290. case EXT_EC_REF_PRI_MI2S_TX:
  5291. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5292. break;
  5293. case EXT_EC_REF_SEC_MI2S_TX:
  5294. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5295. break;
  5296. case EXT_EC_REF_TERT_MI2S_TX:
  5297. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5298. break;
  5299. case EXT_EC_REF_QUAT_MI2S_TX:
  5300. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5301. break;
  5302. case EXT_EC_REF_QUIN_MI2S_TX:
  5303. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5304. break;
  5305. case EXT_EC_REF_SLIM_1_TX:
  5306. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5307. break;
  5308. case EXT_EC_REF_PRI_TDM_TX:
  5309. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5310. break;
  5311. case EXT_EC_REF_SEC_TDM_TX:
  5312. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5313. break;
  5314. case EXT_EC_REF_NONE:
  5315. default:
  5316. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5317. state = false;
  5318. break;
  5319. }
  5320. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5321. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5322. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5323. mutex_unlock(&routing_lock);
  5324. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5325. update);
  5326. } else {
  5327. ret = -EINVAL;
  5328. mutex_unlock(&routing_lock);
  5329. }
  5330. return ret;
  5331. }
  5332. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5333. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5334. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5335. "SLIM_1_TX", "PRI_TDM_TX",
  5336. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5337. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5338. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5339. };
  5340. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5341. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5342. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5343. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5344. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_PRI_I2S_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_PRI_I2S_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_PRI_I2S_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_PRI_I2S_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_PRI_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_PRI_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_PRI_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_PRI_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_PRI_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_PRI_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_PRI_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_PRI_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_PRI_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_PRI_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_PRI_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_PRI_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_PRI_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_PRI_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_PRI_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_PRI_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_PRI_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_PRI_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_PRI_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. };
  5437. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5438. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_SEC_I2S_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_SEC_I2S_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_SEC_I2S_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_SEC_I2S_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_SEC_I2S_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_SEC_I2S_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_SEC_I2S_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_SEC_I2S_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_SEC_I2S_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_SEC_I2S_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_SEC_I2S_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_SEC_I2S_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_SEC_I2S_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_SEC_I2S_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_SEC_I2S_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_SEC_I2S_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_SEC_I2S_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_SEC_I2S_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_SEC_I2S_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_SEC_I2S_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_SEC_I2S_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_SEC_I2S_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_SEC_I2S_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. };
  5531. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5532. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. };
  5625. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5626. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. };
  5719. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5720. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. };
  5789. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5790. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. };
  5883. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5884. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. };
  5977. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5978. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_MI2S_RX,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_MI2S_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_MI2S_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_MI2S_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. };
  6071. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6072. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. };
  6169. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6170. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. };
  6263. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6264. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. };
  6353. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6354. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6355. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6363. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. };
  6439. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6440. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. };
  6445. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6446. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. };
  6539. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6540. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6634. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. };
  6637. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6638. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. };
  6703. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6704. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. };
  6769. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6770. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. };
  6859. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. };
  6949. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6950. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_HDMI_RX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_HDMI_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_HDMI_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_HDMI_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_HDMI_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_HDMI_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_HDMI_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_HDMI_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_HDMI_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_HDMI_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_HDMI_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_HDMI_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_HDMI_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_HDMI_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_HDMI_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_HDMI_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_HDMI_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_HDMI_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_HDMI_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_HDMI_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_HDMI_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_HDMI_RX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_HDMI_RX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. };
  7043. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7044. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. };
  7113. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7114. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7115. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7119. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7123. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7124. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7125. msm_routing_put_audio_mixer),
  7126. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7127. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7131. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7135. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7136. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7137. msm_routing_put_audio_mixer),
  7138. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7139. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7140. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7141. msm_routing_put_audio_mixer),
  7142. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7143. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7147. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7148. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7149. msm_routing_put_audio_mixer),
  7150. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7151. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. };
  7183. /* incall music delivery mixer */
  7184. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7185. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. };
  7206. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7207. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. };
  7224. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7225. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. };
  7242. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7243. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. };
  7312. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7313. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. };
  7390. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7391. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. };
  7468. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7469. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. };
  7546. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7547. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. };
  7624. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. };
  7702. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7703. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. };
  7780. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7781. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. };
  7858. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7859. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. };
  7936. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7937. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. };
  8014. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8015. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. };
  8092. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8093. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. };
  8162. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8163. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. };
  8232. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8233. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_USB_RX,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_USB_RX,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_USB_RX,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_USB_RX,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_USB_RX,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_USB_RX,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_USB_RX,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_USB_RX,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_USB_RX,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_USB_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_USB_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_USB_RX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_USB_RX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_USB_RX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_USB_RX,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_USB_RX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_USB_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. };
  8302. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. };
  8396. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8397. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. };
  8466. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8467. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_INT_FM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_INT_FM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_INT_FM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_INT_FM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_INT_FM_RX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_INT_FM_RX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_INT_FM_RX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_INT_FM_RX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_INT_FM_RX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_INT_FM_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_INT_FM_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_INT_FM_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_INT_FM_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_INT_FM_RX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_INT_FM_RX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_INT_FM_RX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_INT_FM_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_INT_FM_RX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_INT_FM_RX,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_INT_FM_RX,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_INT_FM_RX,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_INT_FM_RX,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_INT_FM_RX,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. };
  8560. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8561. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AFE_PCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AFE_PCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AFE_PCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AFE_PCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AFE_PCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_AFE_PCM_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_AFE_PCM_RX,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_AFE_PCM_RX,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_AFE_PCM_RX,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_AFE_PCM_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_AFE_PCM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_AFE_PCM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_AFE_PCM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_AFE_PCM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_AFE_PCM_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_AFE_PCM_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_AFE_PCM_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_AFE_PCM_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_AFE_PCM_RX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_AFE_PCM_RX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_AFE_PCM_RX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_AFE_PCM_RX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_AFE_PCM_RX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. };
  8654. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8655. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_AUXPCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_AUXPCM_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_AUXPCM_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_AUXPCM_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_AUXPCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_AUXPCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_AUXPCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_AUXPCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_AUXPCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_AUXPCM_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_AUXPCM_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_AUXPCM_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_AUXPCM_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_AUXPCM_RX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_AUXPCM_RX,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_AUXPCM_RX,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_AUXPCM_RX,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_AUXPCM_RX,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. };
  8752. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8753. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. };
  8850. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8851. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. };
  8920. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. };
  8990. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8991. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. };
  9060. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9061. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. };
  9130. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9131. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. };
  9216. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9217. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. };
  9302. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. };
  9388. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9389. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. };
  9474. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9475. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. };
  9552. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9553. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. };
  9638. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9639. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. };
  9724. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9725. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. };
  9810. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9811. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. };
  9896. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9897. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. };
  9974. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9975. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. };
  10060. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10061. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. };
  10138. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10139. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10142. msm_routing_put_audio_mixer),
  10143. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. };
  10224. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10225. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. };
  10310. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10311. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. };
  10396. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10397. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. };
  10482. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10483. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. };
  10572. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10647. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10648. msm_routing_put_audio_mixer),
  10649. };
  10650. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10651. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. };
  10740. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10741. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. };
  10830. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10831. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. };
  10920. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  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_RX_0,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. };
  11010. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11011. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. };
  11088. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11089. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11096. msm_routing_put_audio_mixer),
  11097. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11099. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11100. msm_routing_put_audio_mixer),
  11101. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11103. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11104. msm_routing_put_audio_mixer),
  11105. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. };
  11154. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11155. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. };
  11232. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11233. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. };
  11310. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11311. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. };
  11400. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11401. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. };
  11466. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11467. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. };
  11556. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11557. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. };
  11630. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11631. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11653. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11662. msm_routing_put_audio_mixer),
  11663. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11666. msm_routing_put_audio_mixer),
  11667. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11669. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11670. msm_routing_put_audio_mixer),
  11671. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. };
  11696. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11697. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. };
  11770. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. };
  11844. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11845. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11855. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11856. msm_routing_put_audio_mixer),
  11857. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11866. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11867. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11868. msm_routing_put_audio_mixer),
  11869. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. };
  11918. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11919. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_PRI_I2S_TX,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_MI2S_TX,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_AUXPCM_TX,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_INT_FM_TX,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_AFE_PCM_TX,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12113. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12114. msm_routing_put_audio_mixer),
  12115. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_USB_TX,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. };
  12192. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12193. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_INT_FM_TX,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_MI2S_TX,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_USB_TX,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12392. msm_routing_put_audio_mixer),
  12393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. };
  12418. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12419. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_INT_FM_TX,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_MI2S_TX,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_AFE_PCM_TX,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_AUXPCM_TX,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12517. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12518. msm_routing_put_audio_mixer),
  12519. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. };
  12640. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12641. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12644. msm_routing_put_audio_mixer),
  12645. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12648. msm_routing_put_audio_mixer),
  12649. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12651. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12652. msm_routing_put_audio_mixer),
  12653. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_INT_FM_TX,
  12655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12656. msm_routing_put_audio_mixer),
  12657. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12659. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12660. msm_routing_put_audio_mixer),
  12661. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_AFE_PCM_TX,
  12663. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12664. msm_routing_put_audio_mixer),
  12665. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12668. msm_routing_put_audio_mixer),
  12669. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12672. msm_routing_put_audio_mixer),
  12673. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_USB_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. };
  12854. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12855. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_INT_FM_TX,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_MI2S_TX,
  12869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12870. msm_routing_put_audio_mixer),
  12871. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_AFE_PCM_TX,
  12873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12874. msm_routing_put_audio_mixer),
  12875. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12878. msm_routing_put_audio_mixer),
  12879. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12880. MSM_BACKEND_DAI_AUXPCM_TX,
  12881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12882. msm_routing_put_audio_mixer),
  12883. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12890. msm_routing_put_audio_mixer),
  12891. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12893. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12894. msm_routing_put_audio_mixer),
  12895. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12898. msm_routing_put_audio_mixer),
  12899. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12902. msm_routing_put_audio_mixer),
  12903. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12906. msm_routing_put_audio_mixer),
  12907. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12910. msm_routing_put_audio_mixer),
  12911. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_USB_TX,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13094. msm_routing_put_audio_mixer),
  13095. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13097. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13098. msm_routing_put_audio_mixer),
  13099. };
  13100. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13101. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_INT_FM_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_AUXPCM_TX,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13251. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13252. msm_routing_put_audio_mixer),
  13253. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13256. msm_routing_put_audio_mixer),
  13257. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_USB_TX,
  13259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13260. msm_routing_put_audio_mixer),
  13261. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13263. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13288. msm_routing_put_audio_mixer),
  13289. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13292. msm_routing_put_audio_mixer),
  13293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13295. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13296. msm_routing_put_audio_mixer),
  13297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. };
  13322. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13323. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_INT_FM_TX,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_AFE_PCM_TX,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13406. msm_routing_put_audio_mixer),
  13407. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13422. msm_routing_put_audio_mixer),
  13423. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_USB_TX,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. };
  13548. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13549. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13551. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13552. msm_routing_put_audio_mixer),
  13553. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13555. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13556. msm_routing_put_audio_mixer),
  13557. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13559. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13560. msm_routing_put_audio_mixer),
  13561. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13563. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13564. msm_routing_put_audio_mixer),
  13565. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13567. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13568. msm_routing_put_audio_mixer),
  13569. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13572. msm_routing_put_audio_mixer),
  13573. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13576. msm_routing_put_audio_mixer),
  13577. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13580. msm_routing_put_audio_mixer),
  13581. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_INT_FM_TX,
  13583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13584. msm_routing_put_audio_mixer),
  13585. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13588. msm_routing_put_audio_mixer),
  13589. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_AFE_PCM_TX,
  13591. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13592. msm_routing_put_audio_mixer),
  13593. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13603. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13604. msm_routing_put_audio_mixer),
  13605. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13612. msm_routing_put_audio_mixer),
  13613. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13616. msm_routing_put_audio_mixer),
  13617. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13619. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13659. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13660. msm_routing_put_audio_mixer),
  13661. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13663. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13664. msm_routing_put_audio_mixer),
  13665. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13667. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13668. msm_routing_put_audio_mixer),
  13669. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_USB_TX,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_MI2S_TX,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_AUXPCM_TX,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13696. msm_routing_put_audio_mixer),
  13697. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13699. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13700. msm_routing_put_audio_mixer),
  13701. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13720. msm_routing_get_audio_mixer,
  13721. msm_routing_put_audio_mixer),
  13722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13724. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13725. msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13730. msm_routing_get_audio_mixer,
  13731. msm_routing_put_audio_mixer),
  13732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13734. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13735. msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13740. msm_routing_get_audio_mixer,
  13741. msm_routing_put_audio_mixer),
  13742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13744. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13745. msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13754. msm_routing_put_audio_mixer),
  13755. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13757. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13758. msm_routing_put_audio_mixer),
  13759. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. };
  13764. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13765. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13775. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13776. msm_routing_put_audio_mixer),
  13777. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_INT_FM_TX,
  13779. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13780. msm_routing_put_audio_mixer),
  13781. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13784. msm_routing_put_audio_mixer),
  13785. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_AFE_PCM_TX,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13812. msm_routing_put_audio_mixer),
  13813. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13816. msm_routing_put_audio_mixer),
  13817. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13819. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13820. msm_routing_put_audio_mixer),
  13821. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13824. msm_routing_put_audio_mixer),
  13825. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13828. msm_routing_put_audio_mixer),
  13829. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13831. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13832. msm_routing_put_audio_mixer),
  13833. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13836. msm_routing_put_audio_mixer),
  13837. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13839. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13840. msm_routing_put_audio_mixer),
  13841. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13844. msm_routing_put_audio_mixer),
  13845. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13848. msm_routing_put_audio_mixer),
  13849. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13851. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13852. msm_routing_put_audio_mixer),
  13853. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13856. msm_routing_put_audio_mixer),
  13857. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13860. msm_routing_put_audio_mixer),
  13861. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13863. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13864. msm_routing_put_audio_mixer),
  13865. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13867. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13868. msm_routing_put_audio_mixer),
  13869. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13871. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13872. msm_routing_put_audio_mixer),
  13873. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13875. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13876. msm_routing_put_audio_mixer),
  13877. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. };
  13926. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13927. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_INT_FM_TX,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13942. msm_routing_put_audio_mixer),
  13943. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13945. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_AFE_PCM_TX,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13954. msm_routing_put_audio_mixer),
  13955. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13957. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13958. msm_routing_put_audio_mixer),
  13959. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13962. msm_routing_put_audio_mixer),
  13963. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13965. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13966. msm_routing_put_audio_mixer),
  13967. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13969. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13990. msm_routing_put_audio_mixer),
  13991. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13992. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13994. msm_routing_put_audio_mixer),
  13995. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13996. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13998. msm_routing_put_audio_mixer),
  13999. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_USB_TX,
  14001. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14002. msm_routing_put_audio_mixer),
  14003. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_MI2S_TX,
  14005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14006. msm_routing_put_audio_mixer),
  14007. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_AUXPCM_TX,
  14009. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14010. msm_routing_put_audio_mixer),
  14011. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14014. msm_routing_put_audio_mixer),
  14015. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14016. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14017. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14018. msm_routing_put_audio_mixer),
  14019. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14021. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14022. msm_routing_put_audio_mixer),
  14023. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14026. msm_routing_put_audio_mixer),
  14027. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14028. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14030. msm_routing_put_audio_mixer),
  14031. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14032. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14034. msm_routing_put_audio_mixer),
  14035. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14037. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14038. msm_routing_put_audio_mixer),
  14039. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14042. msm_routing_put_audio_mixer),
  14043. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14045. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14046. msm_routing_put_audio_mixer),
  14047. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14050. msm_routing_put_audio_mixer),
  14051. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14052. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14054. msm_routing_put_audio_mixer),
  14055. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14056. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14057. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14058. msm_routing_put_audio_mixer),
  14059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14062. msm_routing_get_audio_mixer,
  14063. msm_routing_put_audio_mixer),
  14064. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14066. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14067. msm_routing_get_audio_mixer,
  14068. msm_routing_put_audio_mixer),
  14069. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14071. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14072. msm_routing_get_audio_mixer,
  14073. msm_routing_put_audio_mixer),
  14074. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14076. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14077. msm_routing_get_audio_mixer,
  14078. msm_routing_put_audio_mixer),
  14079. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14081. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14082. msm_routing_get_audio_mixer,
  14083. msm_routing_put_audio_mixer),
  14084. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14086. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14087. msm_routing_get_audio_mixer,
  14088. msm_routing_put_audio_mixer),
  14089. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14091. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14092. msm_routing_put_audio_mixer),
  14093. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14095. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14096. msm_routing_put_audio_mixer),
  14097. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14100. msm_routing_put_audio_mixer),
  14101. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. };
  14106. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14107. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14109. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14110. msm_routing_put_audio_mixer),
  14111. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14113. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14114. msm_routing_put_audio_mixer),
  14115. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14117. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14118. msm_routing_put_audio_mixer),
  14119. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_INT_FM_TX,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_AFE_PCM_TX,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14178. msm_routing_get_audio_mixer,
  14179. msm_routing_put_audio_mixer),
  14180. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14181. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14182. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14183. msm_routing_get_audio_mixer,
  14184. msm_routing_put_audio_mixer),
  14185. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14187. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14188. msm_routing_get_audio_mixer,
  14189. msm_routing_put_audio_mixer),
  14190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14192. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14193. msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14197. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14198. msm_routing_get_audio_mixer,
  14199. msm_routing_put_audio_mixer),
  14200. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14202. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14203. msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_USB_TX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. };
  14226. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14227. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14228. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14229. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14230. msm_routing_put_audio_mixer),
  14231. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14232. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14233. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14234. msm_routing_put_audio_mixer),
  14235. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14237. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14238. msm_routing_put_audio_mixer),
  14239. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14241. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14242. msm_routing_put_audio_mixer),
  14243. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14245. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14246. msm_routing_put_audio_mixer),
  14247. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14248. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14249. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14250. msm_routing_put_audio_mixer),
  14251. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14252. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14253. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14254. msm_routing_put_audio_mixer),
  14255. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14256. MSM_BACKEND_DAI_INT_FM_TX,
  14257. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14258. msm_routing_put_audio_mixer),
  14259. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14261. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14262. msm_routing_put_audio_mixer),
  14263. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_AFE_PCM_TX,
  14265. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14266. msm_routing_put_audio_mixer),
  14267. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14269. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14270. msm_routing_put_audio_mixer),
  14271. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14273. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14274. msm_routing_put_audio_mixer),
  14275. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14277. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14278. msm_routing_put_audio_mixer),
  14279. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14281. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14282. msm_routing_put_audio_mixer),
  14283. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14285. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14286. msm_routing_put_audio_mixer),
  14287. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14289. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14290. msm_routing_put_audio_mixer),
  14291. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14293. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14294. msm_routing_put_audio_mixer),
  14295. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14301. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14302. msm_routing_get_audio_mixer,
  14303. msm_routing_put_audio_mixer),
  14304. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14306. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14307. msm_routing_get_audio_mixer,
  14308. msm_routing_put_audio_mixer),
  14309. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14311. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14312. msm_routing_get_audio_mixer,
  14313. msm_routing_put_audio_mixer),
  14314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14316. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14317. msm_routing_get_audio_mixer,
  14318. msm_routing_put_audio_mixer),
  14319. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14321. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14322. msm_routing_get_audio_mixer,
  14323. msm_routing_put_audio_mixer),
  14324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14326. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14327. msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14331. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14332. msm_routing_put_audio_mixer),
  14333. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14334. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14335. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14336. msm_routing_put_audio_mixer),
  14337. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14339. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. };
  14342. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14343. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14344. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14345. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14346. msm_routing_put_audio_mixer),
  14347. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14348. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14349. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14350. msm_routing_put_audio_mixer),
  14351. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14353. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14354. msm_routing_put_audio_mixer),
  14355. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14357. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14358. msm_routing_put_audio_mixer),
  14359. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_INT_FM_TX,
  14361. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14362. msm_routing_put_audio_mixer),
  14363. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14365. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14366. msm_routing_put_audio_mixer),
  14367. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_AFE_PCM_TX,
  14369. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14370. msm_routing_put_audio_mixer),
  14371. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14373. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14374. msm_routing_put_audio_mixer),
  14375. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14377. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14378. msm_routing_put_audio_mixer),
  14379. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14389. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14390. msm_routing_put_audio_mixer),
  14391. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14393. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14394. msm_routing_put_audio_mixer),
  14395. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14397. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14398. msm_routing_put_audio_mixer),
  14399. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14413. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14414. msm_routing_put_audio_mixer),
  14415. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14417. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14418. msm_routing_get_audio_mixer,
  14419. msm_routing_put_audio_mixer),
  14420. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14422. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14423. msm_routing_get_audio_mixer,
  14424. msm_routing_put_audio_mixer),
  14425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14427. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14428. msm_routing_get_audio_mixer,
  14429. msm_routing_put_audio_mixer),
  14430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14432. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14433. msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14438. msm_routing_get_audio_mixer,
  14439. msm_routing_put_audio_mixer),
  14440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14442. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14443. msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14448. msm_routing_put_audio_mixer),
  14449. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14451. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14452. msm_routing_put_audio_mixer),
  14453. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14455. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. };
  14458. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14459. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14460. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14461. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14462. msm_routing_put_audio_mixer),
  14463. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14465. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14466. msm_routing_put_audio_mixer),
  14467. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14469. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14470. msm_routing_put_audio_mixer),
  14471. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14473. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14474. msm_routing_put_audio_mixer),
  14475. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14477. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14478. msm_routing_put_audio_mixer),
  14479. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14481. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14482. msm_routing_put_audio_mixer),
  14483. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14485. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14486. msm_routing_put_audio_mixer),
  14487. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14489. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14490. msm_routing_put_audio_mixer),
  14491. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14497. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14498. msm_routing_put_audio_mixer),
  14499. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14501. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14502. msm_routing_put_audio_mixer),
  14503. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14506. msm_routing_put_audio_mixer),
  14507. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14509. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14510. msm_routing_put_audio_mixer),
  14511. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14513. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14514. msm_routing_put_audio_mixer),
  14515. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14517. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14518. msm_routing_put_audio_mixer),
  14519. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14521. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14557. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14562. msm_routing_put_audio_mixer),
  14563. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14566. msm_routing_put_audio_mixer),
  14567. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14569. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14570. msm_routing_put_audio_mixer),
  14571. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14573. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14574. msm_routing_put_audio_mixer),
  14575. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14577. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14582. msm_routing_put_audio_mixer),
  14583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14585. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14586. msm_routing_put_audio_mixer),
  14587. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14589. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14590. msm_routing_put_audio_mixer),
  14591. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14593. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14594. msm_routing_put_audio_mixer),
  14595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14597. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14598. msm_routing_put_audio_mixer),
  14599. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14601. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14613. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14614. msm_routing_put_audio_mixer),
  14615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14617. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14618. msm_routing_put_audio_mixer),
  14619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14621. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14622. msm_routing_put_audio_mixer),
  14623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14625. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14626. msm_routing_put_audio_mixer),
  14627. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14629. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14630. msm_routing_put_audio_mixer),
  14631. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14633. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14634. msm_routing_put_audio_mixer),
  14635. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14637. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14638. msm_routing_put_audio_mixer),
  14639. };
  14640. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14641. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_AUXPCM_TX,
  14643. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14644. msm_routing_put_audio_mixer),
  14645. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14647. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14648. msm_routing_put_audio_mixer),
  14649. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14651. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14652. msm_routing_put_audio_mixer),
  14653. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14655. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14656. msm_routing_put_audio_mixer),
  14657. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14659. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14660. msm_routing_put_audio_mixer),
  14661. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14663. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14664. msm_routing_put_audio_mixer),
  14665. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14667. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14668. msm_routing_put_audio_mixer),
  14669. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14671. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14672. msm_routing_put_audio_mixer),
  14673. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14675. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14676. msm_routing_put_audio_mixer),
  14677. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14679. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14680. msm_routing_put_audio_mixer),
  14681. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14683. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14684. msm_routing_put_audio_mixer),
  14685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14687. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14688. msm_routing_put_audio_mixer),
  14689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14691. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14692. msm_routing_put_audio_mixer),
  14693. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14695. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14696. msm_routing_put_audio_mixer),
  14697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14699. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14700. msm_routing_put_audio_mixer),
  14701. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14703. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14704. msm_routing_put_audio_mixer),
  14705. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14707. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14708. msm_routing_put_audio_mixer),
  14709. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14711. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14712. msm_routing_put_audio_mixer),
  14713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14715. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14716. msm_routing_put_audio_mixer),
  14717. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14719. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14720. msm_routing_put_audio_mixer),
  14721. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14723. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14724. msm_routing_put_audio_mixer),
  14725. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14727. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14728. msm_routing_put_audio_mixer),
  14729. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14731. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14736. msm_routing_put_audio_mixer),
  14737. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14739. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14740. msm_routing_put_audio_mixer),
  14741. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14743. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14744. msm_routing_put_audio_mixer),
  14745. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14747. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14748. msm_routing_put_audio_mixer),
  14749. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14752. msm_routing_put_audio_mixer),
  14753. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14755. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14756. msm_routing_put_audio_mixer),
  14757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14759. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14760. msm_routing_put_audio_mixer),
  14761. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14763. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14764. msm_routing_put_audio_mixer),
  14765. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14767. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14768. msm_routing_put_audio_mixer),
  14769. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14770. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14771. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14772. msm_routing_put_audio_mixer),
  14773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14776. msm_routing_put_audio_mixer),
  14777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14779. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14780. msm_routing_put_audio_mixer),
  14781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14783. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14784. msm_routing_put_audio_mixer),
  14785. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14787. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14788. msm_routing_put_audio_mixer),
  14789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14791. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14792. msm_routing_put_audio_mixer),
  14793. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14795. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14796. msm_routing_put_audio_mixer),
  14797. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14799. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14800. msm_routing_put_audio_mixer),
  14801. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14803. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14804. msm_routing_put_audio_mixer),
  14805. };
  14806. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14807. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14809. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14810. msm_routing_put_audio_mixer),
  14811. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14813. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14814. msm_routing_put_audio_mixer),
  14815. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14817. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14818. msm_routing_put_audio_mixer),
  14819. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14821. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14822. msm_routing_put_audio_mixer),
  14823. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14825. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14826. msm_routing_put_audio_mixer),
  14827. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14829. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14830. msm_routing_put_audio_mixer),
  14831. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14833. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14834. msm_routing_put_audio_mixer),
  14835. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14837. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14838. msm_routing_put_audio_mixer),
  14839. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14841. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14842. msm_routing_put_audio_mixer),
  14843. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14845. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14846. msm_routing_put_audio_mixer),
  14847. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14849. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14850. msm_routing_put_audio_mixer),
  14851. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14853. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14854. msm_routing_put_audio_mixer),
  14855. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14857. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14858. msm_routing_put_audio_mixer),
  14859. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14860. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14861. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14862. msm_routing_put_audio_mixer),
  14863. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14865. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14866. msm_routing_put_audio_mixer),
  14867. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14869. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14870. msm_routing_put_audio_mixer),
  14871. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14872. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14873. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14874. msm_routing_put_audio_mixer),
  14875. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14877. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14878. msm_routing_put_audio_mixer),
  14879. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14880. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14881. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14882. msm_routing_put_audio_mixer),
  14883. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14885. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14886. msm_routing_put_audio_mixer),
  14887. };
  14888. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14889. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14891. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14892. msm_routing_put_audio_mixer),
  14893. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14895. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14896. msm_routing_put_audio_mixer),
  14897. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14899. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14900. msm_routing_put_audio_mixer),
  14901. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14903. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14904. msm_routing_put_audio_mixer),
  14905. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14907. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14908. msm_routing_put_audio_mixer),
  14909. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14911. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14912. msm_routing_put_audio_mixer),
  14913. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14915. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14916. msm_routing_put_audio_mixer),
  14917. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14919. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14920. msm_routing_put_audio_mixer),
  14921. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14923. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14924. msm_routing_put_audio_mixer),
  14925. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14927. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14928. msm_routing_put_audio_mixer),
  14929. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14931. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14932. msm_routing_put_audio_mixer),
  14933. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14935. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14936. msm_routing_put_audio_mixer),
  14937. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14939. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14940. msm_routing_put_audio_mixer),
  14941. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14942. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14943. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14944. msm_routing_put_audio_mixer),
  14945. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14946. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14947. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14948. msm_routing_put_audio_mixer),
  14949. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14951. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14952. msm_routing_put_audio_mixer),
  14953. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14954. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14955. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14956. msm_routing_put_audio_mixer),
  14957. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14959. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14960. msm_routing_put_audio_mixer),
  14961. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14963. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14964. msm_routing_put_audio_mixer),
  14965. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14967. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14968. msm_routing_put_audio_mixer),
  14969. };
  14970. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  14971. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14973. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14974. msm_routing_put_audio_mixer),
  14975. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14977. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14978. msm_routing_put_audio_mixer),
  14979. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14981. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14982. msm_routing_put_audio_mixer),
  14983. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14985. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14986. msm_routing_put_audio_mixer),
  14987. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14989. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14990. msm_routing_put_audio_mixer),
  14991. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14993. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14994. msm_routing_put_audio_mixer),
  14995. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14997. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14998. msm_routing_put_audio_mixer),
  14999. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15001. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15002. msm_routing_put_audio_mixer),
  15003. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15005. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15006. msm_routing_put_audio_mixer),
  15007. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15009. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15010. msm_routing_put_audio_mixer),
  15011. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15013. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15014. msm_routing_put_audio_mixer),
  15015. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15017. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15018. msm_routing_put_audio_mixer),
  15019. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15021. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15022. msm_routing_put_audio_mixer),
  15023. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15025. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15026. msm_routing_put_audio_mixer),
  15027. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15029. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15030. msm_routing_put_audio_mixer),
  15031. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15033. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15034. msm_routing_put_audio_mixer),
  15035. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15037. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15038. msm_routing_put_audio_mixer),
  15039. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15041. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15042. msm_routing_put_audio_mixer),
  15043. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15045. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15046. msm_routing_put_audio_mixer),
  15047. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15049. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15050. msm_routing_put_audio_mixer),
  15051. };
  15052. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15053. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15055. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15056. msm_routing_put_audio_mixer),
  15057. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15059. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15060. msm_routing_put_audio_mixer),
  15061. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15063. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15064. msm_routing_put_audio_mixer),
  15065. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15067. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15068. msm_routing_put_audio_mixer),
  15069. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15071. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15072. msm_routing_put_audio_mixer),
  15073. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15075. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15076. msm_routing_put_audio_mixer),
  15077. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15079. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15080. msm_routing_put_audio_mixer),
  15081. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15083. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15084. msm_routing_put_audio_mixer),
  15085. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15087. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15088. msm_routing_put_audio_mixer),
  15089. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15091. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15092. msm_routing_put_audio_mixer),
  15093. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15095. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15096. msm_routing_put_audio_mixer),
  15097. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15099. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15100. msm_routing_put_audio_mixer),
  15101. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15103. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15104. msm_routing_put_audio_mixer),
  15105. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15107. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15108. msm_routing_put_audio_mixer),
  15109. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15111. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15112. msm_routing_put_audio_mixer),
  15113. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15115. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15116. msm_routing_put_audio_mixer),
  15117. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15119. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15120. msm_routing_put_audio_mixer),
  15121. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15123. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15124. msm_routing_put_audio_mixer),
  15125. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15127. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15128. msm_routing_put_audio_mixer),
  15129. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15131. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15132. msm_routing_put_audio_mixer),
  15133. };
  15134. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15135. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15137. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15138. msm_routing_put_audio_mixer),
  15139. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15141. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15142. msm_routing_put_audio_mixer),
  15143. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15145. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15146. msm_routing_put_audio_mixer),
  15147. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15148. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15149. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15150. msm_routing_put_audio_mixer),
  15151. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15153. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15154. msm_routing_put_audio_mixer),
  15155. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15157. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15158. msm_routing_put_audio_mixer),
  15159. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15161. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15162. msm_routing_put_audio_mixer),
  15163. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15165. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15166. msm_routing_put_audio_mixer),
  15167. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15169. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15170. msm_routing_put_audio_mixer),
  15171. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15173. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15174. msm_routing_put_audio_mixer),
  15175. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15177. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15178. msm_routing_put_audio_mixer),
  15179. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15181. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15182. msm_routing_put_audio_mixer),
  15183. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15185. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15186. msm_routing_put_audio_mixer),
  15187. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15189. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15190. msm_routing_put_audio_mixer),
  15191. };
  15192. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15193. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15195. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15196. msm_routing_put_audio_mixer),
  15197. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15198. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15199. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15200. msm_routing_put_audio_mixer),
  15201. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15203. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15204. msm_routing_put_audio_mixer),
  15205. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15206. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15207. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15208. msm_routing_put_audio_mixer),
  15209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_INT_FM_TX,
  15211. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15212. msm_routing_put_audio_mixer),
  15213. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15214. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15215. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15216. msm_routing_put_audio_mixer),
  15217. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15218. MSM_BACKEND_DAI_AFE_PCM_TX,
  15219. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15220. msm_routing_put_audio_mixer),
  15221. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15223. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15224. msm_routing_put_audio_mixer),
  15225. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15227. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15228. msm_routing_put_audio_mixer),
  15229. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15231. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15232. msm_routing_put_audio_mixer),
  15233. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15235. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15236. msm_routing_put_audio_mixer),
  15237. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15239. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15240. msm_routing_put_audio_mixer),
  15241. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15243. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15244. msm_routing_put_audio_mixer),
  15245. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15247. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15248. msm_routing_put_audio_mixer),
  15249. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15251. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15252. msm_routing_put_audio_mixer),
  15253. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15255. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15256. msm_routing_put_audio_mixer),
  15257. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15259. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15260. msm_routing_put_audio_mixer),
  15261. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15263. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15264. msm_routing_put_audio_mixer),
  15265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15267. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15268. msm_routing_get_audio_mixer,
  15269. msm_routing_put_audio_mixer),
  15270. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15272. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15273. msm_routing_get_audio_mixer,
  15274. msm_routing_put_audio_mixer),
  15275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15277. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15278. msm_routing_get_audio_mixer,
  15279. msm_routing_put_audio_mixer),
  15280. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15282. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15283. msm_routing_get_audio_mixer,
  15284. msm_routing_put_audio_mixer),
  15285. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15287. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15288. msm_routing_get_audio_mixer,
  15289. msm_routing_put_audio_mixer),
  15290. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15292. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15293. msm_routing_get_audio_mixer,
  15294. msm_routing_put_audio_mixer),
  15295. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15297. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15298. msm_routing_put_audio_mixer),
  15299. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15301. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15302. msm_routing_put_audio_mixer),
  15303. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15305. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15306. msm_routing_put_audio_mixer),
  15307. };
  15308. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15309. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15311. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15312. msm_routing_put_audio_mixer),
  15313. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15315. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15316. msm_routing_put_audio_mixer),
  15317. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15319. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15320. msm_routing_put_audio_mixer),
  15321. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15323. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15324. msm_routing_put_audio_mixer),
  15325. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_INT_FM_TX,
  15327. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15328. msm_routing_put_audio_mixer),
  15329. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15331. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15332. msm_routing_put_audio_mixer),
  15333. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_AFE_PCM_TX,
  15335. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15336. msm_routing_put_audio_mixer),
  15337. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15339. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15340. msm_routing_put_audio_mixer),
  15341. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15343. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15344. msm_routing_put_audio_mixer),
  15345. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15346. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15347. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15348. msm_routing_put_audio_mixer),
  15349. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15350. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15351. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15352. msm_routing_put_audio_mixer),
  15353. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15354. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15355. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15356. msm_routing_put_audio_mixer),
  15357. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15358. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15359. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15360. msm_routing_put_audio_mixer),
  15361. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15362. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15363. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15364. msm_routing_put_audio_mixer),
  15365. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15366. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15367. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15368. msm_routing_put_audio_mixer),
  15369. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15370. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15371. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15372. msm_routing_put_audio_mixer),
  15373. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15375. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15376. msm_routing_put_audio_mixer),
  15377. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15379. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15380. msm_routing_put_audio_mixer),
  15381. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15383. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15384. msm_routing_get_audio_mixer,
  15385. msm_routing_put_audio_mixer),
  15386. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15388. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15389. msm_routing_get_audio_mixer,
  15390. msm_routing_put_audio_mixer),
  15391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15393. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15394. msm_routing_get_audio_mixer,
  15395. msm_routing_put_audio_mixer),
  15396. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15398. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15399. msm_routing_get_audio_mixer,
  15400. msm_routing_put_audio_mixer),
  15401. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15403. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15404. msm_routing_get_audio_mixer,
  15405. msm_routing_put_audio_mixer),
  15406. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15408. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15409. msm_routing_get_audio_mixer,
  15410. msm_routing_put_audio_mixer),
  15411. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15413. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15414. msm_routing_put_audio_mixer),
  15415. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15416. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15417. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15418. msm_routing_put_audio_mixer),
  15419. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15421. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15422. msm_routing_put_audio_mixer),
  15423. };
  15424. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15425. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15426. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15427. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15428. msm_routing_put_audio_mixer),
  15429. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15431. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15432. msm_routing_put_audio_mixer),
  15433. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15435. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15436. msm_routing_put_audio_mixer),
  15437. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15439. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15440. msm_routing_put_audio_mixer),
  15441. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_INT_FM_TX,
  15443. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15444. msm_routing_put_audio_mixer),
  15445. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15447. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15448. msm_routing_put_audio_mixer),
  15449. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_AFE_PCM_TX,
  15451. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15452. msm_routing_put_audio_mixer),
  15453. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15455. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15456. msm_routing_put_audio_mixer),
  15457. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15459. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15460. msm_routing_put_audio_mixer),
  15461. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15462. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15463. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15464. msm_routing_put_audio_mixer),
  15465. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15466. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15467. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15468. msm_routing_put_audio_mixer),
  15469. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15471. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15472. msm_routing_put_audio_mixer),
  15473. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15474. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15475. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15476. msm_routing_put_audio_mixer),
  15477. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15478. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15479. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15480. msm_routing_put_audio_mixer),
  15481. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15482. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15483. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15484. msm_routing_put_audio_mixer),
  15485. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15487. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15488. msm_routing_put_audio_mixer),
  15489. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15491. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15492. msm_routing_put_audio_mixer),
  15493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15495. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15496. msm_routing_get_audio_mixer,
  15497. msm_routing_put_audio_mixer),
  15498. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15500. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15501. msm_routing_get_audio_mixer,
  15502. msm_routing_put_audio_mixer),
  15503. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15505. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15506. msm_routing_get_audio_mixer,
  15507. msm_routing_put_audio_mixer),
  15508. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15509. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15510. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15511. msm_routing_get_audio_mixer,
  15512. msm_routing_put_audio_mixer),
  15513. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15514. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15515. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15516. msm_routing_get_audio_mixer,
  15517. msm_routing_put_audio_mixer),
  15518. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15520. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15521. msm_routing_get_audio_mixer,
  15522. msm_routing_put_audio_mixer),
  15523. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15524. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15525. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15526. msm_routing_put_audio_mixer),
  15527. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15528. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15529. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15530. msm_routing_put_audio_mixer),
  15531. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15532. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15533. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15534. msm_routing_put_audio_mixer),
  15535. };
  15536. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15537. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_PRI_I2S_RX,
  15539. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15540. msm_routing_put_voice_mixer),
  15541. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_PRI_I2S_RX,
  15543. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15544. msm_routing_put_voice_mixer),
  15545. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_PRI_I2S_RX,
  15547. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15548. msm_routing_put_voice_mixer),
  15549. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15550. MSM_BACKEND_DAI_PRI_I2S_RX,
  15551. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15552. msm_routing_put_voice_mixer),
  15553. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15554. MSM_BACKEND_DAI_PRI_I2S_RX,
  15555. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15556. msm_routing_put_voice_mixer),
  15557. };
  15558. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15559. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_SEC_I2S_RX,
  15561. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15562. msm_routing_put_voice_mixer),
  15563. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_SEC_I2S_RX,
  15565. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15566. msm_routing_put_voice_mixer),
  15567. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_SEC_I2S_RX,
  15569. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15570. msm_routing_put_voice_mixer),
  15571. };
  15572. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15573. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15575. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15576. msm_routing_put_voice_mixer),
  15577. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15579. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15580. msm_routing_put_voice_mixer),
  15581. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15583. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15584. msm_routing_put_voice_mixer),
  15585. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15586. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15587. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15588. msm_routing_put_voice_mixer),
  15589. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15590. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15591. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15592. msm_routing_put_voice_mixer),
  15593. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15594. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15595. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15596. msm_routing_put_voice_mixer),
  15597. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15598. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15599. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15600. msm_routing_put_voice_mixer),
  15601. };
  15602. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15603. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15605. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15606. msm_routing_put_voice_mixer),
  15607. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15609. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15610. msm_routing_put_voice_mixer),
  15611. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15613. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15614. msm_routing_put_voice_mixer),
  15615. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15616. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15617. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15618. msm_routing_put_voice_mixer),
  15619. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15620. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15621. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15622. msm_routing_put_voice_mixer),
  15623. };
  15624. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15625. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15627. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15628. msm_routing_put_voice_mixer),
  15629. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15631. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15632. msm_routing_put_voice_mixer),
  15633. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15635. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15636. msm_routing_put_voice_mixer),
  15637. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15639. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15640. msm_routing_put_voice_mixer),
  15641. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15642. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15643. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15644. msm_routing_put_voice_mixer),
  15645. };
  15646. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15647. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_USB_RX,
  15649. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15650. msm_routing_put_voice_mixer),
  15651. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_USB_RX,
  15653. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15654. msm_routing_put_voice_mixer),
  15655. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_USB_RX,
  15657. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15658. msm_routing_put_voice_mixer),
  15659. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_USB_RX,
  15661. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15662. msm_routing_put_voice_mixer),
  15663. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_USB_RX,
  15665. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15666. msm_routing_put_voice_mixer),
  15667. };
  15668. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15669. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15670. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15671. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15672. msm_routing_put_voice_mixer),
  15673. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15674. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15675. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15676. msm_routing_put_voice_mixer),
  15677. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15678. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15679. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15680. msm_routing_put_voice_mixer),
  15681. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15682. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15683. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15684. msm_routing_put_voice_mixer),
  15685. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15686. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15687. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15688. msm_routing_put_voice_mixer),
  15689. };
  15690. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15691. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15692. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15693. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15694. msm_routing_put_voice_mixer),
  15695. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15697. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15698. msm_routing_put_voice_mixer),
  15699. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15701. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15702. msm_routing_put_voice_mixer),
  15703. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15705. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15706. msm_routing_put_voice_mixer),
  15707. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15709. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15710. msm_routing_put_voice_mixer),
  15711. };
  15712. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15713. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15715. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15716. msm_routing_put_voice_mixer),
  15717. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15719. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15720. msm_routing_put_voice_mixer),
  15721. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15723. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15724. msm_routing_put_voice_mixer),
  15725. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15726. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15727. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15728. msm_routing_put_voice_mixer),
  15729. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15730. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15731. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15732. msm_routing_put_voice_mixer),
  15733. };
  15734. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15735. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_MI2S_RX,
  15737. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15738. msm_routing_put_voice_mixer),
  15739. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_MI2S_RX,
  15741. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15742. msm_routing_put_voice_mixer),
  15743. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_MI2S_RX,
  15745. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15746. msm_routing_put_voice_mixer),
  15747. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_MI2S_RX,
  15749. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15750. msm_routing_put_voice_mixer),
  15751. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_MI2S_RX,
  15753. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15754. msm_routing_put_voice_mixer),
  15755. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_MI2S_RX,
  15757. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15758. msm_routing_put_voice_mixer),
  15759. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_MI2S_RX,
  15761. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15762. msm_routing_put_voice_mixer),
  15763. };
  15764. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15765. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15767. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15768. msm_routing_put_voice_mixer),
  15769. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15770. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15771. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15772. msm_routing_put_voice_mixer),
  15773. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15775. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15776. msm_routing_put_voice_mixer),
  15777. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15779. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15780. msm_routing_put_voice_mixer),
  15781. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15783. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15784. msm_routing_put_voice_mixer),
  15785. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15787. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15788. msm_routing_put_voice_mixer),
  15789. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15791. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15792. msm_routing_put_voice_mixer),
  15793. };
  15794. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15795. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15796. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15797. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15798. msm_routing_put_voice_mixer),
  15799. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15800. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15801. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15802. msm_routing_put_voice_mixer),
  15803. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15805. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15806. msm_routing_put_voice_mixer),
  15807. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15809. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15810. msm_routing_put_voice_mixer),
  15811. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15813. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15814. msm_routing_put_voice_mixer),
  15815. };
  15816. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15817. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15818. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15819. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15820. msm_routing_put_voice_mixer),
  15821. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15822. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15823. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15824. msm_routing_put_voice_mixer),
  15825. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15826. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15827. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15828. msm_routing_put_voice_mixer),
  15829. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15831. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15832. msm_routing_put_voice_mixer),
  15833. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15835. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15836. msm_routing_put_voice_mixer),
  15837. };
  15838. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15839. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15840. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15841. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15842. msm_routing_put_voice_mixer),
  15843. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15845. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15846. msm_routing_put_voice_mixer),
  15847. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15849. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15850. msm_routing_put_voice_mixer),
  15851. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15852. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15853. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15854. msm_routing_put_voice_mixer),
  15855. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15856. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15858. msm_routing_put_voice_mixer),
  15859. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15861. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15862. msm_routing_put_voice_mixer),
  15863. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15865. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15866. msm_routing_put_voice_mixer),
  15867. };
  15868. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15869. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15870. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15871. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15872. msm_routing_put_voice_mixer),
  15873. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15875. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15876. msm_routing_put_voice_mixer),
  15877. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15878. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15879. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15880. msm_routing_put_voice_mixer),
  15881. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15883. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15884. msm_routing_put_voice_mixer),
  15885. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15887. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15888. msm_routing_put_voice_mixer),
  15889. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15891. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15892. msm_routing_put_voice_mixer),
  15893. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15895. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15896. msm_routing_put_voice_mixer),
  15897. };
  15898. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15899. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15901. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15902. msm_routing_put_voice_mixer),
  15903. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15905. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15906. msm_routing_put_voice_stub_mixer),
  15907. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15909. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15910. msm_routing_put_voice_stub_mixer),
  15911. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15913. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15914. msm_routing_put_voice_mixer),
  15915. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15917. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15918. msm_routing_put_voice_mixer),
  15919. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15921. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15922. msm_routing_put_voice_mixer),
  15923. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15925. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15926. msm_routing_put_voice_mixer),
  15927. };
  15928. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15929. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15931. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15932. msm_routing_put_voice_mixer),
  15933. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15935. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15936. msm_routing_put_voice_mixer),
  15937. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15938. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15939. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15940. msm_routing_put_voice_mixer),
  15941. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15942. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15943. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15944. msm_routing_put_voice_mixer),
  15945. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15947. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15948. msm_routing_put_voice_mixer),
  15949. };
  15950. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15951. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_AFE_PCM_RX,
  15953. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15954. msm_routing_put_voice_mixer),
  15955. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_AFE_PCM_RX,
  15957. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15958. msm_routing_put_voice_mixer),
  15959. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15960. MSM_BACKEND_DAI_AFE_PCM_RX,
  15961. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15962. msm_routing_put_voice_mixer),
  15963. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15964. MSM_BACKEND_DAI_AFE_PCM_RX,
  15965. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15966. msm_routing_put_voice_mixer),
  15967. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15968. MSM_BACKEND_DAI_AFE_PCM_RX,
  15969. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15970. msm_routing_put_voice_mixer),
  15971. };
  15972. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15973. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_AUXPCM_RX,
  15975. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15976. msm_routing_put_voice_mixer),
  15977. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_AUXPCM_RX,
  15979. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15980. msm_routing_put_voice_mixer),
  15981. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15982. MSM_BACKEND_DAI_AUXPCM_RX,
  15983. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15984. msm_routing_put_voice_mixer),
  15985. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15986. MSM_BACKEND_DAI_AUXPCM_RX,
  15987. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15988. msm_routing_put_voice_mixer),
  15989. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15990. MSM_BACKEND_DAI_AUXPCM_RX,
  15991. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15992. msm_routing_put_voice_mixer),
  15993. };
  15994. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15995. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15997. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15998. msm_routing_put_voice_mixer),
  15999. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16000. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16001. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16002. msm_routing_put_voice_mixer),
  16003. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16004. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16005. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16006. msm_routing_put_voice_mixer),
  16007. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16008. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16009. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16010. msm_routing_put_voice_mixer),
  16011. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16012. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16013. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16014. msm_routing_put_voice_mixer),
  16015. };
  16016. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16017. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16019. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16020. msm_routing_put_voice_mixer),
  16021. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16023. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16024. msm_routing_put_voice_mixer),
  16025. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16027. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16028. msm_routing_put_voice_mixer),
  16029. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16030. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16031. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16032. msm_routing_put_voice_mixer),
  16033. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16034. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16035. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16036. msm_routing_put_voice_mixer),
  16037. };
  16038. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16039. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16040. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16041. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16042. msm_routing_put_voice_mixer),
  16043. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16044. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16045. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16046. msm_routing_put_voice_mixer),
  16047. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16048. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16049. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16050. msm_routing_put_voice_mixer),
  16051. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16052. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16053. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16054. msm_routing_put_voice_mixer),
  16055. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16056. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16057. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16058. msm_routing_put_voice_mixer),
  16059. };
  16060. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16061. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16062. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16063. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16064. msm_routing_put_voice_mixer),
  16065. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16067. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16068. msm_routing_put_voice_mixer),
  16069. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16071. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16072. msm_routing_put_voice_mixer),
  16073. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16075. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16076. msm_routing_put_voice_mixer),
  16077. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16079. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16080. msm_routing_put_voice_mixer),
  16081. };
  16082. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16083. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16084. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16085. msm_routing_put_voice_mixer),
  16086. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16087. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16088. msm_routing_put_voice_mixer),
  16089. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16090. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16091. msm_routing_put_voice_mixer),
  16092. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16094. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16095. msm_routing_put_voice_mixer),
  16096. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16098. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16099. msm_routing_put_voice_mixer),
  16100. };
  16101. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16102. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_HDMI_RX,
  16104. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16105. msm_routing_put_voice_mixer),
  16106. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_HDMI_RX,
  16108. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16109. msm_routing_put_voice_mixer),
  16110. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_HDMI_RX,
  16112. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16113. msm_routing_put_voice_mixer),
  16114. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_HDMI_RX,
  16116. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16117. msm_routing_put_voice_mixer),
  16118. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_HDMI_RX,
  16120. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16121. msm_routing_put_voice_mixer),
  16122. };
  16123. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16124. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16126. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16127. msm_routing_put_voice_mixer),
  16128. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16130. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16131. msm_routing_put_voice_mixer),
  16132. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16134. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16135. msm_routing_put_voice_mixer),
  16136. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16138. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16139. msm_routing_put_voice_mixer),
  16140. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16142. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16143. msm_routing_put_voice_mixer),
  16144. };
  16145. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16146. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16148. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16149. msm_routing_put_voice_mixer),
  16150. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16152. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16153. msm_routing_put_voice_mixer),
  16154. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16156. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16157. msm_routing_put_voice_mixer),
  16158. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16160. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16161. msm_routing_put_voice_mixer),
  16162. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16164. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16165. msm_routing_put_voice_mixer),
  16166. };
  16167. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16168. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16169. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16170. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16171. msm_routing_put_voice_mixer),
  16172. };
  16173. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16174. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16176. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16177. msm_routing_put_voice_mixer),
  16178. };
  16179. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16180. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16182. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16183. msm_routing_put_voice_mixer),
  16184. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16186. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16187. msm_routing_put_voice_mixer),
  16188. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16189. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16190. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16191. msm_routing_put_voice_mixer),
  16192. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16194. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16195. msm_routing_put_voice_mixer),
  16196. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16197. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16198. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16199. msm_routing_put_voice_mixer),
  16200. };
  16201. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16202. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16204. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16205. msm_routing_put_voice_mixer),
  16206. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16208. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16209. msm_routing_put_voice_mixer),
  16210. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16212. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16213. msm_routing_put_voice_mixer),
  16214. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16216. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16217. msm_routing_put_voice_mixer),
  16218. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16220. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16221. msm_routing_put_voice_mixer),
  16222. };
  16223. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16224. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16225. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16226. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16227. msm_routing_put_voice_mixer),
  16228. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16229. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16230. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16231. msm_routing_put_voice_mixer),
  16232. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16233. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16234. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16235. msm_routing_put_voice_mixer),
  16236. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16238. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16239. msm_routing_put_voice_mixer),
  16240. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16241. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16242. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16243. msm_routing_put_voice_mixer),
  16244. };
  16245. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16246. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16248. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16249. msm_routing_put_voice_mixer),
  16250. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16251. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16252. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16253. msm_routing_put_voice_mixer),
  16254. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16255. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16256. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16257. msm_routing_put_voice_mixer),
  16258. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16259. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16260. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16261. msm_routing_put_voice_mixer),
  16262. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16263. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16264. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16265. msm_routing_put_voice_mixer),
  16266. };
  16267. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16268. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16270. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16274. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16278. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16282. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16283. msm_routing_put_voice_mixer),
  16284. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16286. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16287. msm_routing_put_voice_mixer),
  16288. };
  16289. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16290. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16291. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16292. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16293. msm_routing_put_voice_mixer),
  16294. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16296. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16297. msm_routing_put_voice_mixer),
  16298. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16299. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16300. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16301. msm_routing_put_voice_mixer),
  16302. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16303. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16304. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16305. msm_routing_put_voice_mixer),
  16306. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16308. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16309. msm_routing_put_voice_mixer),
  16310. };
  16311. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16312. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16314. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16315. msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16318. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16319. msm_routing_put_voice_mixer),
  16320. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16321. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16322. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16323. msm_routing_put_voice_mixer),
  16324. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16326. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16327. msm_routing_put_voice_mixer),
  16328. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16330. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16331. msm_routing_put_voice_mixer),
  16332. };
  16333. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16334. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16335. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16336. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16337. msm_routing_put_voice_mixer),
  16338. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16339. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16340. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16341. msm_routing_put_voice_mixer),
  16342. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16343. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16344. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16345. msm_routing_put_voice_mixer),
  16346. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16347. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16348. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16349. msm_routing_put_voice_mixer),
  16350. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16352. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16353. msm_routing_put_voice_mixer),
  16354. };
  16355. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16356. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16357. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16358. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16359. msm_routing_put_voice_mixer),
  16360. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16361. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16362. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16363. msm_routing_put_voice_mixer),
  16364. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16365. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16366. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16367. msm_routing_put_voice_mixer),
  16368. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16370. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16371. msm_routing_put_voice_mixer),
  16372. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16374. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16375. msm_routing_put_voice_mixer),
  16376. };
  16377. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16378. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16379. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16380. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16381. msm_routing_put_voice_mixer),
  16382. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16383. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16384. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16385. msm_routing_put_voice_mixer),
  16386. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16387. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16388. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16389. msm_routing_put_voice_mixer),
  16390. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16391. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16392. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16393. msm_routing_put_voice_mixer),
  16394. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16396. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16397. msm_routing_put_voice_mixer),
  16398. };
  16399. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16400. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16402. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16403. msm_routing_put_voice_mixer),
  16404. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16405. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16406. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16407. msm_routing_put_voice_stub_mixer),
  16408. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16409. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16410. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16411. msm_routing_put_voice_stub_mixer),
  16412. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16413. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16414. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16415. msm_routing_put_voice_mixer),
  16416. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16417. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16418. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16419. msm_routing_put_voice_mixer),
  16420. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16421. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16422. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16423. msm_routing_put_voice_mixer),
  16424. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16425. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16426. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16427. msm_routing_put_voice_mixer),
  16428. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16430. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16431. msm_routing_put_voice_mixer),
  16432. };
  16433. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16434. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16435. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16436. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16437. msm_routing_put_voice_mixer),
  16438. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16440. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16441. msm_routing_put_voice_stub_mixer),
  16442. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16443. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16444. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16445. msm_routing_put_voice_stub_mixer),
  16446. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16447. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16448. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16449. msm_routing_put_voice_mixer),
  16450. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16451. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16452. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16453. msm_routing_put_voice_mixer),
  16454. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16455. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16456. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16457. msm_routing_put_voice_mixer),
  16458. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16460. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16461. msm_routing_put_voice_mixer),
  16462. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16464. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16465. msm_routing_put_voice_mixer),
  16466. };
  16467. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16468. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16469. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16470. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16471. msm_routing_put_voice_mixer),
  16472. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16473. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16474. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16475. msm_routing_put_voice_stub_mixer),
  16476. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16477. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  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("VoLTE Stub", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16482. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16483. msm_routing_put_voice_mixer),
  16484. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16485. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16486. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16487. msm_routing_put_voice_mixer),
  16488. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16490. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16491. msm_routing_put_voice_mixer),
  16492. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16493. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16494. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16495. msm_routing_put_voice_mixer),
  16496. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16497. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16498. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16499. msm_routing_put_voice_mixer),
  16500. };
  16501. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16502. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16504. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16505. msm_routing_put_voice_mixer),
  16506. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16507. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16508. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16509. msm_routing_put_voice_stub_mixer),
  16510. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16512. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16513. msm_routing_put_voice_stub_mixer),
  16514. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16515. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16516. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16517. msm_routing_put_voice_mixer),
  16518. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16519. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16520. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16521. msm_routing_put_voice_mixer),
  16522. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16524. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16525. msm_routing_put_voice_mixer),
  16526. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16527. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16528. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16529. msm_routing_put_voice_mixer),
  16530. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16531. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16532. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16533. msm_routing_put_voice_mixer),
  16534. };
  16535. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16536. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16537. MSM_BACKEND_DAI_EXTPROC_RX,
  16538. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16539. msm_routing_put_voice_mixer),
  16540. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_EXTPROC_RX,
  16542. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16543. msm_routing_put_voice_mixer),
  16544. };
  16545. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16546. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16548. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16549. msm_routing_put_voice_mixer),
  16550. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16552. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16553. msm_routing_put_voice_mixer),
  16554. };
  16555. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16556. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16557. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16558. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16559. msm_routing_put_voice_mixer),
  16560. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16562. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16563. msm_routing_put_voice_mixer),
  16564. };
  16565. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16566. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16567. MSM_BACKEND_DAI_PRI_I2S_TX,
  16568. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16569. msm_routing_put_voice_mixer),
  16570. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16571. MSM_BACKEND_DAI_MI2S_TX,
  16572. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16573. msm_routing_put_voice_mixer),
  16574. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16575. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16576. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16577. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16579. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16580. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16581. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16582. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16583. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16585. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16586. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16588. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16589. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16591. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16592. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16593. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16594. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16595. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16597. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16598. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16599. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16600. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16601. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16603. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16604. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16606. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16607. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16609. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16610. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16611. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16612. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16613. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16615. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16616. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16617. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16618. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16619. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_USB_TX,
  16621. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16622. msm_routing_put_voice_mixer),
  16623. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16625. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16626. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16627. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16628. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16629. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16631. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16634. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16637. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16638. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16639. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16640. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16641. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16642. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16643. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16646. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16649. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16652. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16653. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16655. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16656. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16658. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16659. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16661. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16662. };
  16663. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16664. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_PRI_I2S_TX,
  16666. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16667. msm_routing_put_voice_mixer),
  16668. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_MI2S_TX,
  16670. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16671. msm_routing_put_voice_mixer),
  16672. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16674. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16675. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16677. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16678. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16679. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16680. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16681. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16683. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16684. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16686. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16687. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16688. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16689. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16690. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16691. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16692. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16693. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16694. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16695. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16696. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16697. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16698. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16699. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16701. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16702. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16703. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16704. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16705. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16707. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16708. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16709. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16710. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16711. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16713. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16714. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16716. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16717. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16719. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16720. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16721. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16722. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16723. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16724. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16725. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16726. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16727. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16728. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16731. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16734. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16737. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16740. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16741. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16742. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16743. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16744. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16745. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16746. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16747. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16749. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16750. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16751. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16752. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16753. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16754. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16755. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16756. };
  16757. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16758. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16759. MSM_BACKEND_DAI_PRI_I2S_TX,
  16760. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16761. msm_routing_put_voice_mixer),
  16762. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16763. MSM_BACKEND_DAI_MI2S_TX,
  16764. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16765. msm_routing_put_voice_mixer),
  16766. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16768. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16769. msm_routing_put_voice_mixer),
  16770. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16771. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16772. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16773. msm_routing_put_voice_mixer),
  16774. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16775. MSM_BACKEND_DAI_AFE_PCM_TX,
  16776. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16777. msm_routing_put_voice_mixer),
  16778. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16779. MSM_BACKEND_DAI_AUXPCM_TX,
  16780. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16781. msm_routing_put_voice_mixer),
  16782. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16783. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16784. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16785. msm_routing_put_voice_mixer),
  16786. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16787. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16788. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16789. msm_routing_put_voice_mixer),
  16790. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16791. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16792. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16793. msm_routing_put_voice_mixer),
  16794. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16795. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16796. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16797. msm_routing_put_voice_mixer),
  16798. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16799. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16800. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16801. msm_routing_put_voice_mixer),
  16802. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16803. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16804. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16805. msm_routing_put_voice_mixer),
  16806. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16807. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16808. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16809. msm_routing_put_voice_mixer),
  16810. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16811. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16812. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16813. msm_routing_put_voice_mixer),
  16814. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16815. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16816. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16817. msm_routing_put_voice_mixer),
  16818. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16819. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16820. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16821. msm_routing_put_voice_mixer),
  16822. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16823. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16825. msm_routing_put_voice_mixer),
  16826. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16827. MSM_BACKEND_DAI_USB_TX,
  16828. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16829. msm_routing_put_voice_mixer),
  16830. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16831. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16832. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16833. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16835. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16836. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16838. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16841. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16844. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16845. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16846. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16847. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16850. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16851. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16853. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16854. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16855. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16856. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16857. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16858. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16859. msm_routing_put_voice_mixer),
  16860. };
  16861. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16862. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16863. MSM_BACKEND_DAI_EXTPROC_TX,
  16864. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16865. msm_routing_put_voice_stub_mixer),
  16866. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16868. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16869. msm_routing_put_voice_stub_mixer),
  16870. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16871. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16872. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16873. msm_routing_put_voice_stub_mixer),
  16874. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16875. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16876. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16877. msm_routing_put_voice_stub_mixer),
  16878. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_MI2S_TX,
  16880. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16881. msm_routing_put_voice_stub_mixer),
  16882. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16883. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16884. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16885. msm_routing_put_voice_stub_mixer),
  16886. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16888. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16889. msm_routing_put_voice_stub_mixer),
  16890. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16891. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16892. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16893. msm_routing_put_voice_stub_mixer),
  16894. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16895. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16896. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16897. msm_routing_put_voice_stub_mixer),
  16898. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_AUXPCM_TX,
  16900. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16901. msm_routing_put_voice_stub_mixer),
  16902. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16903. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16904. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16905. msm_routing_put_voice_stub_mixer),
  16906. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16908. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16909. msm_routing_put_voice_stub_mixer),
  16910. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16911. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16912. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16913. msm_routing_put_voice_stub_mixer),
  16914. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16915. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16916. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16917. msm_routing_put_voice_stub_mixer),
  16918. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16919. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16920. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16921. msm_routing_put_voice_stub_mixer),
  16922. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16923. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16924. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16925. msm_routing_put_voice_stub_mixer),
  16926. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16927. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16928. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16929. msm_routing_put_voice_stub_mixer),
  16930. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16931. MSM_BACKEND_DAI_AFE_PCM_TX,
  16932. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16933. msm_routing_put_voice_stub_mixer),
  16934. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16935. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16936. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16937. msm_routing_put_voice_stub_mixer),
  16938. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16940. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16941. msm_routing_put_voice_stub_mixer),
  16942. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16943. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16944. 1, 0, msm_routing_get_voice_stub_mixer,
  16945. msm_routing_put_voice_stub_mixer),
  16946. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16947. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16948. 1, 0, msm_routing_get_voice_stub_mixer,
  16949. msm_routing_put_voice_stub_mixer),
  16950. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16952. 1, 0, msm_routing_get_voice_stub_mixer,
  16953. msm_routing_put_voice_stub_mixer),
  16954. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16955. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16956. 1, 0, msm_routing_get_voice_stub_mixer,
  16957. msm_routing_put_voice_stub_mixer),
  16958. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16960. 1, 0, msm_routing_get_voice_stub_mixer,
  16961. msm_routing_put_voice_stub_mixer),
  16962. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16963. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16964. 1, 0, msm_routing_get_voice_stub_mixer,
  16965. msm_routing_put_voice_stub_mixer),
  16966. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16967. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16968. 1, 0, msm_routing_get_voice_stub_mixer,
  16969. msm_routing_put_voice_stub_mixer),
  16970. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16971. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16972. 1, 0, msm_routing_get_voice_stub_mixer,
  16973. msm_routing_put_voice_stub_mixer),
  16974. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16975. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16976. 1, 0, msm_routing_get_voice_stub_mixer,
  16977. msm_routing_put_voice_stub_mixer),
  16978. };
  16979. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16980. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16981. MSM_BACKEND_DAI_EXTPROC_TX,
  16982. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16983. msm_routing_put_voice_stub_mixer),
  16984. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16985. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16986. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16987. msm_routing_put_voice_stub_mixer),
  16988. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16990. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16991. msm_routing_put_voice_stub_mixer),
  16992. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16993. MSM_BACKEND_DAI_AUXPCM_TX,
  16994. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16995. msm_routing_put_voice_stub_mixer),
  16996. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16998. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16999. msm_routing_put_voice_stub_mixer),
  17000. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17002. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17003. msm_routing_put_voice_stub_mixer),
  17004. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17005. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17006. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17007. msm_routing_put_voice_stub_mixer),
  17008. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17010. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17011. msm_routing_put_voice_stub_mixer),
  17012. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17014. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17015. msm_routing_put_voice_stub_mixer),
  17016. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17017. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17018. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17019. msm_routing_put_voice_stub_mixer),
  17020. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17022. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17023. msm_routing_put_voice_stub_mixer),
  17024. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17025. MSM_BACKEND_DAI_AFE_PCM_TX,
  17026. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17027. msm_routing_put_voice_stub_mixer),
  17028. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17030. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17031. msm_routing_put_voice_stub_mixer),
  17032. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17034. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17035. msm_routing_put_voice_stub_mixer),
  17036. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17037. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17038. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17039. msm_routing_put_voice_stub_mixer),
  17040. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17041. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17042. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17043. msm_routing_put_voice_stub_mixer),
  17044. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17046. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17047. msm_routing_put_voice_stub_mixer),
  17048. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17050. 1, 0, msm_routing_get_voice_stub_mixer,
  17051. msm_routing_put_voice_stub_mixer),
  17052. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17053. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17054. 1, 0, msm_routing_get_voice_stub_mixer,
  17055. msm_routing_put_voice_stub_mixer),
  17056. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17057. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17058. 1, 0, msm_routing_get_voice_stub_mixer,
  17059. msm_routing_put_voice_stub_mixer),
  17060. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17062. 1, 0, msm_routing_get_voice_stub_mixer,
  17063. msm_routing_put_voice_stub_mixer),
  17064. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17065. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17066. 1, 0, msm_routing_get_voice_stub_mixer,
  17067. msm_routing_put_voice_stub_mixer),
  17068. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17069. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17070. 1, 0, msm_routing_get_voice_stub_mixer,
  17071. msm_routing_put_voice_stub_mixer),
  17072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17074. 1, 0, msm_routing_get_voice_stub_mixer,
  17075. msm_routing_put_voice_stub_mixer),
  17076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17078. 1, 0, msm_routing_get_voice_stub_mixer,
  17079. msm_routing_put_voice_stub_mixer),
  17080. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17082. 1, 0, msm_routing_get_voice_stub_mixer,
  17083. msm_routing_put_voice_stub_mixer),
  17084. };
  17085. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17086. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17087. MSM_BACKEND_DAI_EXTPROC_TX,
  17088. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17089. msm_routing_put_voice_stub_mixer),
  17090. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17092. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17093. msm_routing_put_voice_stub_mixer),
  17094. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17095. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17096. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17097. msm_routing_put_voice_stub_mixer),
  17098. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17099. MSM_BACKEND_DAI_AUXPCM_TX,
  17100. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17101. msm_routing_put_voice_stub_mixer),
  17102. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17103. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17104. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17105. msm_routing_put_voice_stub_mixer),
  17106. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17107. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17108. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17109. msm_routing_put_voice_stub_mixer),
  17110. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17111. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17112. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17113. msm_routing_put_voice_stub_mixer),
  17114. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17115. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17116. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17117. msm_routing_put_voice_stub_mixer),
  17118. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17119. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17120. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17121. msm_routing_put_voice_stub_mixer),
  17122. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17124. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17125. msm_routing_put_voice_stub_mixer),
  17126. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17127. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17128. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17129. msm_routing_put_voice_stub_mixer),
  17130. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17131. MSM_BACKEND_DAI_AFE_PCM_TX,
  17132. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17133. msm_routing_put_voice_stub_mixer),
  17134. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17135. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17136. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17137. msm_routing_put_voice_stub_mixer),
  17138. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17139. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17140. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17141. msm_routing_put_voice_stub_mixer),
  17142. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17143. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17144. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17145. msm_routing_put_voice_stub_mixer),
  17146. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17147. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17148. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17149. msm_routing_put_voice_stub_mixer),
  17150. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17151. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17152. 1, 0, msm_routing_get_voice_stub_mixer,
  17153. msm_routing_put_voice_stub_mixer),
  17154. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17155. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17156. 1, 0, msm_routing_get_voice_stub_mixer,
  17157. msm_routing_put_voice_stub_mixer),
  17158. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17159. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17160. 1, 0, msm_routing_get_voice_stub_mixer,
  17161. msm_routing_put_voice_stub_mixer),
  17162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17164. 1, 0, msm_routing_get_voice_stub_mixer,
  17165. msm_routing_put_voice_stub_mixer),
  17166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17168. 1, 0, msm_routing_get_voice_stub_mixer,
  17169. msm_routing_put_voice_stub_mixer),
  17170. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17171. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17172. 1, 0, msm_routing_get_voice_stub_mixer,
  17173. msm_routing_put_voice_stub_mixer),
  17174. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17175. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17176. 1, 0, msm_routing_get_voice_stub_mixer,
  17177. msm_routing_put_voice_stub_mixer),
  17178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17180. 1, 0, msm_routing_get_voice_stub_mixer,
  17181. msm_routing_put_voice_stub_mixer),
  17182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17184. 1, 0, msm_routing_get_voice_stub_mixer,
  17185. msm_routing_put_voice_stub_mixer),
  17186. };
  17187. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17188. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17189. MSM_BACKEND_DAI_PRI_I2S_TX,
  17190. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17191. msm_routing_put_voice_mixer),
  17192. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17194. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17195. msm_routing_put_voice_mixer),
  17196. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17197. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17198. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17199. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17200. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_AFE_PCM_TX,
  17202. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17203. msm_routing_put_voice_mixer),
  17204. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17205. MSM_BACKEND_DAI_AUXPCM_TX,
  17206. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17207. msm_routing_put_voice_mixer),
  17208. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17209. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17210. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17211. msm_routing_put_voice_mixer),
  17212. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17214. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17215. msm_routing_put_voice_mixer),
  17216. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17217. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17218. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17219. msm_routing_put_voice_mixer),
  17220. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17222. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17223. msm_routing_put_voice_mixer),
  17224. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17226. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17227. msm_routing_put_voice_mixer),
  17228. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17229. MSM_BACKEND_DAI_MI2S_TX,
  17230. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17231. msm_routing_put_voice_mixer),
  17232. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17234. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17235. msm_routing_put_voice_mixer),
  17236. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17237. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17238. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17239. msm_routing_put_voice_mixer),
  17240. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17241. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17242. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17243. msm_routing_put_voice_mixer),
  17244. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17245. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17246. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17247. msm_routing_put_voice_mixer),
  17248. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17249. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17251. msm_routing_put_voice_mixer),
  17252. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17253. MSM_BACKEND_DAI_USB_TX,
  17254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17255. msm_routing_put_voice_mixer),
  17256. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17257. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17258. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17259. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17261. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17262. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17263. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17264. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17267. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17268. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17269. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17270. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17273. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17274. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17276. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17277. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17278. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17279. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17280. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17281. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17282. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17283. };
  17284. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17285. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17286. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17287. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17291. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17295. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17296. msm_routing_put_port_mixer),
  17297. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17298. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17299. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17300. msm_routing_put_port_mixer),
  17301. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17302. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17303. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17304. msm_routing_put_port_mixer),
  17305. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17306. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17307. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17308. msm_routing_put_port_mixer),
  17309. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17311. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17312. msm_routing_put_port_mixer),
  17313. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17315. MSM_BACKEND_DAI_INT_FM_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_INT0_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("SLIM_7_TX", SND_SOC_NOPM,
  17322. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17323. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17324. msm_routing_put_port_mixer),
  17325. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17326. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17327. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17331. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. };
  17334. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17335. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17336. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17337. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17338. msm_routing_put_port_mixer),
  17339. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17340. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17341. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17342. msm_routing_put_port_mixer),
  17343. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17344. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17345. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17346. msm_routing_put_port_mixer),
  17347. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17348. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17349. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17350. msm_routing_put_port_mixer),
  17351. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17352. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17353. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17354. msm_routing_put_port_mixer),
  17355. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17356. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17357. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17358. msm_routing_put_port_mixer),
  17359. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17360. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17361. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17362. msm_routing_put_port_mixer),
  17363. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17364. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17365. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17366. msm_routing_put_port_mixer),
  17367. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17368. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17369. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17370. msm_routing_put_port_mixer),
  17371. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17372. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17373. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17374. msm_routing_put_port_mixer),
  17375. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17376. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17377. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17378. msm_routing_put_port_mixer),
  17379. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17381. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17382. msm_routing_put_port_mixer),
  17383. };
  17384. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17387. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17391. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17395. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17396. msm_routing_put_port_mixer),
  17397. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17398. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17399. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. };
  17402. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17403. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17406. msm_routing_put_port_mixer),
  17407. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17409. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17410. msm_routing_put_port_mixer),
  17411. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17413. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17417. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17418. msm_routing_put_port_mixer),
  17419. };
  17420. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17421. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17423. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17424. msm_routing_put_port_mixer),
  17425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17426. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17427. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17428. msm_routing_put_port_mixer),
  17429. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17431. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17432. msm_routing_put_port_mixer),
  17433. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17435. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17436. msm_routing_put_port_mixer),
  17437. };
  17438. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17439. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17441. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17445. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17446. msm_routing_put_port_mixer),
  17447. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17449. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17453. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17456. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17457. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17458. msm_routing_put_port_mixer),
  17459. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17460. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17461. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17462. msm_routing_put_port_mixer),
  17463. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17465. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17466. msm_routing_put_port_mixer),
  17467. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17468. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17469. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17470. msm_routing_put_port_mixer),
  17471. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17472. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17473. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17474. msm_routing_put_port_mixer),
  17475. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17477. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17478. msm_routing_put_port_mixer),
  17479. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17480. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17481. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17485. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17486. msm_routing_put_port_mixer),
  17487. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17488. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17489. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17490. msm_routing_put_port_mixer),
  17491. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17492. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17493. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17494. msm_routing_put_port_mixer),
  17495. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17496. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17497. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17498. msm_routing_put_port_mixer),
  17499. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17500. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17501. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17505. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17509. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17510. msm_routing_put_port_mixer),
  17511. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17512. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17513. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17514. msm_routing_put_port_mixer),
  17515. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17516. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17517. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17518. msm_routing_put_port_mixer),
  17519. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17520. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17521. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17522. msm_routing_put_port_mixer),
  17523. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17524. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17525. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17526. msm_routing_put_port_mixer),
  17527. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17528. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17529. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17530. msm_routing_put_port_mixer),
  17531. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17532. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17533. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17534. msm_routing_put_port_mixer),
  17535. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17536. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17537. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17538. msm_routing_put_port_mixer),
  17539. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17540. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17541. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. };
  17544. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17545. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_AUXPCM_RX,
  17547. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17548. msm_routing_put_port_mixer),
  17549. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17550. MSM_BACKEND_DAI_AUXPCM_RX,
  17551. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_AUXPCM_RX,
  17555. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_AUXPCM_RX,
  17559. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17560. msm_routing_put_port_mixer),
  17561. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17562. MSM_BACKEND_DAI_AUXPCM_RX,
  17563. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17564. msm_routing_put_port_mixer),
  17565. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_AUXPCM_RX,
  17567. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17568. msm_routing_put_port_mixer),
  17569. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17570. MSM_BACKEND_DAI_AUXPCM_RX,
  17571. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. };
  17574. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17575. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17577. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17578. msm_routing_put_port_mixer),
  17579. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17581. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17585. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17589. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. };
  17592. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17593. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17594. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17595. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17596. msm_routing_put_port_mixer),
  17597. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17598. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17599. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17600. msm_routing_put_port_mixer),
  17601. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17602. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17603. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. };
  17606. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17607. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17609. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17610. msm_routing_put_port_mixer),
  17611. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17612. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17613. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, 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_QUAT_AUXPCM_RX,
  17617. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. };
  17620. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17621. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17622. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17623. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17627. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17631. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. };
  17634. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17635. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17636. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17637. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17638. msm_routing_put_port_mixer),
  17639. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17640. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17641. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17642. msm_routing_put_port_mixer),
  17643. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17644. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17645. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. };
  17648. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17649. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17651. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17655. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17658. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17659. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17660. msm_routing_put_port_mixer),
  17661. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17662. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17663. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17667. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17670. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17671. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17672. msm_routing_put_port_mixer),
  17673. };
  17674. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17675. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17677. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17681. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17685. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17689. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17690. msm_routing_put_port_mixer),
  17691. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17692. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17693. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17694. msm_routing_put_port_mixer),
  17695. };
  17696. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17697. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17699. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17700. msm_routing_put_port_mixer),
  17701. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17702. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17703. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17704. msm_routing_put_port_mixer),
  17705. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17706. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17707. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17708. msm_routing_put_port_mixer),
  17709. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17710. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17711. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17712. msm_routing_put_port_mixer),
  17713. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17714. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17715. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17719. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17720. msm_routing_put_port_mixer),
  17721. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17722. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17723. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17724. msm_routing_put_port_mixer),
  17725. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17726. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17727. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17731. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17732. msm_routing_put_port_mixer),
  17733. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17734. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17735. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17738. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17739. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17740. msm_routing_put_port_mixer),
  17741. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17742. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17743. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17744. msm_routing_put_port_mixer),
  17745. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17746. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17747. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17748. msm_routing_put_port_mixer),
  17749. };
  17750. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17751. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17753. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17754. msm_routing_put_port_mixer),
  17755. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17757. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17758. msm_routing_put_port_mixer),
  17759. };
  17760. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17761. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17762. MSM_BACKEND_DAI_AFE_PCM_RX,
  17763. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17764. msm_routing_put_port_mixer),
  17765. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17766. MSM_BACKEND_DAI_AFE_PCM_RX,
  17767. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17768. msm_routing_put_port_mixer),
  17769. };
  17770. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17771. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_HDMI_RX,
  17773. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17774. msm_routing_put_port_mixer),
  17775. };
  17776. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17777. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17779. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. };
  17782. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17783. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17784. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17785. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17786. msm_routing_put_port_mixer),
  17787. };
  17788. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17789. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_SEC_I2S_RX,
  17791. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17792. msm_routing_put_port_mixer),
  17793. };
  17794. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17795. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17796. MSM_BACKEND_DAI_MI2S_RX,
  17797. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17798. msm_routing_put_port_mixer),
  17799. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17800. MSM_BACKEND_DAI_MI2S_RX,
  17801. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17802. msm_routing_put_port_mixer),
  17803. };
  17804. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17805. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17807. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17811. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17812. msm_routing_put_port_mixer),
  17813. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17814. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17815. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17816. msm_routing_put_port_mixer),
  17817. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17818. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17819. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17822. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17823. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17824. msm_routing_put_port_mixer),
  17825. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17826. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17827. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17831. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17832. msm_routing_put_port_mixer),
  17833. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17834. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17835. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17836. msm_routing_put_port_mixer),
  17837. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17838. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17839. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17840. msm_routing_put_port_mixer),
  17841. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17842. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17843. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17844. msm_routing_put_port_mixer),
  17845. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17846. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17847. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17848. msm_routing_put_port_mixer),
  17849. };
  17850. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17851. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_USB_RX,
  17853. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17854. msm_routing_put_port_mixer),
  17855. };
  17856. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17857. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17858. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17859. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17860. msm_routing_put_port_mixer),
  17861. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17862. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17863. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17864. msm_routing_put_port_mixer),
  17865. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17866. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17867. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17871. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17874. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17875. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17876. msm_routing_put_port_mixer),
  17877. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17878. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17879. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17880. msm_routing_put_port_mixer),
  17881. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17882. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17883. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17884. msm_routing_put_port_mixer),
  17885. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17886. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17887. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17888. msm_routing_put_port_mixer),
  17889. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17890. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17891. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17892. msm_routing_put_port_mixer),
  17893. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17895. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17896. msm_routing_put_port_mixer),
  17897. };
  17898. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17899. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17900. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17901. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17905. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17906. msm_routing_put_port_mixer),
  17907. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17908. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17909. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17910. msm_routing_put_port_mixer),
  17911. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17912. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17913. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17914. msm_routing_put_port_mixer),
  17915. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17916. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17917. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17920. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17921. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17924. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17925. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17926. msm_routing_put_port_mixer),
  17927. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17928. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17929. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17930. msm_routing_put_port_mixer),
  17931. };
  17932. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17933. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17935. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17936. msm_routing_put_port_mixer),
  17937. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17938. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17939. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17940. msm_routing_put_port_mixer),
  17941. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17943. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17944. msm_routing_put_port_mixer),
  17945. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17946. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17947. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17948. msm_routing_put_port_mixer),
  17949. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17950. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17951. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17952. msm_routing_put_port_mixer),
  17953. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17954. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17955. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17956. msm_routing_put_port_mixer),
  17957. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17958. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17959. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17963. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17964. msm_routing_put_port_mixer),
  17965. };
  17966. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17967. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17968. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17969. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17970. msm_routing_get_port_mixer,
  17971. msm_routing_put_port_mixer),
  17972. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17973. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17974. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17975. msm_routing_get_port_mixer,
  17976. msm_routing_put_port_mixer),
  17977. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17978. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17979. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17980. msm_routing_get_port_mixer,
  17981. msm_routing_put_port_mixer),
  17982. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17983. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17984. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17985. msm_routing_get_port_mixer,
  17986. msm_routing_put_port_mixer),
  17987. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17988. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17989. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17990. msm_routing_get_port_mixer,
  17991. msm_routing_put_port_mixer),
  17992. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17993. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17994. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17995. msm_routing_get_port_mixer,
  17996. msm_routing_put_port_mixer),
  17997. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17999. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18000. msm_routing_get_port_mixer,
  18001. msm_routing_put_port_mixer),
  18002. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18003. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18004. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18005. msm_routing_get_port_mixer,
  18006. msm_routing_put_port_mixer),
  18007. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18008. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18009. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18010. msm_routing_get_port_mixer,
  18011. msm_routing_put_port_mixer),
  18012. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18013. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18014. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18015. msm_routing_get_port_mixer,
  18016. msm_routing_put_port_mixer),
  18017. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18019. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18020. msm_routing_get_port_mixer,
  18021. msm_routing_put_port_mixer),
  18022. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18023. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18024. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18025. msm_routing_get_port_mixer,
  18026. msm_routing_put_port_mixer),
  18027. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18028. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18029. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18030. msm_routing_get_port_mixer,
  18031. msm_routing_put_port_mixer),
  18032. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18033. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18034. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18035. msm_routing_get_port_mixer,
  18036. msm_routing_put_port_mixer),
  18037. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18038. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18039. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18040. msm_routing_get_port_mixer,
  18041. msm_routing_put_port_mixer),
  18042. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18043. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18044. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18045. msm_routing_get_port_mixer,
  18046. msm_routing_put_port_mixer),
  18047. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18048. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18049. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18050. msm_routing_get_port_mixer,
  18051. msm_routing_put_port_mixer),
  18052. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18053. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18054. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18055. msm_routing_get_port_mixer,
  18056. msm_routing_put_port_mixer),
  18057. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18058. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18059. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18060. msm_routing_get_port_mixer,
  18061. msm_routing_put_port_mixer),
  18062. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18063. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18064. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18065. msm_routing_get_port_mixer,
  18066. msm_routing_put_port_mixer),
  18067. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18068. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18069. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18070. msm_routing_get_port_mixer,
  18071. msm_routing_put_port_mixer),
  18072. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18073. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18074. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18075. msm_routing_get_port_mixer,
  18076. msm_routing_put_port_mixer),
  18077. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18078. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18079. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18080. msm_routing_get_port_mixer,
  18081. msm_routing_put_port_mixer),
  18082. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18083. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18084. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18085. msm_routing_get_port_mixer,
  18086. msm_routing_put_port_mixer),
  18087. };
  18088. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18089. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18090. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18091. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18092. msm_routing_get_port_mixer,
  18093. msm_routing_put_port_mixer),
  18094. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18095. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18096. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18097. msm_routing_get_port_mixer,
  18098. msm_routing_put_port_mixer),
  18099. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18101. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18102. msm_routing_get_port_mixer,
  18103. msm_routing_put_port_mixer),
  18104. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18106. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18107. msm_routing_get_port_mixer,
  18108. msm_routing_put_port_mixer),
  18109. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18110. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18111. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18112. msm_routing_get_port_mixer,
  18113. msm_routing_put_port_mixer),
  18114. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18115. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18116. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18117. msm_routing_get_port_mixer,
  18118. msm_routing_put_port_mixer),
  18119. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18120. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18121. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18122. msm_routing_get_port_mixer,
  18123. msm_routing_put_port_mixer),
  18124. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18126. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18127. msm_routing_get_port_mixer,
  18128. msm_routing_put_port_mixer),
  18129. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18131. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18132. msm_routing_get_port_mixer,
  18133. msm_routing_put_port_mixer),
  18134. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18135. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18136. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18137. msm_routing_get_port_mixer,
  18138. msm_routing_put_port_mixer),
  18139. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18140. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18141. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18142. msm_routing_get_port_mixer,
  18143. msm_routing_put_port_mixer),
  18144. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18145. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18146. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18147. msm_routing_get_port_mixer,
  18148. msm_routing_put_port_mixer),
  18149. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18151. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18152. msm_routing_get_port_mixer,
  18153. msm_routing_put_port_mixer),
  18154. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18155. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18156. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18157. msm_routing_get_port_mixer,
  18158. msm_routing_put_port_mixer),
  18159. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18160. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18161. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18162. msm_routing_get_port_mixer,
  18163. msm_routing_put_port_mixer),
  18164. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18165. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18166. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18167. msm_routing_get_port_mixer,
  18168. msm_routing_put_port_mixer),
  18169. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18170. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18171. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18172. msm_routing_get_port_mixer,
  18173. msm_routing_put_port_mixer),
  18174. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18175. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18176. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18177. msm_routing_get_port_mixer,
  18178. msm_routing_put_port_mixer),
  18179. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18180. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18181. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18182. msm_routing_get_port_mixer,
  18183. msm_routing_put_port_mixer),
  18184. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18185. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18186. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18187. msm_routing_get_port_mixer,
  18188. msm_routing_put_port_mixer),
  18189. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18190. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18191. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18192. msm_routing_get_port_mixer,
  18193. msm_routing_put_port_mixer),
  18194. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18195. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18196. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18197. msm_routing_get_port_mixer,
  18198. msm_routing_put_port_mixer),
  18199. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18200. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18201. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18202. msm_routing_get_port_mixer,
  18203. msm_routing_put_port_mixer),
  18204. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18205. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18206. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18207. msm_routing_get_port_mixer,
  18208. msm_routing_put_port_mixer),
  18209. };
  18210. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18211. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18212. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18213. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18214. msm_routing_get_port_mixer,
  18215. msm_routing_put_port_mixer),
  18216. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18217. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18218. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18219. msm_routing_get_port_mixer,
  18220. msm_routing_put_port_mixer),
  18221. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18222. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18223. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18224. msm_routing_get_port_mixer,
  18225. msm_routing_put_port_mixer),
  18226. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18227. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18228. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18229. msm_routing_get_port_mixer,
  18230. msm_routing_put_port_mixer),
  18231. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18232. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18233. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18234. msm_routing_get_port_mixer,
  18235. msm_routing_put_port_mixer),
  18236. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18237. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18238. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18239. msm_routing_get_port_mixer,
  18240. msm_routing_put_port_mixer),
  18241. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18242. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18243. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18244. msm_routing_get_port_mixer,
  18245. msm_routing_put_port_mixer),
  18246. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18247. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18248. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18249. msm_routing_get_port_mixer,
  18250. msm_routing_put_port_mixer),
  18251. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18252. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18253. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18254. msm_routing_get_port_mixer,
  18255. msm_routing_put_port_mixer),
  18256. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18257. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18258. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18259. msm_routing_get_port_mixer,
  18260. msm_routing_put_port_mixer),
  18261. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18262. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18263. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18264. msm_routing_get_port_mixer,
  18265. msm_routing_put_port_mixer),
  18266. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18267. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18268. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18269. msm_routing_get_port_mixer,
  18270. msm_routing_put_port_mixer),
  18271. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18272. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18273. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18274. msm_routing_get_port_mixer,
  18275. msm_routing_put_port_mixer),
  18276. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18277. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18278. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18279. msm_routing_get_port_mixer,
  18280. msm_routing_put_port_mixer),
  18281. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18282. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18283. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18284. msm_routing_get_port_mixer,
  18285. msm_routing_put_port_mixer),
  18286. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18287. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18288. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18289. msm_routing_get_port_mixer,
  18290. msm_routing_put_port_mixer),
  18291. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18292. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18293. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18294. msm_routing_get_port_mixer,
  18295. msm_routing_put_port_mixer),
  18296. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18297. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18298. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18299. msm_routing_get_port_mixer,
  18300. msm_routing_put_port_mixer),
  18301. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18302. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18303. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18304. msm_routing_get_port_mixer,
  18305. msm_routing_put_port_mixer),
  18306. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18307. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18308. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18309. msm_routing_get_port_mixer,
  18310. msm_routing_put_port_mixer),
  18311. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18312. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18313. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18314. msm_routing_get_port_mixer,
  18315. msm_routing_put_port_mixer),
  18316. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18317. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18318. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18319. msm_routing_get_port_mixer,
  18320. msm_routing_put_port_mixer),
  18321. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18322. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18323. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18324. msm_routing_get_port_mixer,
  18325. msm_routing_put_port_mixer),
  18326. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18327. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18328. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18329. msm_routing_get_port_mixer,
  18330. msm_routing_put_port_mixer),
  18331. };
  18332. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18333. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18334. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18335. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18336. msm_routing_get_port_mixer,
  18337. msm_routing_put_port_mixer),
  18338. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18339. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18340. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18341. msm_routing_get_port_mixer,
  18342. msm_routing_put_port_mixer),
  18343. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18344. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18345. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18346. msm_routing_get_port_mixer,
  18347. msm_routing_put_port_mixer),
  18348. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18349. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18350. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18351. msm_routing_get_port_mixer,
  18352. msm_routing_put_port_mixer),
  18353. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18354. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18355. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18356. msm_routing_get_port_mixer,
  18357. msm_routing_put_port_mixer),
  18358. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18359. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18360. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18361. msm_routing_get_port_mixer,
  18362. msm_routing_put_port_mixer),
  18363. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18364. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18365. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18366. msm_routing_get_port_mixer,
  18367. msm_routing_put_port_mixer),
  18368. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18369. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18370. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18371. msm_routing_get_port_mixer,
  18372. msm_routing_put_port_mixer),
  18373. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18374. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18375. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18376. msm_routing_get_port_mixer,
  18377. msm_routing_put_port_mixer),
  18378. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18379. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18380. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18381. msm_routing_get_port_mixer,
  18382. msm_routing_put_port_mixer),
  18383. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18384. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18385. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18386. msm_routing_get_port_mixer,
  18387. msm_routing_put_port_mixer),
  18388. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18389. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18390. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18391. msm_routing_get_port_mixer,
  18392. msm_routing_put_port_mixer),
  18393. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18395. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18396. msm_routing_get_port_mixer,
  18397. msm_routing_put_port_mixer),
  18398. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18399. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18400. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18401. msm_routing_get_port_mixer,
  18402. msm_routing_put_port_mixer),
  18403. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18404. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18405. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18406. msm_routing_get_port_mixer,
  18407. msm_routing_put_port_mixer),
  18408. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18409. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18410. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18411. msm_routing_get_port_mixer,
  18412. msm_routing_put_port_mixer),
  18413. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18414. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18415. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18416. msm_routing_get_port_mixer,
  18417. msm_routing_put_port_mixer),
  18418. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18419. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18420. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18421. msm_routing_get_port_mixer,
  18422. msm_routing_put_port_mixer),
  18423. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18424. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18425. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18426. msm_routing_get_port_mixer,
  18427. msm_routing_put_port_mixer),
  18428. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18429. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18430. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18431. msm_routing_get_port_mixer,
  18432. msm_routing_put_port_mixer),
  18433. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18434. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18435. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18436. msm_routing_get_port_mixer,
  18437. msm_routing_put_port_mixer),
  18438. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18439. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18440. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18441. msm_routing_get_port_mixer,
  18442. msm_routing_put_port_mixer),
  18443. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18444. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18445. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18446. msm_routing_get_port_mixer,
  18447. msm_routing_put_port_mixer),
  18448. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18449. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18450. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18451. msm_routing_get_port_mixer,
  18452. msm_routing_put_port_mixer),
  18453. };
  18454. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18455. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18456. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18457. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18458. msm_routing_get_port_mixer,
  18459. msm_routing_put_port_mixer),
  18460. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18461. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18462. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18463. msm_routing_get_port_mixer,
  18464. msm_routing_put_port_mixer),
  18465. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18466. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18467. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18468. msm_routing_get_port_mixer,
  18469. msm_routing_put_port_mixer),
  18470. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18471. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18472. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18473. msm_routing_get_port_mixer,
  18474. msm_routing_put_port_mixer),
  18475. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18476. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18477. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18478. msm_routing_get_port_mixer,
  18479. msm_routing_put_port_mixer),
  18480. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18481. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18482. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18483. msm_routing_get_port_mixer,
  18484. msm_routing_put_port_mixer),
  18485. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18487. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18488. msm_routing_get_port_mixer,
  18489. msm_routing_put_port_mixer),
  18490. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18491. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18492. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18493. msm_routing_get_port_mixer,
  18494. msm_routing_put_port_mixer),
  18495. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18496. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18497. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18498. msm_routing_get_port_mixer,
  18499. msm_routing_put_port_mixer),
  18500. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18501. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18502. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18503. msm_routing_get_port_mixer,
  18504. msm_routing_put_port_mixer),
  18505. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18506. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18507. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18508. msm_routing_get_port_mixer,
  18509. msm_routing_put_port_mixer),
  18510. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18512. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18513. msm_routing_get_port_mixer,
  18514. msm_routing_put_port_mixer),
  18515. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18516. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18517. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18518. msm_routing_get_port_mixer,
  18519. msm_routing_put_port_mixer),
  18520. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18521. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18522. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18523. msm_routing_get_port_mixer,
  18524. msm_routing_put_port_mixer),
  18525. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18526. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18527. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18528. msm_routing_get_port_mixer,
  18529. msm_routing_put_port_mixer),
  18530. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18531. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18532. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18533. msm_routing_get_port_mixer,
  18534. msm_routing_put_port_mixer),
  18535. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18536. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18537. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18538. msm_routing_get_port_mixer,
  18539. msm_routing_put_port_mixer),
  18540. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18541. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18542. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18543. msm_routing_get_port_mixer,
  18544. msm_routing_put_port_mixer),
  18545. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18546. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18547. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18548. msm_routing_get_port_mixer,
  18549. msm_routing_put_port_mixer),
  18550. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18551. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18552. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18553. msm_routing_get_port_mixer,
  18554. msm_routing_put_port_mixer),
  18555. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18557. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18558. msm_routing_get_port_mixer,
  18559. msm_routing_put_port_mixer),
  18560. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18561. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18562. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18563. msm_routing_get_port_mixer,
  18564. msm_routing_put_port_mixer),
  18565. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18566. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18567. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18568. msm_routing_get_port_mixer,
  18569. msm_routing_put_port_mixer),
  18570. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18571. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18572. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18573. msm_routing_get_port_mixer,
  18574. msm_routing_put_port_mixer),
  18575. };
  18576. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18577. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18578. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18579. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18580. msm_routing_get_port_mixer,
  18581. msm_routing_put_port_mixer),
  18582. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18583. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18584. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18585. msm_routing_get_port_mixer,
  18586. msm_routing_put_port_mixer),
  18587. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18588. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18589. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18590. msm_routing_get_port_mixer,
  18591. msm_routing_put_port_mixer),
  18592. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18593. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18594. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18595. msm_routing_get_port_mixer,
  18596. msm_routing_put_port_mixer),
  18597. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18598. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18599. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18600. msm_routing_get_port_mixer,
  18601. msm_routing_put_port_mixer),
  18602. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18604. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18605. msm_routing_get_port_mixer,
  18606. msm_routing_put_port_mixer),
  18607. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18608. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18609. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18610. msm_routing_get_port_mixer,
  18611. msm_routing_put_port_mixer),
  18612. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18613. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18614. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18615. msm_routing_get_port_mixer,
  18616. msm_routing_put_port_mixer),
  18617. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18619. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18620. msm_routing_get_port_mixer,
  18621. msm_routing_put_port_mixer),
  18622. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18623. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18624. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18625. msm_routing_get_port_mixer,
  18626. msm_routing_put_port_mixer),
  18627. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18628. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18629. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18630. msm_routing_get_port_mixer,
  18631. msm_routing_put_port_mixer),
  18632. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18634. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18635. msm_routing_get_port_mixer,
  18636. msm_routing_put_port_mixer),
  18637. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18639. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18640. msm_routing_get_port_mixer,
  18641. msm_routing_put_port_mixer),
  18642. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18643. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18644. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18645. msm_routing_get_port_mixer,
  18646. msm_routing_put_port_mixer),
  18647. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18648. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18649. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18650. msm_routing_get_port_mixer,
  18651. msm_routing_put_port_mixer),
  18652. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18654. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18655. msm_routing_get_port_mixer,
  18656. msm_routing_put_port_mixer),
  18657. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18658. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18659. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18660. msm_routing_get_port_mixer,
  18661. msm_routing_put_port_mixer),
  18662. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18663. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18664. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18665. msm_routing_get_port_mixer,
  18666. msm_routing_put_port_mixer),
  18667. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18668. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18669. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18670. msm_routing_get_port_mixer,
  18671. msm_routing_put_port_mixer),
  18672. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18673. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18674. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18675. msm_routing_get_port_mixer,
  18676. msm_routing_put_port_mixer),
  18677. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18678. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18679. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18680. msm_routing_get_port_mixer,
  18681. msm_routing_put_port_mixer),
  18682. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18683. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18684. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18685. msm_routing_get_port_mixer,
  18686. msm_routing_put_port_mixer),
  18687. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18688. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18689. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18690. msm_routing_get_port_mixer,
  18691. msm_routing_put_port_mixer),
  18692. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18693. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18694. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18695. msm_routing_get_port_mixer,
  18696. msm_routing_put_port_mixer),
  18697. };
  18698. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18699. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18700. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18701. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18702. msm_routing_get_port_mixer,
  18703. msm_routing_put_port_mixer),
  18704. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18705. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18706. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18707. msm_routing_get_port_mixer,
  18708. msm_routing_put_port_mixer),
  18709. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18710. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18711. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18712. msm_routing_get_port_mixer,
  18713. msm_routing_put_port_mixer),
  18714. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18715. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18716. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18717. msm_routing_get_port_mixer,
  18718. msm_routing_put_port_mixer),
  18719. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18720. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18721. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18722. msm_routing_get_port_mixer,
  18723. msm_routing_put_port_mixer),
  18724. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18726. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18727. msm_routing_get_port_mixer,
  18728. msm_routing_put_port_mixer),
  18729. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18731. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18732. msm_routing_get_port_mixer,
  18733. msm_routing_put_port_mixer),
  18734. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18735. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18736. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18737. msm_routing_get_port_mixer,
  18738. msm_routing_put_port_mixer),
  18739. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18740. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18741. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18742. msm_routing_get_port_mixer,
  18743. msm_routing_put_port_mixer),
  18744. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18746. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18747. msm_routing_get_port_mixer,
  18748. msm_routing_put_port_mixer),
  18749. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18751. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18752. msm_routing_get_port_mixer,
  18753. msm_routing_put_port_mixer),
  18754. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18755. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18756. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18757. msm_routing_get_port_mixer,
  18758. msm_routing_put_port_mixer),
  18759. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18760. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18761. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18762. msm_routing_get_port_mixer,
  18763. msm_routing_put_port_mixer),
  18764. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18766. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18767. msm_routing_get_port_mixer,
  18768. msm_routing_put_port_mixer),
  18769. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18770. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18771. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18772. msm_routing_get_port_mixer,
  18773. msm_routing_put_port_mixer),
  18774. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18775. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18776. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18777. msm_routing_get_port_mixer,
  18778. msm_routing_put_port_mixer),
  18779. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18780. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18781. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18782. msm_routing_get_port_mixer,
  18783. msm_routing_put_port_mixer),
  18784. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18785. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18786. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18787. msm_routing_get_port_mixer,
  18788. msm_routing_put_port_mixer),
  18789. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18790. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18791. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18792. msm_routing_get_port_mixer,
  18793. msm_routing_put_port_mixer),
  18794. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18796. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18797. msm_routing_get_port_mixer,
  18798. msm_routing_put_port_mixer),
  18799. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18800. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18801. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18802. msm_routing_get_port_mixer,
  18803. msm_routing_put_port_mixer),
  18804. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18805. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18806. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18807. msm_routing_get_port_mixer,
  18808. msm_routing_put_port_mixer),
  18809. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18810. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18811. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18812. msm_routing_get_port_mixer,
  18813. msm_routing_put_port_mixer),
  18814. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18815. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18816. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18817. msm_routing_get_port_mixer,
  18818. msm_routing_put_port_mixer),
  18819. };
  18820. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18821. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18822. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18823. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18824. msm_routing_get_port_mixer,
  18825. msm_routing_put_port_mixer),
  18826. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18827. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18828. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18829. msm_routing_get_port_mixer,
  18830. msm_routing_put_port_mixer),
  18831. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18832. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18833. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18834. msm_routing_get_port_mixer,
  18835. msm_routing_put_port_mixer),
  18836. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18837. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18838. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18839. msm_routing_get_port_mixer,
  18840. msm_routing_put_port_mixer),
  18841. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18842. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18843. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18844. msm_routing_get_port_mixer,
  18845. msm_routing_put_port_mixer),
  18846. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18847. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18848. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18849. msm_routing_get_port_mixer,
  18850. msm_routing_put_port_mixer),
  18851. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18852. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18853. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18854. msm_routing_get_port_mixer,
  18855. msm_routing_put_port_mixer),
  18856. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18857. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18858. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18859. msm_routing_get_port_mixer,
  18860. msm_routing_put_port_mixer),
  18861. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18862. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18863. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18864. msm_routing_get_port_mixer,
  18865. msm_routing_put_port_mixer),
  18866. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18867. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18868. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18869. msm_routing_get_port_mixer,
  18870. msm_routing_put_port_mixer),
  18871. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18872. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18873. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18874. msm_routing_get_port_mixer,
  18875. msm_routing_put_port_mixer),
  18876. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18878. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18879. msm_routing_get_port_mixer,
  18880. msm_routing_put_port_mixer),
  18881. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18882. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18883. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18884. msm_routing_get_port_mixer,
  18885. msm_routing_put_port_mixer),
  18886. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18887. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18888. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18889. msm_routing_get_port_mixer,
  18890. msm_routing_put_port_mixer),
  18891. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18892. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18893. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18894. msm_routing_get_port_mixer,
  18895. msm_routing_put_port_mixer),
  18896. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18897. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18898. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18899. msm_routing_get_port_mixer,
  18900. msm_routing_put_port_mixer),
  18901. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18902. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18903. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18904. msm_routing_get_port_mixer,
  18905. msm_routing_put_port_mixer),
  18906. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18907. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18908. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18909. msm_routing_get_port_mixer,
  18910. msm_routing_put_port_mixer),
  18911. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18912. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18913. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18914. msm_routing_get_port_mixer,
  18915. msm_routing_put_port_mixer),
  18916. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18917. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18918. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18919. msm_routing_get_port_mixer,
  18920. msm_routing_put_port_mixer),
  18921. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18922. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18923. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18924. msm_routing_get_port_mixer,
  18925. msm_routing_put_port_mixer),
  18926. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18927. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18928. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18929. msm_routing_get_port_mixer,
  18930. msm_routing_put_port_mixer),
  18931. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18932. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18933. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18934. msm_routing_get_port_mixer,
  18935. msm_routing_put_port_mixer),
  18936. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18937. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18938. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18939. msm_routing_get_port_mixer,
  18940. msm_routing_put_port_mixer),
  18941. };
  18942. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18943. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18944. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18945. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18946. msm_routing_get_port_mixer,
  18947. msm_routing_put_port_mixer),
  18948. };
  18949. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18950. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18951. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18952. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18953. msm_routing_get_port_mixer,
  18954. msm_routing_put_port_mixer),
  18955. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18956. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18957. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18958. msm_routing_get_port_mixer,
  18959. msm_routing_put_port_mixer),
  18960. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18961. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18962. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18963. msm_routing_get_port_mixer,
  18964. msm_routing_put_port_mixer),
  18965. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18966. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18967. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18968. msm_routing_get_port_mixer,
  18969. msm_routing_put_port_mixer),
  18970. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18971. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18972. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18973. msm_routing_get_port_mixer,
  18974. msm_routing_put_port_mixer),
  18975. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18976. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18977. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18978. msm_routing_get_port_mixer,
  18979. msm_routing_put_port_mixer),
  18980. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18981. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18982. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18983. msm_routing_get_port_mixer,
  18984. msm_routing_put_port_mixer),
  18985. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18986. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18987. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18988. msm_routing_get_port_mixer,
  18989. msm_routing_put_port_mixer),
  18990. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18991. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18992. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18993. msm_routing_get_port_mixer,
  18994. msm_routing_put_port_mixer),
  18995. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18996. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18997. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18998. msm_routing_get_port_mixer,
  18999. msm_routing_put_port_mixer),
  19000. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19001. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19002. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19003. msm_routing_get_port_mixer,
  19004. msm_routing_put_port_mixer),
  19005. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19006. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19007. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19008. msm_routing_get_port_mixer,
  19009. msm_routing_put_port_mixer),
  19010. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19011. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19012. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19013. msm_routing_get_port_mixer,
  19014. msm_routing_put_port_mixer),
  19015. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19016. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19017. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19018. msm_routing_get_port_mixer,
  19019. msm_routing_put_port_mixer),
  19020. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19021. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19022. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19023. msm_routing_get_port_mixer,
  19024. msm_routing_put_port_mixer),
  19025. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19026. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19027. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19028. msm_routing_get_port_mixer,
  19029. msm_routing_put_port_mixer),
  19030. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19031. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19032. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19033. msm_routing_get_port_mixer,
  19034. msm_routing_put_port_mixer),
  19035. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19036. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19037. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19038. msm_routing_get_port_mixer,
  19039. msm_routing_put_port_mixer),
  19040. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19041. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19042. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19043. msm_routing_get_port_mixer,
  19044. msm_routing_put_port_mixer),
  19045. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19046. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19047. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19048. msm_routing_get_port_mixer,
  19049. msm_routing_put_port_mixer),
  19050. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19051. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19052. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19053. msm_routing_get_port_mixer,
  19054. msm_routing_put_port_mixer),
  19055. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19056. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19057. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19058. msm_routing_get_port_mixer,
  19059. msm_routing_put_port_mixer),
  19060. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19061. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19062. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19063. msm_routing_get_port_mixer,
  19064. msm_routing_put_port_mixer),
  19065. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19066. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19067. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19068. msm_routing_get_port_mixer,
  19069. msm_routing_put_port_mixer),
  19070. };
  19071. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19072. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19073. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19074. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19075. msm_routing_get_port_mixer,
  19076. msm_routing_put_port_mixer),
  19077. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19078. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19079. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19080. msm_routing_get_port_mixer,
  19081. msm_routing_put_port_mixer),
  19082. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19083. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19084. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19085. msm_routing_get_port_mixer,
  19086. msm_routing_put_port_mixer),
  19087. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19088. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19089. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19090. msm_routing_get_port_mixer,
  19091. msm_routing_put_port_mixer),
  19092. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19093. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19094. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19095. msm_routing_get_port_mixer,
  19096. msm_routing_put_port_mixer),
  19097. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19098. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19099. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19100. msm_routing_get_port_mixer,
  19101. msm_routing_put_port_mixer),
  19102. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19103. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19104. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19105. msm_routing_get_port_mixer,
  19106. msm_routing_put_port_mixer),
  19107. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19108. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19109. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19110. msm_routing_get_port_mixer,
  19111. msm_routing_put_port_mixer),
  19112. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19113. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19114. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19115. msm_routing_get_port_mixer,
  19116. msm_routing_put_port_mixer),
  19117. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19118. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19119. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19120. msm_routing_get_port_mixer,
  19121. msm_routing_put_port_mixer),
  19122. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19123. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19124. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19125. msm_routing_get_port_mixer,
  19126. msm_routing_put_port_mixer),
  19127. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19128. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19129. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19130. msm_routing_get_port_mixer,
  19131. msm_routing_put_port_mixer),
  19132. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19133. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19134. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19135. msm_routing_get_port_mixer,
  19136. msm_routing_put_port_mixer),
  19137. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19138. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19139. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19140. msm_routing_get_port_mixer,
  19141. msm_routing_put_port_mixer),
  19142. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19143. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19144. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19145. msm_routing_get_port_mixer,
  19146. msm_routing_put_port_mixer),
  19147. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19148. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19149. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19150. msm_routing_get_port_mixer,
  19151. msm_routing_put_port_mixer),
  19152. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19153. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19154. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19155. msm_routing_get_port_mixer,
  19156. msm_routing_put_port_mixer),
  19157. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19158. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19159. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19160. msm_routing_get_port_mixer,
  19161. msm_routing_put_port_mixer),
  19162. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19163. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19164. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19165. msm_routing_get_port_mixer,
  19166. msm_routing_put_port_mixer),
  19167. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19168. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19169. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19170. msm_routing_get_port_mixer,
  19171. msm_routing_put_port_mixer),
  19172. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19173. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19174. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19175. msm_routing_get_port_mixer,
  19176. msm_routing_put_port_mixer),
  19177. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19178. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19179. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19180. msm_routing_get_port_mixer,
  19181. msm_routing_put_port_mixer),
  19182. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19183. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19184. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19185. msm_routing_get_port_mixer,
  19186. msm_routing_put_port_mixer),
  19187. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19188. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19189. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19190. msm_routing_get_port_mixer,
  19191. msm_routing_put_port_mixer),
  19192. };
  19193. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19194. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19195. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19196. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19197. msm_routing_get_port_mixer,
  19198. msm_routing_put_port_mixer),
  19199. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19200. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19201. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19202. msm_routing_get_port_mixer,
  19203. msm_routing_put_port_mixer),
  19204. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19205. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19206. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19207. msm_routing_get_port_mixer,
  19208. msm_routing_put_port_mixer),
  19209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19210. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19211. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19212. msm_routing_get_port_mixer,
  19213. msm_routing_put_port_mixer),
  19214. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19215. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19216. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19217. msm_routing_get_port_mixer,
  19218. msm_routing_put_port_mixer),
  19219. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19220. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19221. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19222. msm_routing_get_port_mixer,
  19223. msm_routing_put_port_mixer),
  19224. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19225. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19226. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19227. msm_routing_get_port_mixer,
  19228. msm_routing_put_port_mixer),
  19229. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19230. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19231. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19232. msm_routing_get_port_mixer,
  19233. msm_routing_put_port_mixer),
  19234. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19235. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19236. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19237. msm_routing_get_port_mixer,
  19238. msm_routing_put_port_mixer),
  19239. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19240. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19241. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19242. msm_routing_get_port_mixer,
  19243. msm_routing_put_port_mixer),
  19244. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19245. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19246. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19247. msm_routing_get_port_mixer,
  19248. msm_routing_put_port_mixer),
  19249. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19250. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19251. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19252. msm_routing_get_port_mixer,
  19253. msm_routing_put_port_mixer),
  19254. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19255. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19256. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19257. msm_routing_get_port_mixer,
  19258. msm_routing_put_port_mixer),
  19259. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19260. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19261. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19262. msm_routing_get_port_mixer,
  19263. msm_routing_put_port_mixer),
  19264. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19265. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19266. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19267. msm_routing_get_port_mixer,
  19268. msm_routing_put_port_mixer),
  19269. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19270. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19271. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19272. msm_routing_get_port_mixer,
  19273. msm_routing_put_port_mixer),
  19274. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19275. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19276. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19277. msm_routing_get_port_mixer,
  19278. msm_routing_put_port_mixer),
  19279. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19280. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19281. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19282. msm_routing_get_port_mixer,
  19283. msm_routing_put_port_mixer),
  19284. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19285. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19286. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19287. msm_routing_get_port_mixer,
  19288. msm_routing_put_port_mixer),
  19289. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19290. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19291. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19292. msm_routing_get_port_mixer,
  19293. msm_routing_put_port_mixer),
  19294. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19295. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19296. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19297. msm_routing_get_port_mixer,
  19298. msm_routing_put_port_mixer),
  19299. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19300. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19301. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19302. msm_routing_get_port_mixer,
  19303. msm_routing_put_port_mixer),
  19304. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19305. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19306. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19307. msm_routing_get_port_mixer,
  19308. msm_routing_put_port_mixer),
  19309. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19310. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19311. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19312. msm_routing_get_port_mixer,
  19313. msm_routing_put_port_mixer),
  19314. };
  19315. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19316. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19317. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19318. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19319. msm_routing_get_port_mixer,
  19320. msm_routing_put_port_mixer),
  19321. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19322. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19323. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19324. msm_routing_get_port_mixer,
  19325. msm_routing_put_port_mixer),
  19326. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19327. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19328. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19329. msm_routing_get_port_mixer,
  19330. msm_routing_put_port_mixer),
  19331. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19332. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19333. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19334. msm_routing_get_port_mixer,
  19335. msm_routing_put_port_mixer),
  19336. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19337. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19338. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19339. msm_routing_get_port_mixer,
  19340. msm_routing_put_port_mixer),
  19341. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19342. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19343. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19344. msm_routing_get_port_mixer,
  19345. msm_routing_put_port_mixer),
  19346. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19347. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19348. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19349. msm_routing_get_port_mixer,
  19350. msm_routing_put_port_mixer),
  19351. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19352. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19353. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19354. msm_routing_get_port_mixer,
  19355. msm_routing_put_port_mixer),
  19356. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19357. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19358. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19359. msm_routing_get_port_mixer,
  19360. msm_routing_put_port_mixer),
  19361. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19362. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19363. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19364. msm_routing_get_port_mixer,
  19365. msm_routing_put_port_mixer),
  19366. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19367. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19368. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19369. msm_routing_get_port_mixer,
  19370. msm_routing_put_port_mixer),
  19371. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19372. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19373. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19374. msm_routing_get_port_mixer,
  19375. msm_routing_put_port_mixer),
  19376. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19377. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19378. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19379. msm_routing_get_port_mixer,
  19380. msm_routing_put_port_mixer),
  19381. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19382. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19383. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19384. msm_routing_get_port_mixer,
  19385. msm_routing_put_port_mixer),
  19386. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19387. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19388. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19389. msm_routing_get_port_mixer,
  19390. msm_routing_put_port_mixer),
  19391. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19392. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19393. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19394. msm_routing_get_port_mixer,
  19395. msm_routing_put_port_mixer),
  19396. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19397. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19398. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19399. msm_routing_get_port_mixer,
  19400. msm_routing_put_port_mixer),
  19401. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19402. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19403. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19404. msm_routing_get_port_mixer,
  19405. msm_routing_put_port_mixer),
  19406. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19407. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19408. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19409. msm_routing_get_port_mixer,
  19410. msm_routing_put_port_mixer),
  19411. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19412. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19413. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19414. msm_routing_get_port_mixer,
  19415. msm_routing_put_port_mixer),
  19416. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19417. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19418. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19419. msm_routing_get_port_mixer,
  19420. msm_routing_put_port_mixer),
  19421. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19422. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19423. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19424. msm_routing_get_port_mixer,
  19425. msm_routing_put_port_mixer),
  19426. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19427. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19428. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19429. msm_routing_get_port_mixer,
  19430. msm_routing_put_port_mixer),
  19431. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19432. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19433. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19434. msm_routing_get_port_mixer,
  19435. msm_routing_put_port_mixer),
  19436. };
  19437. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19438. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19439. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19440. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19441. msm_routing_get_port_mixer,
  19442. msm_routing_put_port_mixer),
  19443. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19444. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19445. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19446. msm_routing_get_port_mixer,
  19447. msm_routing_put_port_mixer),
  19448. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19449. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19450. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19451. msm_routing_get_port_mixer,
  19452. msm_routing_put_port_mixer),
  19453. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19454. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19455. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19456. msm_routing_get_port_mixer,
  19457. msm_routing_put_port_mixer),
  19458. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19459. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19460. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19461. msm_routing_get_port_mixer,
  19462. msm_routing_put_port_mixer),
  19463. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19464. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19465. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19466. msm_routing_get_port_mixer,
  19467. msm_routing_put_port_mixer),
  19468. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19469. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19470. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19471. msm_routing_get_port_mixer,
  19472. msm_routing_put_port_mixer),
  19473. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19474. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19475. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19476. msm_routing_get_port_mixer,
  19477. msm_routing_put_port_mixer),
  19478. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19479. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19480. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19481. msm_routing_get_port_mixer,
  19482. msm_routing_put_port_mixer),
  19483. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19484. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19485. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19486. msm_routing_get_port_mixer,
  19487. msm_routing_put_port_mixer),
  19488. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19489. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19490. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19491. msm_routing_get_port_mixer,
  19492. msm_routing_put_port_mixer),
  19493. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19494. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19495. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19496. msm_routing_get_port_mixer,
  19497. msm_routing_put_port_mixer),
  19498. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19499. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19500. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19501. msm_routing_get_port_mixer,
  19502. msm_routing_put_port_mixer),
  19503. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19504. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19505. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19506. msm_routing_get_port_mixer,
  19507. msm_routing_put_port_mixer),
  19508. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19509. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19510. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19511. msm_routing_get_port_mixer,
  19512. msm_routing_put_port_mixer),
  19513. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19514. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19515. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19516. msm_routing_get_port_mixer,
  19517. msm_routing_put_port_mixer),
  19518. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19519. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19520. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19521. msm_routing_get_port_mixer,
  19522. msm_routing_put_port_mixer),
  19523. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19524. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19525. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19526. msm_routing_get_port_mixer,
  19527. msm_routing_put_port_mixer),
  19528. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19529. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19530. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19531. msm_routing_get_port_mixer,
  19532. msm_routing_put_port_mixer),
  19533. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19534. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19535. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19536. msm_routing_get_port_mixer,
  19537. msm_routing_put_port_mixer),
  19538. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19539. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19540. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19541. msm_routing_get_port_mixer,
  19542. msm_routing_put_port_mixer),
  19543. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19544. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19545. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19546. msm_routing_get_port_mixer,
  19547. msm_routing_put_port_mixer),
  19548. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19549. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19550. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19551. msm_routing_get_port_mixer,
  19552. msm_routing_put_port_mixer),
  19553. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19554. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19555. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19556. msm_routing_get_port_mixer,
  19557. msm_routing_put_port_mixer),
  19558. };
  19559. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19560. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19561. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19562. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19563. msm_routing_get_port_mixer,
  19564. msm_routing_put_port_mixer),
  19565. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19566. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19567. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19568. msm_routing_get_port_mixer,
  19569. msm_routing_put_port_mixer),
  19570. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19571. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19572. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19573. msm_routing_get_port_mixer,
  19574. msm_routing_put_port_mixer),
  19575. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19576. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19577. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19578. msm_routing_get_port_mixer,
  19579. msm_routing_put_port_mixer),
  19580. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19581. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19582. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19583. msm_routing_get_port_mixer,
  19584. msm_routing_put_port_mixer),
  19585. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19586. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19587. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19588. msm_routing_get_port_mixer,
  19589. msm_routing_put_port_mixer),
  19590. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19591. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19592. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19593. msm_routing_get_port_mixer,
  19594. msm_routing_put_port_mixer),
  19595. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19597. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19598. msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19601. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19602. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19603. msm_routing_get_port_mixer,
  19604. msm_routing_put_port_mixer),
  19605. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19606. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19607. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19608. msm_routing_get_port_mixer,
  19609. msm_routing_put_port_mixer),
  19610. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19612. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19613. msm_routing_get_port_mixer,
  19614. msm_routing_put_port_mixer),
  19615. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19616. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19617. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19618. msm_routing_get_port_mixer,
  19619. msm_routing_put_port_mixer),
  19620. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19621. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19622. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19623. msm_routing_get_port_mixer,
  19624. msm_routing_put_port_mixer),
  19625. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19626. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19627. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19628. msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19632. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19633. msm_routing_get_port_mixer,
  19634. msm_routing_put_port_mixer),
  19635. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19636. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19637. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19638. msm_routing_get_port_mixer,
  19639. msm_routing_put_port_mixer),
  19640. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19641. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19642. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19643. msm_routing_get_port_mixer,
  19644. msm_routing_put_port_mixer),
  19645. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19646. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19647. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19648. msm_routing_get_port_mixer,
  19649. msm_routing_put_port_mixer),
  19650. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19651. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19652. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19653. msm_routing_get_port_mixer,
  19654. msm_routing_put_port_mixer),
  19655. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19656. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19657. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19658. msm_routing_get_port_mixer,
  19659. msm_routing_put_port_mixer),
  19660. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19662. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19663. msm_routing_get_port_mixer,
  19664. msm_routing_put_port_mixer),
  19665. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19666. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19667. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19668. msm_routing_get_port_mixer,
  19669. msm_routing_put_port_mixer),
  19670. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19671. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19672. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19673. msm_routing_get_port_mixer,
  19674. msm_routing_put_port_mixer),
  19675. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19676. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19677. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19678. msm_routing_get_port_mixer,
  19679. msm_routing_put_port_mixer),
  19680. };
  19681. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19682. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19683. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19684. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19685. msm_routing_get_port_mixer,
  19686. msm_routing_put_port_mixer),
  19687. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19688. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19689. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19690. msm_routing_get_port_mixer,
  19691. msm_routing_put_port_mixer),
  19692. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19693. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19694. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19695. msm_routing_get_port_mixer,
  19696. msm_routing_put_port_mixer),
  19697. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19698. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19699. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19700. msm_routing_get_port_mixer,
  19701. msm_routing_put_port_mixer),
  19702. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19703. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19704. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19705. msm_routing_get_port_mixer,
  19706. msm_routing_put_port_mixer),
  19707. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19708. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19709. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19710. msm_routing_get_port_mixer,
  19711. msm_routing_put_port_mixer),
  19712. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19713. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19714. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19715. msm_routing_get_port_mixer,
  19716. msm_routing_put_port_mixer),
  19717. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19718. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19719. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19720. msm_routing_get_port_mixer,
  19721. msm_routing_put_port_mixer),
  19722. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19724. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19725. msm_routing_get_port_mixer,
  19726. msm_routing_put_port_mixer),
  19727. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19729. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19730. msm_routing_get_port_mixer,
  19731. msm_routing_put_port_mixer),
  19732. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19733. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19734. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19735. msm_routing_get_port_mixer,
  19736. msm_routing_put_port_mixer),
  19737. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19738. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19739. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19740. msm_routing_get_port_mixer,
  19741. msm_routing_put_port_mixer),
  19742. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19743. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19744. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19745. msm_routing_get_port_mixer,
  19746. msm_routing_put_port_mixer),
  19747. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19749. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19750. msm_routing_get_port_mixer,
  19751. msm_routing_put_port_mixer),
  19752. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19753. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19754. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19755. msm_routing_get_port_mixer,
  19756. msm_routing_put_port_mixer),
  19757. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19758. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19759. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19760. msm_routing_get_port_mixer,
  19761. msm_routing_put_port_mixer),
  19762. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19764. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19765. msm_routing_get_port_mixer,
  19766. msm_routing_put_port_mixer),
  19767. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19768. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19769. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19770. msm_routing_get_port_mixer,
  19771. msm_routing_put_port_mixer),
  19772. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19773. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19774. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19775. msm_routing_get_port_mixer,
  19776. msm_routing_put_port_mixer),
  19777. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19779. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19780. msm_routing_get_port_mixer,
  19781. msm_routing_put_port_mixer),
  19782. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19783. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19784. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19785. msm_routing_get_port_mixer,
  19786. msm_routing_put_port_mixer),
  19787. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19788. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19789. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19790. msm_routing_get_port_mixer,
  19791. msm_routing_put_port_mixer),
  19792. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19793. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19794. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19795. msm_routing_get_port_mixer,
  19796. msm_routing_put_port_mixer),
  19797. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19798. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19799. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19800. msm_routing_get_port_mixer,
  19801. msm_routing_put_port_mixer),
  19802. };
  19803. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19804. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19805. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19806. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19807. msm_routing_get_port_mixer,
  19808. msm_routing_put_port_mixer),
  19809. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19810. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19811. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19812. msm_routing_get_port_mixer,
  19813. msm_routing_put_port_mixer),
  19814. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19815. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19816. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19817. msm_routing_get_port_mixer,
  19818. msm_routing_put_port_mixer),
  19819. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19820. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19821. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19822. msm_routing_get_port_mixer,
  19823. msm_routing_put_port_mixer),
  19824. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19825. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19826. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19827. msm_routing_get_port_mixer,
  19828. msm_routing_put_port_mixer),
  19829. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19830. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19831. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19832. msm_routing_get_port_mixer,
  19833. msm_routing_put_port_mixer),
  19834. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19835. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19836. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19837. msm_routing_get_port_mixer,
  19838. msm_routing_put_port_mixer),
  19839. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19840. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19841. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19842. msm_routing_get_port_mixer,
  19843. msm_routing_put_port_mixer),
  19844. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19845. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19846. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19847. msm_routing_get_port_mixer,
  19848. msm_routing_put_port_mixer),
  19849. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19850. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19851. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19852. msm_routing_get_port_mixer,
  19853. msm_routing_put_port_mixer),
  19854. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19855. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19856. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19857. msm_routing_get_port_mixer,
  19858. msm_routing_put_port_mixer),
  19859. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19861. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19862. msm_routing_get_port_mixer,
  19863. msm_routing_put_port_mixer),
  19864. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19865. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19866. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19867. msm_routing_get_port_mixer,
  19868. msm_routing_put_port_mixer),
  19869. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19870. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19871. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19872. msm_routing_get_port_mixer,
  19873. msm_routing_put_port_mixer),
  19874. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19875. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19876. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19877. msm_routing_get_port_mixer,
  19878. msm_routing_put_port_mixer),
  19879. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19880. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19881. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19882. msm_routing_get_port_mixer,
  19883. msm_routing_put_port_mixer),
  19884. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19885. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19886. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19887. msm_routing_get_port_mixer,
  19888. msm_routing_put_port_mixer),
  19889. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19891. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19892. msm_routing_get_port_mixer,
  19893. msm_routing_put_port_mixer),
  19894. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19895. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19896. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19897. msm_routing_get_port_mixer,
  19898. msm_routing_put_port_mixer),
  19899. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19900. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19901. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19902. msm_routing_get_port_mixer,
  19903. msm_routing_put_port_mixer),
  19904. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19905. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19906. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19907. msm_routing_get_port_mixer,
  19908. msm_routing_put_port_mixer),
  19909. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19911. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19912. msm_routing_get_port_mixer,
  19913. msm_routing_put_port_mixer),
  19914. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19915. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19916. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19917. msm_routing_get_port_mixer,
  19918. msm_routing_put_port_mixer),
  19919. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19920. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19921. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19922. msm_routing_get_port_mixer,
  19923. msm_routing_put_port_mixer),
  19924. };
  19925. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19926. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19927. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19928. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19929. msm_routing_get_port_mixer,
  19930. msm_routing_put_port_mixer),
  19931. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19932. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19933. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19934. msm_routing_get_port_mixer,
  19935. msm_routing_put_port_mixer),
  19936. };
  19937. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19938. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19939. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19940. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19941. msm_routing_get_port_mixer,
  19942. msm_routing_put_port_mixer),
  19943. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19944. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19945. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19946. msm_routing_get_port_mixer,
  19947. msm_routing_put_port_mixer),
  19948. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19949. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19950. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19951. msm_routing_get_port_mixer,
  19952. msm_routing_put_port_mixer),
  19953. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19954. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19955. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19956. msm_routing_get_port_mixer,
  19957. msm_routing_put_port_mixer),
  19958. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19959. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19960. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19961. msm_routing_get_port_mixer,
  19962. msm_routing_put_port_mixer),
  19963. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19964. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19965. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19966. msm_routing_get_port_mixer,
  19967. msm_routing_put_port_mixer),
  19968. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19969. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19970. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19971. msm_routing_get_port_mixer,
  19972. msm_routing_put_port_mixer),
  19973. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19974. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19975. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19976. msm_routing_get_port_mixer,
  19977. msm_routing_put_port_mixer),
  19978. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19979. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19980. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19981. msm_routing_get_port_mixer,
  19982. msm_routing_put_port_mixer),
  19983. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19984. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19985. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19986. msm_routing_get_port_mixer,
  19987. msm_routing_put_port_mixer),
  19988. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19989. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19990. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19991. msm_routing_get_port_mixer,
  19992. msm_routing_put_port_mixer),
  19993. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19994. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19995. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19996. msm_routing_get_port_mixer,
  19997. msm_routing_put_port_mixer),
  19998. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19999. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20000. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20001. msm_routing_get_port_mixer,
  20002. msm_routing_put_port_mixer),
  20003. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20004. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20005. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20006. msm_routing_get_port_mixer,
  20007. msm_routing_put_port_mixer),
  20008. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20009. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20010. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20011. msm_routing_get_port_mixer,
  20012. msm_routing_put_port_mixer),
  20013. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20014. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20015. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20016. msm_routing_get_port_mixer,
  20017. msm_routing_put_port_mixer),
  20018. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20019. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20020. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20021. msm_routing_get_port_mixer,
  20022. msm_routing_put_port_mixer),
  20023. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20024. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20025. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20026. msm_routing_get_port_mixer,
  20027. msm_routing_put_port_mixer),
  20028. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20029. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20030. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20031. msm_routing_get_port_mixer,
  20032. msm_routing_put_port_mixer),
  20033. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20034. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20035. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20036. msm_routing_get_port_mixer,
  20037. msm_routing_put_port_mixer),
  20038. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20039. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20040. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20041. msm_routing_get_port_mixer,
  20042. msm_routing_put_port_mixer),
  20043. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20045. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20046. msm_routing_get_port_mixer,
  20047. msm_routing_put_port_mixer),
  20048. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20049. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20050. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20051. msm_routing_get_port_mixer,
  20052. msm_routing_put_port_mixer),
  20053. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20055. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20056. msm_routing_get_port_mixer,
  20057. msm_routing_put_port_mixer),
  20058. };
  20059. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20060. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20061. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20062. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20063. msm_routing_get_port_mixer,
  20064. msm_routing_put_port_mixer),
  20065. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20066. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20068. msm_routing_get_port_mixer,
  20069. msm_routing_put_port_mixer),
  20070. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20071. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20072. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20073. msm_routing_get_port_mixer,
  20074. msm_routing_put_port_mixer),
  20075. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20076. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20077. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20078. msm_routing_get_port_mixer,
  20079. msm_routing_put_port_mixer),
  20080. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20081. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20082. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20083. msm_routing_get_port_mixer,
  20084. msm_routing_put_port_mixer),
  20085. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20086. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20087. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20088. msm_routing_get_port_mixer,
  20089. msm_routing_put_port_mixer),
  20090. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20091. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20092. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20093. msm_routing_get_port_mixer,
  20094. msm_routing_put_port_mixer),
  20095. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20096. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20097. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20098. msm_routing_get_port_mixer,
  20099. msm_routing_put_port_mixer),
  20100. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20101. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20102. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20103. msm_routing_get_port_mixer,
  20104. msm_routing_put_port_mixer),
  20105. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20106. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20107. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20108. msm_routing_get_port_mixer,
  20109. msm_routing_put_port_mixer),
  20110. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20111. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20112. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20113. msm_routing_get_port_mixer,
  20114. msm_routing_put_port_mixer),
  20115. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20116. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20117. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20118. msm_routing_get_port_mixer,
  20119. msm_routing_put_port_mixer),
  20120. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20121. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20122. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20123. msm_routing_get_port_mixer,
  20124. msm_routing_put_port_mixer),
  20125. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20126. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20127. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20128. msm_routing_get_port_mixer,
  20129. msm_routing_put_port_mixer),
  20130. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20131. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20132. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20133. msm_routing_get_port_mixer,
  20134. msm_routing_put_port_mixer),
  20135. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20136. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20137. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20138. msm_routing_get_port_mixer,
  20139. msm_routing_put_port_mixer),
  20140. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20141. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20142. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20143. msm_routing_get_port_mixer,
  20144. msm_routing_put_port_mixer),
  20145. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20146. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20147. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20148. msm_routing_get_port_mixer,
  20149. msm_routing_put_port_mixer),
  20150. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20151. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20152. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20153. msm_routing_get_port_mixer,
  20154. msm_routing_put_port_mixer),
  20155. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20156. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20157. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20158. msm_routing_get_port_mixer,
  20159. msm_routing_put_port_mixer),
  20160. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20161. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20162. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20163. msm_routing_get_port_mixer,
  20164. msm_routing_put_port_mixer),
  20165. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20166. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20167. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20168. msm_routing_get_port_mixer,
  20169. msm_routing_put_port_mixer),
  20170. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20171. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20172. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20173. msm_routing_get_port_mixer,
  20174. msm_routing_put_port_mixer),
  20175. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20176. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20177. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20178. msm_routing_get_port_mixer,
  20179. msm_routing_put_port_mixer),
  20180. };
  20181. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20182. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20183. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20184. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20185. msm_routing_get_port_mixer,
  20186. msm_routing_put_port_mixer),
  20187. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20188. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20189. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20190. msm_routing_get_port_mixer,
  20191. msm_routing_put_port_mixer),
  20192. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20193. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20194. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20195. msm_routing_get_port_mixer,
  20196. msm_routing_put_port_mixer),
  20197. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20198. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20199. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20200. msm_routing_get_port_mixer,
  20201. msm_routing_put_port_mixer),
  20202. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20203. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20204. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20205. msm_routing_get_port_mixer,
  20206. msm_routing_put_port_mixer),
  20207. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20208. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20209. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20210. msm_routing_get_port_mixer,
  20211. msm_routing_put_port_mixer),
  20212. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20213. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20214. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20215. msm_routing_get_port_mixer,
  20216. msm_routing_put_port_mixer),
  20217. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20218. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20219. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20220. msm_routing_get_port_mixer,
  20221. msm_routing_put_port_mixer),
  20222. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20223. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20224. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20225. msm_routing_get_port_mixer,
  20226. msm_routing_put_port_mixer),
  20227. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20228. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20229. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20230. msm_routing_get_port_mixer,
  20231. msm_routing_put_port_mixer),
  20232. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20233. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20234. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20235. msm_routing_get_port_mixer,
  20236. msm_routing_put_port_mixer),
  20237. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20238. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20239. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20240. msm_routing_get_port_mixer,
  20241. msm_routing_put_port_mixer),
  20242. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20243. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20244. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20245. msm_routing_get_port_mixer,
  20246. msm_routing_put_port_mixer),
  20247. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20248. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20249. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20250. msm_routing_get_port_mixer,
  20251. msm_routing_put_port_mixer),
  20252. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20253. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20254. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20255. msm_routing_get_port_mixer,
  20256. msm_routing_put_port_mixer),
  20257. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20258. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20259. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20260. msm_routing_get_port_mixer,
  20261. msm_routing_put_port_mixer),
  20262. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20263. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20264. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20265. msm_routing_get_port_mixer,
  20266. msm_routing_put_port_mixer),
  20267. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20268. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20269. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20270. msm_routing_get_port_mixer,
  20271. msm_routing_put_port_mixer),
  20272. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20273. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20274. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20275. msm_routing_get_port_mixer,
  20276. msm_routing_put_port_mixer),
  20277. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20278. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20279. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20280. msm_routing_get_port_mixer,
  20281. msm_routing_put_port_mixer),
  20282. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20283. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20284. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20285. msm_routing_get_port_mixer,
  20286. msm_routing_put_port_mixer),
  20287. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20288. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20289. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20290. msm_routing_get_port_mixer,
  20291. msm_routing_put_port_mixer),
  20292. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20293. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20294. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20295. msm_routing_get_port_mixer,
  20296. msm_routing_put_port_mixer),
  20297. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20298. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20299. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20300. msm_routing_get_port_mixer,
  20301. msm_routing_put_port_mixer),
  20302. };
  20303. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20304. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20305. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20306. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20307. msm_routing_get_port_mixer,
  20308. msm_routing_put_port_mixer),
  20309. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20310. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20311. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20312. msm_routing_get_port_mixer,
  20313. msm_routing_put_port_mixer),
  20314. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20315. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20316. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20317. msm_routing_get_port_mixer,
  20318. msm_routing_put_port_mixer),
  20319. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20320. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20321. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20322. msm_routing_get_port_mixer,
  20323. msm_routing_put_port_mixer),
  20324. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20325. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20326. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20327. msm_routing_get_port_mixer,
  20328. msm_routing_put_port_mixer),
  20329. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20330. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20331. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20332. msm_routing_get_port_mixer,
  20333. msm_routing_put_port_mixer),
  20334. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20335. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20336. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20337. msm_routing_get_port_mixer,
  20338. msm_routing_put_port_mixer),
  20339. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20340. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20341. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20342. msm_routing_get_port_mixer,
  20343. msm_routing_put_port_mixer),
  20344. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20345. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20346. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20347. msm_routing_get_port_mixer,
  20348. msm_routing_put_port_mixer),
  20349. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20350. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20351. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20352. msm_routing_get_port_mixer,
  20353. msm_routing_put_port_mixer),
  20354. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20355. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20356. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20357. msm_routing_get_port_mixer,
  20358. msm_routing_put_port_mixer),
  20359. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20360. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20361. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20362. msm_routing_get_port_mixer,
  20363. msm_routing_put_port_mixer),
  20364. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20365. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20366. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20367. msm_routing_get_port_mixer,
  20368. msm_routing_put_port_mixer),
  20369. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20370. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20371. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20372. msm_routing_get_port_mixer,
  20373. msm_routing_put_port_mixer),
  20374. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20375. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20376. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20377. msm_routing_get_port_mixer,
  20378. msm_routing_put_port_mixer),
  20379. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20380. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20381. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20382. msm_routing_get_port_mixer,
  20383. msm_routing_put_port_mixer),
  20384. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20385. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20386. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20387. msm_routing_get_port_mixer,
  20388. msm_routing_put_port_mixer),
  20389. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20390. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20391. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20392. msm_routing_get_port_mixer,
  20393. msm_routing_put_port_mixer),
  20394. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20395. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20396. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20397. msm_routing_get_port_mixer,
  20398. msm_routing_put_port_mixer),
  20399. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20400. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20401. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20402. msm_routing_get_port_mixer,
  20403. msm_routing_put_port_mixer),
  20404. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20405. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20406. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20407. msm_routing_get_port_mixer,
  20408. msm_routing_put_port_mixer),
  20409. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20410. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20411. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20412. msm_routing_get_port_mixer,
  20413. msm_routing_put_port_mixer),
  20414. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20415. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20416. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20417. msm_routing_get_port_mixer,
  20418. msm_routing_put_port_mixer),
  20419. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20420. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20421. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20422. msm_routing_get_port_mixer,
  20423. msm_routing_put_port_mixer),
  20424. };
  20425. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20426. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20427. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20428. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20429. msm_routing_get_port_mixer,
  20430. msm_routing_put_port_mixer),
  20431. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20432. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20433. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20434. msm_routing_get_port_mixer,
  20435. msm_routing_put_port_mixer),
  20436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20437. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20438. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20439. msm_routing_get_port_mixer,
  20440. msm_routing_put_port_mixer),
  20441. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20442. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20443. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20444. msm_routing_get_port_mixer,
  20445. msm_routing_put_port_mixer),
  20446. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20447. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20448. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20449. msm_routing_get_port_mixer,
  20450. msm_routing_put_port_mixer),
  20451. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20452. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20453. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20454. msm_routing_get_port_mixer,
  20455. msm_routing_put_port_mixer),
  20456. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20457. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20458. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20459. msm_routing_get_port_mixer,
  20460. msm_routing_put_port_mixer),
  20461. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20462. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20463. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20464. msm_routing_get_port_mixer,
  20465. msm_routing_put_port_mixer),
  20466. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20467. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20468. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20469. msm_routing_get_port_mixer,
  20470. msm_routing_put_port_mixer),
  20471. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20472. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20473. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20474. msm_routing_get_port_mixer,
  20475. msm_routing_put_port_mixer),
  20476. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20477. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20478. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20479. msm_routing_get_port_mixer,
  20480. msm_routing_put_port_mixer),
  20481. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20482. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20483. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20484. msm_routing_get_port_mixer,
  20485. msm_routing_put_port_mixer),
  20486. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20487. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20488. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20489. msm_routing_get_port_mixer,
  20490. msm_routing_put_port_mixer),
  20491. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20492. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20493. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20494. msm_routing_get_port_mixer,
  20495. msm_routing_put_port_mixer),
  20496. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20497. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20498. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20499. msm_routing_get_port_mixer,
  20500. msm_routing_put_port_mixer),
  20501. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20502. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20503. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20504. msm_routing_get_port_mixer,
  20505. msm_routing_put_port_mixer),
  20506. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20507. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20508. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20509. msm_routing_get_port_mixer,
  20510. msm_routing_put_port_mixer),
  20511. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20512. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20513. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20514. msm_routing_get_port_mixer,
  20515. msm_routing_put_port_mixer),
  20516. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20517. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20518. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20519. msm_routing_get_port_mixer,
  20520. msm_routing_put_port_mixer),
  20521. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20522. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20523. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20524. msm_routing_get_port_mixer,
  20525. msm_routing_put_port_mixer),
  20526. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20527. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20528. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20529. msm_routing_get_port_mixer,
  20530. msm_routing_put_port_mixer),
  20531. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20532. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20533. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20534. msm_routing_get_port_mixer,
  20535. msm_routing_put_port_mixer),
  20536. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20537. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20538. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20539. msm_routing_get_port_mixer,
  20540. msm_routing_put_port_mixer),
  20541. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20542. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20543. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20544. msm_routing_get_port_mixer,
  20545. msm_routing_put_port_mixer),
  20546. };
  20547. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20548. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20549. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20550. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20551. msm_routing_get_port_mixer,
  20552. msm_routing_put_port_mixer),
  20553. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20554. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20555. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20556. msm_routing_get_port_mixer,
  20557. msm_routing_put_port_mixer),
  20558. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20559. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20560. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20561. msm_routing_get_port_mixer,
  20562. msm_routing_put_port_mixer),
  20563. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20564. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20565. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20566. msm_routing_get_port_mixer,
  20567. msm_routing_put_port_mixer),
  20568. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20569. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20570. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20571. msm_routing_get_port_mixer,
  20572. msm_routing_put_port_mixer),
  20573. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20574. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20575. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20576. msm_routing_get_port_mixer,
  20577. msm_routing_put_port_mixer),
  20578. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20579. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20580. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20581. msm_routing_get_port_mixer,
  20582. msm_routing_put_port_mixer),
  20583. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20584. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20585. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20586. msm_routing_get_port_mixer,
  20587. msm_routing_put_port_mixer),
  20588. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20589. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20590. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20591. msm_routing_get_port_mixer,
  20592. msm_routing_put_port_mixer),
  20593. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20594. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20595. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20596. msm_routing_get_port_mixer,
  20597. msm_routing_put_port_mixer),
  20598. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20599. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20600. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20601. msm_routing_get_port_mixer,
  20602. msm_routing_put_port_mixer),
  20603. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20604. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20605. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20606. msm_routing_get_port_mixer,
  20607. msm_routing_put_port_mixer),
  20608. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20609. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20610. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20611. msm_routing_get_port_mixer,
  20612. msm_routing_put_port_mixer),
  20613. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20614. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20615. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20616. msm_routing_get_port_mixer,
  20617. msm_routing_put_port_mixer),
  20618. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20619. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20620. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20621. msm_routing_get_port_mixer,
  20622. msm_routing_put_port_mixer),
  20623. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20624. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20625. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20626. msm_routing_get_port_mixer,
  20627. msm_routing_put_port_mixer),
  20628. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20629. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20630. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20631. msm_routing_get_port_mixer,
  20632. msm_routing_put_port_mixer),
  20633. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20634. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20635. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20636. msm_routing_get_port_mixer,
  20637. msm_routing_put_port_mixer),
  20638. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20639. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20640. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20641. msm_routing_get_port_mixer,
  20642. msm_routing_put_port_mixer),
  20643. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20644. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20645. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20646. msm_routing_get_port_mixer,
  20647. msm_routing_put_port_mixer),
  20648. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20649. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20650. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20651. msm_routing_get_port_mixer,
  20652. msm_routing_put_port_mixer),
  20653. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20654. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20655. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20656. msm_routing_get_port_mixer,
  20657. msm_routing_put_port_mixer),
  20658. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20659. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20660. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20661. msm_routing_get_port_mixer,
  20662. msm_routing_put_port_mixer),
  20663. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20664. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20665. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20666. msm_routing_get_port_mixer,
  20667. msm_routing_put_port_mixer),
  20668. };
  20669. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20670. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20671. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20672. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20673. msm_routing_get_port_mixer,
  20674. msm_routing_put_port_mixer),
  20675. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20676. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20677. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20678. msm_routing_get_port_mixer,
  20679. msm_routing_put_port_mixer),
  20680. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20681. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20682. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20683. msm_routing_get_port_mixer,
  20684. msm_routing_put_port_mixer),
  20685. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20686. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20687. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20688. msm_routing_get_port_mixer,
  20689. msm_routing_put_port_mixer),
  20690. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20691. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20692. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20693. msm_routing_get_port_mixer,
  20694. msm_routing_put_port_mixer),
  20695. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20696. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20697. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20698. msm_routing_get_port_mixer,
  20699. msm_routing_put_port_mixer),
  20700. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20701. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20702. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20703. msm_routing_get_port_mixer,
  20704. msm_routing_put_port_mixer),
  20705. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20706. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20707. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20708. msm_routing_get_port_mixer,
  20709. msm_routing_put_port_mixer),
  20710. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20711. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20712. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20713. msm_routing_get_port_mixer,
  20714. msm_routing_put_port_mixer),
  20715. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20716. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20717. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20718. msm_routing_get_port_mixer,
  20719. msm_routing_put_port_mixer),
  20720. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20721. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20722. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20723. msm_routing_get_port_mixer,
  20724. msm_routing_put_port_mixer),
  20725. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20726. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20727. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20728. msm_routing_get_port_mixer,
  20729. msm_routing_put_port_mixer),
  20730. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20731. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20732. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20733. msm_routing_get_port_mixer,
  20734. msm_routing_put_port_mixer),
  20735. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20736. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20737. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20738. msm_routing_get_port_mixer,
  20739. msm_routing_put_port_mixer),
  20740. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20741. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20742. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20743. msm_routing_get_port_mixer,
  20744. msm_routing_put_port_mixer),
  20745. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20746. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20747. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20748. msm_routing_get_port_mixer,
  20749. msm_routing_put_port_mixer),
  20750. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20751. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20752. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20753. msm_routing_get_port_mixer,
  20754. msm_routing_put_port_mixer),
  20755. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20756. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20757. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20758. msm_routing_get_port_mixer,
  20759. msm_routing_put_port_mixer),
  20760. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20761. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20762. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20763. msm_routing_get_port_mixer,
  20764. msm_routing_put_port_mixer),
  20765. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20766. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20767. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20768. msm_routing_get_port_mixer,
  20769. msm_routing_put_port_mixer),
  20770. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20771. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20772. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20773. msm_routing_get_port_mixer,
  20774. msm_routing_put_port_mixer),
  20775. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20776. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20777. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20778. msm_routing_get_port_mixer,
  20779. msm_routing_put_port_mixer),
  20780. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20781. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20782. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20783. msm_routing_get_port_mixer,
  20784. msm_routing_put_port_mixer),
  20785. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20786. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20787. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20788. msm_routing_get_port_mixer,
  20789. msm_routing_put_port_mixer),
  20790. };
  20791. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20792. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20793. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20794. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20795. msm_routing_get_port_mixer,
  20796. msm_routing_put_port_mixer),
  20797. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20798. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20799. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20800. msm_routing_get_port_mixer,
  20801. msm_routing_put_port_mixer),
  20802. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20803. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20804. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20805. msm_routing_get_port_mixer,
  20806. msm_routing_put_port_mixer),
  20807. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20808. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20809. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20810. msm_routing_get_port_mixer,
  20811. msm_routing_put_port_mixer),
  20812. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20813. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20814. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20815. msm_routing_get_port_mixer,
  20816. msm_routing_put_port_mixer),
  20817. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20818. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20819. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20820. msm_routing_get_port_mixer,
  20821. msm_routing_put_port_mixer),
  20822. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20823. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20824. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20825. msm_routing_get_port_mixer,
  20826. msm_routing_put_port_mixer),
  20827. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20828. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20829. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20830. msm_routing_get_port_mixer,
  20831. msm_routing_put_port_mixer),
  20832. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20833. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20834. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20835. msm_routing_get_port_mixer,
  20836. msm_routing_put_port_mixer),
  20837. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20838. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20839. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20840. msm_routing_get_port_mixer,
  20841. msm_routing_put_port_mixer),
  20842. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20843. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20844. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20845. msm_routing_get_port_mixer,
  20846. msm_routing_put_port_mixer),
  20847. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20848. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20849. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20850. msm_routing_get_port_mixer,
  20851. msm_routing_put_port_mixer),
  20852. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20853. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20854. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20855. msm_routing_get_port_mixer,
  20856. msm_routing_put_port_mixer),
  20857. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20858. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20859. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20860. msm_routing_get_port_mixer,
  20861. msm_routing_put_port_mixer),
  20862. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20863. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20864. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20865. msm_routing_get_port_mixer,
  20866. msm_routing_put_port_mixer),
  20867. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20868. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20869. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20870. msm_routing_get_port_mixer,
  20871. msm_routing_put_port_mixer),
  20872. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20873. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20874. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20875. msm_routing_get_port_mixer,
  20876. msm_routing_put_port_mixer),
  20877. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20878. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20879. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20880. msm_routing_get_port_mixer,
  20881. msm_routing_put_port_mixer),
  20882. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20883. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20884. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20885. msm_routing_get_port_mixer,
  20886. msm_routing_put_port_mixer),
  20887. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20888. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20889. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20890. msm_routing_get_port_mixer,
  20891. msm_routing_put_port_mixer),
  20892. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20893. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20894. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20895. msm_routing_get_port_mixer,
  20896. msm_routing_put_port_mixer),
  20897. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20898. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20899. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20900. msm_routing_get_port_mixer,
  20901. msm_routing_put_port_mixer),
  20902. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20903. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20904. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20905. msm_routing_get_port_mixer,
  20906. msm_routing_put_port_mixer),
  20907. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20908. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20909. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20910. msm_routing_get_port_mixer,
  20911. msm_routing_put_port_mixer),
  20912. };
  20913. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20914. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20915. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20916. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20917. msm_routing_get_port_mixer,
  20918. msm_routing_put_port_mixer),
  20919. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20920. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20921. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20922. msm_routing_get_port_mixer,
  20923. msm_routing_put_port_mixer),
  20924. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20925. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20926. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20927. msm_routing_get_port_mixer,
  20928. msm_routing_put_port_mixer),
  20929. };
  20930. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20931. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20932. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20933. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20934. msm_routing_put_port_mixer),
  20935. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20936. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20937. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20938. msm_routing_put_port_mixer),
  20939. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20940. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20941. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20942. msm_routing_put_port_mixer),
  20943. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20944. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20945. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20946. msm_routing_put_port_mixer),
  20947. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20948. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20949. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20950. msm_routing_put_port_mixer),
  20951. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20952. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20953. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20954. msm_routing_put_port_mixer),
  20955. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20956. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20957. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20958. msm_routing_put_port_mixer),
  20959. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20960. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20961. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20962. msm_routing_put_port_mixer),
  20963. };
  20964. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20965. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20966. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20967. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20968. msm_routing_put_port_mixer),
  20969. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20970. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20971. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20972. msm_routing_put_port_mixer),
  20973. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20974. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20975. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20976. msm_routing_put_port_mixer),
  20977. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20978. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20979. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20980. msm_routing_put_port_mixer),
  20981. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20982. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20983. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20984. msm_routing_put_port_mixer),
  20985. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20986. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20987. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20988. msm_routing_put_port_mixer),
  20989. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20990. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20991. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20992. msm_routing_put_port_mixer),
  20993. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20994. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20995. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20996. msm_routing_put_port_mixer),
  20997. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20998. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20999. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21000. msm_routing_put_port_mixer),
  21001. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21002. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21003. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21004. msm_routing_put_port_mixer),
  21005. };
  21006. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21007. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21008. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21009. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21010. msm_routing_put_listen_mixer),
  21011. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21012. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21013. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21014. msm_routing_put_listen_mixer),
  21015. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21016. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21017. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21018. msm_routing_put_listen_mixer),
  21019. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21020. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21021. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21022. msm_routing_put_listen_mixer),
  21023. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21024. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21025. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21026. msm_routing_put_listen_mixer),
  21027. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21028. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21029. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21030. msm_routing_put_listen_mixer),
  21031. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21032. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21033. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21034. msm_routing_put_listen_mixer),
  21035. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21036. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21037. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21038. msm_routing_put_listen_mixer),
  21039. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21040. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21041. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21042. msm_routing_put_listen_mixer),
  21043. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21044. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21045. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21046. msm_routing_put_listen_mixer),
  21047. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21048. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21049. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21050. msm_routing_put_listen_mixer),
  21051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21053. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21054. msm_routing_put_listen_mixer),
  21055. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21056. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21057. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21058. msm_routing_put_listen_mixer),
  21059. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21060. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21061. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21062. msm_routing_put_listen_mixer),
  21063. };
  21064. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21065. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21066. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21067. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21068. msm_routing_put_listen_mixer),
  21069. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21070. SND_SOC_NOPM,
  21071. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21072. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21073. msm_routing_put_listen_mixer),
  21074. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21075. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21076. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21077. msm_routing_put_listen_mixer),
  21078. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21079. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21080. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21081. msm_routing_put_listen_mixer),
  21082. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21083. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21084. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21085. msm_routing_put_listen_mixer),
  21086. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21087. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21088. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21089. msm_routing_put_listen_mixer),
  21090. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21091. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21092. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21093. msm_routing_put_listen_mixer),
  21094. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21095. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21096. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21097. msm_routing_put_listen_mixer),
  21098. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21099. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21100. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21101. msm_routing_put_listen_mixer),
  21102. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21103. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21104. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21105. msm_routing_put_listen_mixer),
  21106. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21107. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21108. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21109. msm_routing_put_listen_mixer),
  21110. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21111. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21112. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21113. msm_routing_put_listen_mixer),
  21114. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21115. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21116. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21117. msm_routing_put_listen_mixer),
  21118. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21119. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21120. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21121. msm_routing_put_listen_mixer),
  21122. };
  21123. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21124. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21125. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21126. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21127. msm_routing_put_listen_mixer),
  21128. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21129. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21130. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21131. msm_routing_put_listen_mixer),
  21132. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21133. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21134. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21135. msm_routing_put_listen_mixer),
  21136. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21137. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21138. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21139. msm_routing_put_listen_mixer),
  21140. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21141. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21142. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21143. msm_routing_put_listen_mixer),
  21144. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21145. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21146. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21147. msm_routing_put_listen_mixer),
  21148. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21149. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21150. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21151. msm_routing_put_listen_mixer),
  21152. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21153. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21154. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21155. msm_routing_put_listen_mixer),
  21156. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21157. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21158. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21159. msm_routing_put_listen_mixer),
  21160. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21161. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21162. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21163. msm_routing_put_listen_mixer),
  21164. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21165. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21166. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21167. msm_routing_put_listen_mixer),
  21168. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21169. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21170. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21171. msm_routing_put_listen_mixer),
  21172. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21173. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21174. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21175. msm_routing_put_listen_mixer),
  21176. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21177. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21178. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21179. msm_routing_put_listen_mixer),
  21180. };
  21181. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21182. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21183. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21184. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21185. msm_routing_put_listen_mixer),
  21186. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21187. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21188. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21189. msm_routing_put_listen_mixer),
  21190. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21191. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21192. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21193. msm_routing_put_listen_mixer),
  21194. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21195. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21196. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21197. msm_routing_put_listen_mixer),
  21198. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21199. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21200. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21201. msm_routing_put_listen_mixer),
  21202. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21203. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21204. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21205. msm_routing_put_listen_mixer),
  21206. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21207. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21208. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21209. msm_routing_put_listen_mixer),
  21210. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21211. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21212. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21213. msm_routing_put_listen_mixer),
  21214. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21215. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21216. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21217. msm_routing_put_listen_mixer),
  21218. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21219. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21220. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21221. msm_routing_put_listen_mixer),
  21222. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21223. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21224. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21225. msm_routing_put_listen_mixer),
  21226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21228. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21229. msm_routing_put_listen_mixer),
  21230. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21231. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21232. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21233. msm_routing_put_listen_mixer),
  21234. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21235. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21236. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21237. msm_routing_put_listen_mixer),
  21238. };
  21239. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21240. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21241. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21242. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21243. msm_routing_put_listen_mixer),
  21244. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21245. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21246. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21247. msm_routing_put_listen_mixer),
  21248. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21249. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21250. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21251. msm_routing_put_listen_mixer),
  21252. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21253. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21254. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21255. msm_routing_put_listen_mixer),
  21256. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21257. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21258. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21259. msm_routing_put_listen_mixer),
  21260. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21261. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21262. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21263. msm_routing_put_listen_mixer),
  21264. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21265. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21266. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21267. msm_routing_put_listen_mixer),
  21268. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21269. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21270. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21271. msm_routing_put_listen_mixer),
  21272. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21273. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21274. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21275. msm_routing_put_listen_mixer),
  21276. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21277. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21278. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21279. msm_routing_put_listen_mixer),
  21280. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21281. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21282. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21283. msm_routing_put_listen_mixer),
  21284. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21285. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21286. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21287. msm_routing_put_listen_mixer),
  21288. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21289. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21290. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21291. msm_routing_put_listen_mixer),
  21292. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21293. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21294. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21295. msm_routing_put_listen_mixer),
  21296. };
  21297. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21298. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21299. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21300. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21301. msm_routing_put_listen_mixer),
  21302. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21303. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21304. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21305. msm_routing_put_listen_mixer),
  21306. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21307. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21308. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21309. msm_routing_put_listen_mixer),
  21310. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21311. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21312. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21313. msm_routing_put_listen_mixer),
  21314. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21315. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21316. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21317. msm_routing_put_listen_mixer),
  21318. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21319. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21320. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21321. msm_routing_put_listen_mixer),
  21322. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21323. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21324. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21325. msm_routing_put_listen_mixer),
  21326. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21327. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21328. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21329. msm_routing_put_listen_mixer),
  21330. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21331. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21332. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21333. msm_routing_put_listen_mixer),
  21334. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21335. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21336. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21337. msm_routing_put_listen_mixer),
  21338. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21339. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21340. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21341. msm_routing_put_listen_mixer),
  21342. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21343. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21344. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21345. msm_routing_put_listen_mixer),
  21346. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21347. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21348. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21349. msm_routing_put_listen_mixer),
  21350. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21351. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21352. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21353. msm_routing_put_listen_mixer),
  21354. };
  21355. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21356. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21357. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21358. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21359. msm_routing_put_listen_mixer),
  21360. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21361. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21362. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21363. msm_routing_put_listen_mixer),
  21364. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21365. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21366. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21367. msm_routing_put_listen_mixer),
  21368. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21369. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21370. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21371. msm_routing_put_listen_mixer),
  21372. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21373. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21374. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21375. msm_routing_put_listen_mixer),
  21376. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21377. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21378. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21379. msm_routing_put_listen_mixer),
  21380. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21381. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21382. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21383. msm_routing_put_listen_mixer),
  21384. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21385. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21386. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21387. msm_routing_put_listen_mixer),
  21388. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21389. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21390. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21391. msm_routing_put_listen_mixer),
  21392. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21393. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21394. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21395. msm_routing_put_listen_mixer),
  21396. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21397. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21398. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21399. msm_routing_put_listen_mixer),
  21400. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21401. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21402. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21403. msm_routing_put_listen_mixer),
  21404. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21405. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21406. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21407. msm_routing_put_listen_mixer),
  21408. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21409. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21410. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21411. msm_routing_put_listen_mixer),
  21412. };
  21413. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21414. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21415. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21416. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21417. msm_routing_put_listen_mixer),
  21418. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21419. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21420. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21421. msm_routing_put_listen_mixer),
  21422. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21423. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21424. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21425. msm_routing_put_listen_mixer),
  21426. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21427. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21428. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21429. msm_routing_put_listen_mixer),
  21430. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21431. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21432. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21433. msm_routing_put_listen_mixer),
  21434. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21435. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21436. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21437. msm_routing_put_listen_mixer),
  21438. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21439. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21440. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21441. msm_routing_put_listen_mixer),
  21442. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21443. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21444. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21445. msm_routing_put_listen_mixer),
  21446. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21448. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21449. msm_routing_put_listen_mixer),
  21450. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21451. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21452. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21453. msm_routing_put_listen_mixer),
  21454. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21455. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21456. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21457. msm_routing_put_listen_mixer),
  21458. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21459. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21460. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21461. msm_routing_put_listen_mixer),
  21462. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21463. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21464. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21465. msm_routing_put_listen_mixer),
  21466. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21467. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21468. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21469. msm_routing_put_listen_mixer),
  21470. };
  21471. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21472. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21473. 0, 1, 0, msm_routing_get_switch_mixer,
  21474. msm_routing_put_switch_mixer);
  21475. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21476. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21477. 0, 1, 0, msm_routing_get_switch_mixer,
  21478. msm_routing_put_switch_mixer);
  21479. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21480. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21481. 0, 1, 0, msm_routing_get_switch_mixer,
  21482. msm_routing_put_switch_mixer);
  21483. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21484. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21485. 0, 1, 0, msm_routing_get_switch_mixer,
  21486. msm_routing_put_switch_mixer);
  21487. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21488. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21489. 0, 1, 0, msm_routing_get_switch_mixer,
  21490. msm_routing_put_switch_mixer);
  21491. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21492. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21493. 0, 1, 0, msm_routing_get_switch_mixer,
  21494. msm_routing_put_switch_mixer);
  21495. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21496. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21497. 0, 1, 0, msm_routing_get_switch_mixer,
  21498. msm_routing_put_switch_mixer);
  21499. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21500. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21501. 0, 1, 0, msm_routing_get_switch_mixer,
  21502. msm_routing_put_switch_mixer);
  21503. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21504. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21505. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21506. msm_routing_put_fm_pcmrx_switch_mixer);
  21507. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21508. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21509. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21510. msm_routing_put_int0_mi2s_switch_mixer);
  21511. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21512. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21513. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21514. msm_routing_put_int4_mi2s_switch_mixer);
  21515. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21516. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21517. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21518. msm_routing_put_pri_mi2s_switch_mixer);
  21519. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21520. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21521. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21522. msm_routing_put_sec_mi2s_switch_mixer);
  21523. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21524. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21525. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21526. msm_routing_put_tert_mi2s_switch_mixer);
  21527. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21528. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21529. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21530. msm_routing_put_quat_mi2s_switch_mixer);
  21531. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21532. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21533. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21534. msm_routing_put_quin_mi2s_switch_mixer);
  21535. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21536. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21537. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21538. msm_routing_put_sen_mi2s_switch_mixer);
  21539. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21540. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21541. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21542. msm_routing_put_hfp_switch_mixer);
  21543. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21544. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21545. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21546. msm_routing_put_hfp_switch_mixer);
  21547. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21548. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21549. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21550. msm_routing_put_hfp_switch_mixer);
  21551. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21552. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21553. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21554. msm_routing_put_hfp_switch_mixer);
  21555. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21556. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21557. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21558. msm_routing_put_usb_switch_mixer);
  21559. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21560. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21561. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21562. msm_routing_a2dp_switch_mixer_put);
  21563. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21564. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21565. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21566. msm_routing_sco_switch_mixer_put);
  21567. static const struct soc_enum lsm_port_enum =
  21568. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21569. static const char * const lsm_func_text[] = {
  21570. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21571. };
  21572. static const struct soc_enum lsm_func_enum =
  21573. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21574. static const struct snd_kcontrol_new lsm_controls[] = {
  21575. /* kcontrol of lsm_function */
  21576. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21577. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21578. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21579. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21580. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21581. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21582. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21583. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21584. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21585. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21586. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21587. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21588. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21589. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21590. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21591. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21592. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21593. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21594. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21595. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21596. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21597. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21598. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21599. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21600. /* kcontrol of lsm_port */
  21601. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21602. msm_routing_lsm_port_get,
  21603. msm_routing_lsm_port_put),
  21604. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21605. msm_routing_lsm_port_get,
  21606. msm_routing_lsm_port_put),
  21607. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21608. msm_routing_lsm_port_get,
  21609. msm_routing_lsm_port_put),
  21610. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21611. msm_routing_lsm_port_get,
  21612. msm_routing_lsm_port_put),
  21613. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21614. msm_routing_lsm_port_get,
  21615. msm_routing_lsm_port_put),
  21616. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21617. msm_routing_lsm_port_get,
  21618. msm_routing_lsm_port_put),
  21619. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21620. msm_routing_lsm_port_get,
  21621. msm_routing_lsm_port_put),
  21622. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21623. msm_routing_lsm_port_get,
  21624. msm_routing_lsm_port_put),
  21625. };
  21626. static const char * const aanc_slim_0_rx_text[] = {
  21627. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21628. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21629. };
  21630. static const struct soc_enum aanc_slim_0_rx_enum =
  21631. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21632. aanc_slim_0_rx_text);
  21633. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21634. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21635. msm_routing_slim_0_rx_aanc_mux_get,
  21636. msm_routing_slim_0_rx_aanc_mux_put)
  21637. };
  21638. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21639. struct snd_ctl_elem_value *ucontrol)
  21640. {
  21641. ucontrol->value.integer.value[0] = aanc_level;
  21642. return 0;
  21643. }
  21644. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21645. struct snd_ctl_elem_value *ucontrol)
  21646. {
  21647. int ret = 0;
  21648. mutex_lock(&routing_lock);
  21649. aanc_level = ucontrol->value.integer.value[0];
  21650. pr_debug("%s: value: %ld\n",
  21651. __func__, ucontrol->value.integer.value[0]);
  21652. ret = afe_set_aanc_noise_level(aanc_level);
  21653. mutex_unlock(&routing_lock);
  21654. return ret;
  21655. }
  21656. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21657. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21658. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21659. };
  21660. static int msm_routing_get_stereo_to_custom_stereo_control(
  21661. struct snd_kcontrol *kcontrol,
  21662. struct snd_ctl_elem_value *ucontrol)
  21663. {
  21664. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21665. return 0;
  21666. }
  21667. static int msm_routing_put_stereo_to_custom_stereo_control(
  21668. struct snd_kcontrol *kcontrol,
  21669. struct snd_ctl_elem_value *ucontrol)
  21670. {
  21671. int flag = 0, i = 0, rc = 0, idx = 0;
  21672. int be_index = 0, port_id, topo_id;
  21673. unsigned int session_id = 0;
  21674. uint16_t op_FL_ip_FL_weight = 0;
  21675. uint16_t op_FL_ip_FR_weight = 0;
  21676. uint16_t op_FR_ip_FL_weight = 0;
  21677. uint16_t op_FR_ip_FR_weight = 0;
  21678. flag = ucontrol->value.integer.value[0];
  21679. pr_debug("%s E flag %d\n", __func__, flag);
  21680. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21681. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21682. __func__, is_custom_stereo_on, flag);
  21683. return 0;
  21684. }
  21685. is_custom_stereo_on = flag ? true : false;
  21686. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21687. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21688. port_id = msm_bedais[be_index].port_id;
  21689. if (!msm_bedais[be_index].active)
  21690. continue;
  21691. if ((port_id != SLIMBUS_0_RX) &&
  21692. (port_id != RT_PROXY_PORT_001_RX) &&
  21693. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21694. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21695. continue;
  21696. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21697. MSM_FRONTEND_DAI_MM_SIZE) {
  21698. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21699. LEGACY_PCM_MODE)
  21700. goto skip_send_custom_stereo;
  21701. session_id =
  21702. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21703. if (is_custom_stereo_on) {
  21704. op_FL_ip_FL_weight =
  21705. Q14_GAIN_ZERO_POINT_FIVE;
  21706. op_FL_ip_FR_weight =
  21707. Q14_GAIN_ZERO_POINT_FIVE;
  21708. op_FR_ip_FL_weight =
  21709. Q14_GAIN_ZERO_POINT_FIVE;
  21710. op_FR_ip_FR_weight =
  21711. Q14_GAIN_ZERO_POINT_FIVE;
  21712. } else {
  21713. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21714. op_FL_ip_FR_weight = 0;
  21715. op_FR_ip_FL_weight = 0;
  21716. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21717. }
  21718. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21719. unsigned long copp =
  21720. session_copp_map[i]
  21721. [SESSION_TYPE_RX][be_index];
  21722. if (!test_bit(idx, &copp))
  21723. goto skip_send_custom_stereo;
  21724. topo_id = adm_get_topology_for_port_copp_idx(
  21725. msm_bedais[be_index].port_id, idx);
  21726. if (topo_id < 0)
  21727. pr_debug("%s:Err:custom stereo topo %d",
  21728. __func__, topo_id);
  21729. pr_debug("idx %d\n", idx);
  21730. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21731. rc = msm_ds2_dap_set_custom_stereo_onoff
  21732. (msm_bedais[be_index].port_id,
  21733. idx, is_custom_stereo_on);
  21734. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21735. rc = dolby_dap_set_custom_stereo_onoff(
  21736. msm_bedais[be_index].port_id,
  21737. idx, is_custom_stereo_on);
  21738. else
  21739. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21740. (msm_bedais[be_index].port_id,
  21741. idx, session_id,
  21742. op_FL_ip_FL_weight,
  21743. op_FL_ip_FR_weight,
  21744. op_FR_ip_FL_weight,
  21745. op_FR_ip_FR_weight);
  21746. if (rc < 0)
  21747. skip_send_custom_stereo:
  21748. pr_err("%s: err setting custom stereo\n",
  21749. __func__);
  21750. }
  21751. }
  21752. }
  21753. return 0;
  21754. }
  21755. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21756. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21757. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21758. msm_routing_put_stereo_to_custom_stereo_control),
  21759. };
  21760. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21761. struct snd_ctl_elem_value *ucontrol)
  21762. {
  21763. return 0;
  21764. }
  21765. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21766. struct snd_ctl_elem_value *ucontrol)
  21767. {
  21768. int i = 0, j;
  21769. int num_app_types = ucontrol->value.integer.value[i++];
  21770. pr_debug("%s\n", __func__);
  21771. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21772. sizeof(struct msm_pcm_routing_app_type_data));
  21773. if (num_app_types > MAX_APP_TYPES) {
  21774. pr_err("%s: number of app types exceed the max supported\n",
  21775. __func__);
  21776. return -EINVAL;
  21777. }
  21778. for (j = 0; j < num_app_types; j++) {
  21779. app_type_cfg[j].app_type =
  21780. ucontrol->value.integer.value[i++];
  21781. app_type_cfg[j].sample_rate =
  21782. ucontrol->value.integer.value[i++];
  21783. app_type_cfg[j].bit_width =
  21784. ucontrol->value.integer.value[i++];
  21785. }
  21786. return 0;
  21787. }
  21788. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21789. struct snd_ctl_elem_value *ucontrol)
  21790. {
  21791. int j, fe_id, be_id, port_type;
  21792. int ret = 0;
  21793. unsigned long copp;
  21794. struct msm_pcm_routing_bdai_data *bedai;
  21795. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21796. SESSION_TYPE_RX;
  21797. int app_type = ucontrol->value.integer.value[1];
  21798. int gain = (ucontrol->value.integer.value[2] +
  21799. ucontrol->value.integer.value[3])/2;
  21800. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21801. MSM_AFE_PORT_TYPE_TX;
  21802. mutex_lock(&routing_lock);
  21803. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21804. if (is_be_dai_extproc(be_id))
  21805. continue;
  21806. bedai = &msm_bedais[be_id];
  21807. if (afe_get_port_type(bedai->port_id) != port_type)
  21808. continue;
  21809. if (!bedai->active)
  21810. continue;
  21811. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21812. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21813. continue;
  21814. if (app_type !=
  21815. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21816. continue;
  21817. copp = session_copp_map[fe_id][dir][be_id];
  21818. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21819. if (!test_bit(j, &copp))
  21820. continue;
  21821. ret |= adm_set_volume(bedai->port_id, j, gain);
  21822. }
  21823. }
  21824. }
  21825. mutex_unlock(&routing_lock);
  21826. return ret ? -EINVAL : 0;
  21827. }
  21828. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21829. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21830. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21831. msm_routing_put_app_type_cfg_control),
  21832. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21833. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21834. };
  21835. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21836. struct snd_ctl_elem_value *ucontrol)
  21837. {
  21838. int copp_idx, fe_id, be_id, port_type;
  21839. int ret = 0;
  21840. unsigned long copp;
  21841. struct msm_pcm_routing_bdai_data *bedai;
  21842. u8 *packed_params = NULL;
  21843. struct param_hdr_v3 param_hdr;
  21844. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21845. sizeof(uint32_t));
  21846. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21847. SESSION_TYPE_RX;
  21848. int app_type = ucontrol->value.integer.value[1];
  21849. int module_id = ucontrol->value.integer.value[2];
  21850. int instance_id = ucontrol->value.integer.value[3];
  21851. int param_id = ucontrol->value.integer.value[4];
  21852. int param_value = ucontrol->value.integer.value[5];
  21853. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21854. MSM_AFE_PORT_TYPE_TX;
  21855. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21856. __func__, app_type, module_id,
  21857. instance_id, param_id, param_value);
  21858. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21859. if (!packed_params)
  21860. return -ENOMEM;
  21861. memset(&param_hdr, 0, sizeof(param_hdr));
  21862. param_hdr.module_id = module_id;
  21863. param_hdr.instance_id = instance_id;
  21864. param_hdr.param_id = param_id;
  21865. param_hdr.param_size = sizeof(uint32_t);
  21866. packed_param_size = 0;
  21867. mutex_lock(&routing_lock);
  21868. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21869. if (is_be_dai_extproc(be_id))
  21870. continue;
  21871. bedai = &msm_bedais[be_id];
  21872. if (afe_get_port_type(bedai->port_id) != port_type)
  21873. continue;
  21874. if (!bedai->active)
  21875. continue;
  21876. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21877. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21878. continue;
  21879. if (app_type !=
  21880. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21881. continue;
  21882. copp = session_copp_map[fe_id][dir][be_id];
  21883. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21884. copp_idx++) {
  21885. if (!test_bit(copp_idx, &copp))
  21886. continue;
  21887. ret = q6common_pack_pp_params(packed_params,
  21888. &param_hdr,
  21889. (u8 *) &param_value,
  21890. &packed_param_size);
  21891. if (ret) {
  21892. pr_err("%s: Failed to pack params, error %d\n",
  21893. __func__, ret);
  21894. goto done;
  21895. }
  21896. ret = adm_set_pp_params(bedai->port_id,
  21897. copp_idx, NULL,
  21898. packed_params,
  21899. packed_param_size);
  21900. if (ret) {
  21901. pr_err("%s: Setting param failed with err=%d\n",
  21902. __func__, ret);
  21903. ret = -EINVAL;
  21904. goto done;
  21905. }
  21906. }
  21907. }
  21908. }
  21909. done:
  21910. mutex_unlock(&routing_lock);
  21911. kfree(packed_params);
  21912. return ret;
  21913. }
  21914. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21915. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21916. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21917. };
  21918. static int msm_routing_get_lsm_app_type_cfg_control(
  21919. struct snd_kcontrol *kcontrol,
  21920. struct snd_ctl_elem_value *ucontrol)
  21921. {
  21922. int shift = ((struct soc_multi_mixer_control *)
  21923. kcontrol->private_value)->shift;
  21924. int i = 0, j = 0;
  21925. mutex_lock(&routing_lock);
  21926. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21927. for (j = 0; j < num_app_cfg_types; ++j) {
  21928. ucontrol->value.integer.value[++i] =
  21929. lsm_app_type_cfg[j].app_type;
  21930. ucontrol->value.integer.value[++i] =
  21931. lsm_app_type_cfg[j].sample_rate;
  21932. ucontrol->value.integer.value[++i] =
  21933. lsm_app_type_cfg[j].bit_width;
  21934. if (shift == 1)
  21935. ucontrol->value.integer.value[++i] =
  21936. lsm_app_type_cfg[j].num_out_channels;
  21937. }
  21938. mutex_unlock(&routing_lock);
  21939. return 0;
  21940. }
  21941. static int msm_routing_put_lsm_app_type_cfg_control(
  21942. struct snd_kcontrol *kcontrol,
  21943. struct snd_ctl_elem_value *ucontrol)
  21944. {
  21945. int shift = ((struct soc_multi_mixer_control *)
  21946. kcontrol->private_value)->shift;
  21947. int i = 0, j;
  21948. mutex_lock(&routing_lock);
  21949. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21950. pr_err("%s: number of app types exceed the max supported\n",
  21951. __func__);
  21952. mutex_unlock(&routing_lock);
  21953. return -EINVAL;
  21954. }
  21955. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21956. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21957. sizeof(struct msm_pcm_routing_app_type_data));
  21958. for (j = 0; j < num_app_cfg_types; j++) {
  21959. lsm_app_type_cfg[j].app_type =
  21960. ucontrol->value.integer.value[i++];
  21961. lsm_app_type_cfg[j].sample_rate =
  21962. ucontrol->value.integer.value[i++];
  21963. lsm_app_type_cfg[j].bit_width =
  21964. ucontrol->value.integer.value[i++];
  21965. /* Shift of 1 indicates this is V2 mixer control */
  21966. if (shift == 1)
  21967. lsm_app_type_cfg[j].num_out_channels =
  21968. ucontrol->value.integer.value[i++];
  21969. }
  21970. mutex_unlock(&routing_lock);
  21971. return 0;
  21972. }
  21973. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21974. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21975. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21976. msm_routing_put_lsm_app_type_cfg_control),
  21977. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21978. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21979. msm_routing_put_lsm_app_type_cfg_control),
  21980. };
  21981. static int msm_routing_get_use_ds1_or_ds2_control(
  21982. struct snd_kcontrol *kcontrol,
  21983. struct snd_ctl_elem_value *ucontrol)
  21984. {
  21985. ucontrol->value.integer.value[0] = is_ds2_on;
  21986. return 0;
  21987. }
  21988. static int msm_routing_put_use_ds1_or_ds2_control(
  21989. struct snd_kcontrol *kcontrol,
  21990. struct snd_ctl_elem_value *ucontrol)
  21991. {
  21992. is_ds2_on = ucontrol->value.integer.value[0];
  21993. return 0;
  21994. }
  21995. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21996. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21997. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21998. msm_routing_put_use_ds1_or_ds2_control),
  21999. };
  22000. static int msm_routing_get_hifi_filter_control(
  22001. struct snd_kcontrol *kcontrol,
  22002. struct snd_ctl_elem_value *ucontrol)
  22003. {
  22004. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22005. return 0;
  22006. }
  22007. static int msm_routing_put_hifi_filter_control(
  22008. struct snd_kcontrol *kcontrol,
  22009. struct snd_ctl_elem_value *ucontrol)
  22010. {
  22011. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22012. return 0;
  22013. }
  22014. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22015. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22016. 1, 0, msm_routing_get_hifi_filter_control,
  22017. msm_routing_put_hifi_filter_control),
  22018. };
  22019. static int msm_routing_get_ffecns_freeze_event_control(
  22020. struct snd_kcontrol *kcontrol,
  22021. struct snd_ctl_elem_value *ucontrol)
  22022. {
  22023. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22024. return 0;
  22025. }
  22026. static int msm_routing_put_ffecns_freeze_event_control(
  22027. struct snd_kcontrol *kcontrol,
  22028. struct snd_ctl_elem_value *ucontrol)
  22029. {
  22030. int ret = -EINVAL;
  22031. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22032. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22033. if (ret)
  22034. pr_err("%s: failed to set ffecns imc event to%d\n",
  22035. __func__, ffecns_freeze_event);
  22036. return ret;
  22037. }
  22038. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22039. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22040. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22041. msm_routing_put_ffecns_freeze_event_control),
  22042. };
  22043. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22044. struct snd_ctl_elem_value *ucontrol) {
  22045. int rc = 0;
  22046. int be_idx = 0;
  22047. char *param_value;
  22048. int *update_param_value;
  22049. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22050. struct param_hdr_v3 param_hdr;
  22051. param_value = kzalloc(param_size, GFP_KERNEL);
  22052. if (!param_value)
  22053. return -ENOMEM;
  22054. memset(&param_hdr, 0, sizeof(param_hdr));
  22055. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22056. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22057. break;
  22058. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22059. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22060. param_hdr.instance_id = INSTANCE_ID_0;
  22061. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22062. param_hdr.param_size = param_size;
  22063. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22064. NULL, &param_hdr, (u8 *) param_value);
  22065. if (rc) {
  22066. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22067. kfree(param_value);
  22068. return -EINVAL;
  22069. }
  22070. update_param_value = (int *)param_value;
  22071. ucontrol->value.integer.value[0] = update_param_value[0];
  22072. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22073. __func__, update_param_value[0]);
  22074. }
  22075. kfree(param_value);
  22076. return 0;
  22077. }
  22078. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22079. struct snd_ctl_elem_value *ucontrol)
  22080. {
  22081. voc_session_id = ucontrol->value.integer.value[0];
  22082. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22083. return 0;
  22084. }
  22085. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22086. struct snd_ctl_elem_value *ucontrol)
  22087. {
  22088. ucontrol->value.integer.value[0] = voc_session_id;
  22089. return 0;
  22090. }
  22091. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22092. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22093. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22094. msm_voc_session_id_put),
  22095. };
  22096. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22097. struct snd_ctl_elem_info *uinfo)
  22098. {
  22099. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22100. uinfo->count = sizeof(struct sound_focus_param);
  22101. return 0;
  22102. }
  22103. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22104. struct snd_ctl_elem_value *ucontrol)
  22105. {
  22106. int ret = 0;
  22107. struct sound_focus_param soundFocusData;
  22108. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22109. sizeof(struct sound_focus_param));
  22110. ret = voc_set_sound_focus(soundFocusData);
  22111. if (ret) {
  22112. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22113. __func__, ret);
  22114. ret = -EINVAL;
  22115. }
  22116. return ret;
  22117. }
  22118. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22119. struct snd_ctl_elem_value *ucontrol)
  22120. {
  22121. int ret = 0;
  22122. struct sound_focus_param soundFocusData;
  22123. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22124. ret = voc_get_sound_focus(&soundFocusData);
  22125. if (ret) {
  22126. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22127. __func__, ret);
  22128. ret = -EINVAL;
  22129. goto done;
  22130. }
  22131. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22132. sizeof(struct sound_focus_param));
  22133. done:
  22134. return ret;
  22135. }
  22136. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22137. struct snd_ctl_elem_info *uinfo)
  22138. {
  22139. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22140. uinfo->count = sizeof(struct source_tracking_param);
  22141. return 0;
  22142. }
  22143. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22144. struct snd_ctl_elem_value *ucontrol)
  22145. {
  22146. int ret = 0;
  22147. struct source_tracking_param sourceTrackingData;
  22148. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22149. ret = voc_get_source_tracking(&sourceTrackingData);
  22150. if (ret) {
  22151. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22152. __func__, ret);
  22153. ret = -EINVAL;
  22154. goto done;
  22155. }
  22156. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22157. sizeof(struct source_tracking_param));
  22158. done:
  22159. return ret;
  22160. }
  22161. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22162. int *copp_idx)
  22163. {
  22164. int i, idx, be_idx;
  22165. int ret = 0;
  22166. unsigned long copp;
  22167. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22168. ret = q6audio_validate_port(port_id);
  22169. if (ret < 0) {
  22170. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22171. __func__, port_id, ret);
  22172. ret = -EINVAL;
  22173. goto done;
  22174. }
  22175. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22176. if (msm_bedais[be_idx].port_id == port_id)
  22177. break;
  22178. }
  22179. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22180. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22181. ret = -EINVAL;
  22182. goto done;
  22183. }
  22184. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22185. MSM_FRONTEND_DAI_MAX) {
  22186. if (!(is_mm_lsm_fe_id(i) &&
  22187. route_check_fe_id_adm_support(i)))
  22188. continue;
  22189. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22190. copp = session_copp_map[i]
  22191. [session_type][be_idx];
  22192. if (test_bit(idx, &copp))
  22193. break;
  22194. }
  22195. if (idx >= MAX_COPPS_PER_PORT)
  22196. continue;
  22197. else
  22198. break;
  22199. }
  22200. if (i >= MSM_FRONTEND_DAI_MAX) {
  22201. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22202. ret = -EINVAL;
  22203. goto done;
  22204. }
  22205. *copp_idx = idx;
  22206. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22207. done:
  22208. return ret;
  22209. }
  22210. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22211. const char *prefix, int *port_id)
  22212. {
  22213. int ret = 0;
  22214. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22215. /*
  22216. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22217. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22218. * and compare the string with the backend name to derive the port id.
  22219. */
  22220. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22221. "SLIMBUS_0")) {
  22222. *port_id = SLIMBUS_0_TX;
  22223. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22224. "TERT_MI2S")) {
  22225. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22226. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22227. "INT3_MI2S")) {
  22228. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22229. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22230. "VA_CDC_DMA_TX_0")) {
  22231. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22232. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22233. "TX_CDC_DMA_TX_3")) {
  22234. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22235. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22236. "QUIN_TDM_TX_0")) {
  22237. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22238. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22239. "PRIMARY_TDM")) {
  22240. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22241. } else {
  22242. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22243. __func__, kcontrol->id.name);
  22244. ret = -EINVAL;
  22245. goto done;
  22246. }
  22247. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22248. __func__, kcontrol->id.name, *port_id);
  22249. done:
  22250. return ret;
  22251. }
  22252. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22253. struct snd_ctl_elem_value *ucontrol)
  22254. {
  22255. int ret = 0;
  22256. struct sound_focus_param soundFocusData;
  22257. int port_id, copp_idx;
  22258. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22259. "Sound Focus Audio Tx ", &port_id);
  22260. if (ret != 0) {
  22261. pr_err("%s: Error in deriving port id, err=%d\n",
  22262. __func__, ret);
  22263. ret = -EINVAL;
  22264. goto done;
  22265. }
  22266. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22267. &copp_idx);
  22268. if (ret) {
  22269. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22270. __func__, port_id);
  22271. ret = -EINVAL;
  22272. goto done;
  22273. }
  22274. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22275. sizeof(struct sound_focus_param));
  22276. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22277. if (ret) {
  22278. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22279. __func__, ret);
  22280. ret = -EINVAL;
  22281. goto done;
  22282. }
  22283. done:
  22284. return ret;
  22285. }
  22286. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22287. struct snd_ctl_elem_value *ucontrol)
  22288. {
  22289. int ret = 0;
  22290. struct sound_focus_param soundFocusData;
  22291. int port_id, copp_idx;
  22292. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22293. "Sound Focus Audio Tx ", &port_id);
  22294. if (ret) {
  22295. pr_err("%s: Error in deriving port id, err=%d\n",
  22296. __func__, ret);
  22297. ret = -EINVAL;
  22298. goto done;
  22299. }
  22300. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22301. &copp_idx);
  22302. if (ret) {
  22303. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22304. __func__, port_id);
  22305. ret = -EINVAL;
  22306. goto done;
  22307. }
  22308. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22309. if (ret) {
  22310. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22311. __func__, ret);
  22312. ret = -EINVAL;
  22313. goto done;
  22314. }
  22315. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22316. sizeof(struct sound_focus_param));
  22317. done:
  22318. return ret;
  22319. }
  22320. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22321. struct snd_ctl_elem_value *ucontrol)
  22322. {
  22323. int ret = 0;
  22324. struct source_tracking_param sourceTrackingData;
  22325. int port_id, copp_idx;
  22326. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22327. "Source Tracking Audio Tx ", &port_id);
  22328. if (ret) {
  22329. pr_err("%s: Error in deriving port id, err=%d\n",
  22330. __func__, ret);
  22331. ret = -EINVAL;
  22332. goto done;
  22333. }
  22334. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22335. &copp_idx);
  22336. if (ret) {
  22337. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22338. __func__, port_id);
  22339. ret = -EINVAL;
  22340. goto done;
  22341. }
  22342. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22343. if (ret) {
  22344. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22345. __func__, ret);
  22346. ret = -EINVAL;
  22347. goto done;
  22348. }
  22349. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22350. sizeof(struct source_tracking_param));
  22351. done:
  22352. return ret;
  22353. }
  22354. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22355. struct snd_ctl_elem_info *uinfo)
  22356. {
  22357. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22358. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22359. return 0;
  22360. }
  22361. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22362. struct snd_ctl_elem_value *ucontrol)
  22363. {
  22364. int ret = 0;
  22365. struct doa_tracking_mon_param doa_tracking_data;
  22366. int port_id, copp_idx;
  22367. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22368. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22369. "Doa Tracking Monitor Listen ", &port_id);
  22370. if (ret) {
  22371. pr_err("%s: Error in deriving port id, err=%d\n",
  22372. __func__, ret);
  22373. ret = -EINVAL;
  22374. goto done;
  22375. }
  22376. /*
  22377. * If copp id exists for given port id, query adm to get doa data.
  22378. * Else query afe for doa tracking params.
  22379. * This is to support in cases where LSM directly connects to
  22380. * AFE for FFNS.
  22381. */
  22382. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22383. &copp_idx);
  22384. if (!ret)
  22385. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22386. &doa_tracking_data);
  22387. else
  22388. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22389. if (ret) {
  22390. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22391. __func__, ret);
  22392. ret = -EINVAL;
  22393. goto done;
  22394. }
  22395. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22396. sizeof(struct doa_tracking_mon_param));
  22397. done:
  22398. return ret;
  22399. }
  22400. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22401. {
  22402. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22403. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22404. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22405. .info = msm_sound_focus_info,
  22406. .get = msm_voice_sound_focus_get,
  22407. .put = msm_voice_sound_focus_put,
  22408. },
  22409. {
  22410. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22411. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22412. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22413. .info = msm_source_tracking_info,
  22414. .get = msm_voice_source_tracking_get,
  22415. },
  22416. {
  22417. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22418. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22419. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22420. .info = msm_sound_focus_info,
  22421. .get = msm_audio_sound_focus_get,
  22422. .put = msm_audio_sound_focus_put,
  22423. },
  22424. {
  22425. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22426. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22427. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22428. .info = msm_source_tracking_info,
  22429. .get = msm_audio_source_tracking_get,
  22430. },
  22431. {
  22432. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22433. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22434. .name = "Sound Focus Voice Tx TERT_MI2S",
  22435. .info = msm_sound_focus_info,
  22436. .get = msm_voice_sound_focus_get,
  22437. .put = msm_voice_sound_focus_put,
  22438. },
  22439. {
  22440. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22441. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22442. .name = "Source Tracking Voice Tx TERT_MI2S",
  22443. .info = msm_source_tracking_info,
  22444. .get = msm_voice_source_tracking_get,
  22445. },
  22446. {
  22447. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22448. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22449. .name = "Sound Focus Audio Tx TERT_MI2S",
  22450. .info = msm_sound_focus_info,
  22451. .get = msm_audio_sound_focus_get,
  22452. .put = msm_audio_sound_focus_put,
  22453. },
  22454. {
  22455. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22456. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22457. .name = "Source Tracking Audio Tx TERT_MI2S",
  22458. .info = msm_source_tracking_info,
  22459. .get = msm_audio_source_tracking_get,
  22460. },
  22461. {
  22462. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22463. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22464. .name = "Sound Focus Voice Tx INT3_MI2S",
  22465. .info = msm_sound_focus_info,
  22466. .get = msm_voice_sound_focus_get,
  22467. .put = msm_voice_sound_focus_put,
  22468. },
  22469. {
  22470. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22471. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22472. .name = "Source Tracking Voice Tx INT3_MI2S",
  22473. .info = msm_source_tracking_info,
  22474. .get = msm_voice_source_tracking_get,
  22475. },
  22476. {
  22477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22478. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22479. .name = "Sound Focus Audio Tx INT3_MI2S",
  22480. .info = msm_sound_focus_info,
  22481. .get = msm_audio_sound_focus_get,
  22482. .put = msm_audio_sound_focus_put,
  22483. },
  22484. {
  22485. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22486. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22487. .name = "Source Tracking Audio Tx INT3_MI2S",
  22488. .info = msm_source_tracking_info,
  22489. .get = msm_audio_source_tracking_get,
  22490. },
  22491. {
  22492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22494. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22495. .info = msm_sound_focus_info,
  22496. .get = msm_voice_sound_focus_get,
  22497. .put = msm_voice_sound_focus_put,
  22498. },
  22499. {
  22500. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22501. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22502. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22503. .info = msm_source_tracking_info,
  22504. .get = msm_voice_source_tracking_get,
  22505. },
  22506. {
  22507. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22508. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22509. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22510. .info = msm_sound_focus_info,
  22511. .get = msm_audio_sound_focus_get,
  22512. .put = msm_audio_sound_focus_put,
  22513. },
  22514. {
  22515. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22516. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22517. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22518. .info = msm_source_tracking_info,
  22519. .get = msm_audio_source_tracking_get,
  22520. },
  22521. {
  22522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22524. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22525. .info = msm_sound_focus_info,
  22526. .get = msm_voice_sound_focus_get,
  22527. .put = msm_voice_sound_focus_put,
  22528. },
  22529. {
  22530. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22532. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22533. .info = msm_source_tracking_info,
  22534. .get = msm_voice_source_tracking_get,
  22535. },
  22536. {
  22537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22539. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22540. .info = msm_sound_focus_info,
  22541. .get = msm_audio_sound_focus_get,
  22542. .put = msm_audio_sound_focus_put,
  22543. },
  22544. {
  22545. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22546. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22547. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22548. .info = msm_source_tracking_info,
  22549. .get = msm_audio_source_tracking_get,
  22550. },
  22551. {
  22552. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22553. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22554. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22555. .info = msm_sound_focus_info,
  22556. .get = msm_voice_sound_focus_get,
  22557. .put = msm_voice_sound_focus_put,
  22558. },
  22559. {
  22560. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22561. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22562. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22563. .info = msm_source_tracking_info,
  22564. .get = msm_voice_source_tracking_get,
  22565. },
  22566. {
  22567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22568. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22569. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22570. .info = msm_sound_focus_info,
  22571. .get = msm_audio_sound_focus_get,
  22572. .put = msm_audio_sound_focus_put,
  22573. },
  22574. {
  22575. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22577. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22578. .info = msm_source_tracking_info,
  22579. .get = msm_audio_source_tracking_get,
  22580. },
  22581. {
  22582. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22583. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22584. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22585. .info = msm_sound_focus_info,
  22586. .get = msm_audio_sound_focus_get,
  22587. .put = msm_audio_sound_focus_put,
  22588. },
  22589. {
  22590. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22591. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22592. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22593. .info = msm_source_tracking_info,
  22594. .get = msm_audio_source_tracking_get,
  22595. },
  22596. };
  22597. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22598. {
  22599. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22600. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22601. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22602. .info = msm_doa_tracking_mon_info,
  22603. .get = msm_doa_tracking_mon_get,
  22604. },
  22605. };
  22606. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22607. struct snd_ctl_elem_value *ucontrol)
  22608. {
  22609. int ret = 0;
  22610. int item;
  22611. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22612. pr_debug("%s item is %d\n", __func__,
  22613. ucontrol->value.enumerated.item[0]);
  22614. mutex_lock(&routing_lock);
  22615. item = ucontrol->value.enumerated.item[0];
  22616. if (item < e->items) {
  22617. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22618. __func__, e->shift_l, e->values[item]);
  22619. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22620. e->values[item] < MSM_BACKEND_DAI_MAX)
  22621. /* Enable feedback TX path */
  22622. ret = afe_spk_prot_feed_back_cfg(
  22623. msm_bedais[e->values[item]].port_id,
  22624. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22625. else {
  22626. pr_debug("%s values are out of range item %d\n",
  22627. __func__, e->values[item]);
  22628. /* Disable feedback TX path */
  22629. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22630. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22631. else
  22632. ret = -EINVAL;
  22633. }
  22634. } else {
  22635. pr_err("%s item value is out of range item\n", __func__);
  22636. ret = -EINVAL;
  22637. }
  22638. mutex_unlock(&routing_lock);
  22639. return ret;
  22640. }
  22641. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22642. struct snd_ctl_elem_value *ucontrol)
  22643. {
  22644. int ret = 0;
  22645. int item;
  22646. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22647. pr_debug("%s item is %d\n", __func__,
  22648. ucontrol->value.enumerated.item[0]);
  22649. mutex_lock(&routing_lock);
  22650. item = ucontrol->value.enumerated.item[0];
  22651. if (item < e->items) {
  22652. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22653. __func__, e->shift_l, e->values[item]);
  22654. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22655. e->values[item] < MSM_BACKEND_DAI_MAX)
  22656. /* Enable feedback TX path */
  22657. ret = afe_spk_prot_feed_back_cfg(
  22658. msm_bedais[e->values[item]].port_id,
  22659. msm_bedais[e->shift_l].port_id,
  22660. 1, 1, 1);
  22661. else {
  22662. pr_debug("%s values are out of range item %d\n",
  22663. __func__, e->values[item]);
  22664. /* Disable feedback TX path */
  22665. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22666. ret = afe_spk_prot_feed_back_cfg(0,
  22667. 0, 0, 0, 0);
  22668. else
  22669. ret = -EINVAL;
  22670. }
  22671. } else {
  22672. pr_err("%s item value is out of range item\n", __func__);
  22673. ret = -EINVAL;
  22674. }
  22675. mutex_unlock(&routing_lock);
  22676. return ret;
  22677. }
  22678. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22679. struct snd_ctl_elem_value *ucontrol)
  22680. {
  22681. pr_debug("%s\n", __func__);
  22682. return 0;
  22683. }
  22684. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22685. struct snd_ctl_elem_value *ucontrol)
  22686. {
  22687. pr_debug("%s\n", __func__);
  22688. ucontrol->value.enumerated.item[0] = 0;
  22689. return 0;
  22690. }
  22691. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22692. "ZERO", "SLIM4_TX"
  22693. };
  22694. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22695. "ZERO", "SLIM4_TX"
  22696. };
  22697. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22698. "ZERO", "WSA_CDC_DMA_TX_0"
  22699. };
  22700. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22701. "ZERO", "WSA_CDC_DMA_TX_0"
  22702. };
  22703. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22704. "ZERO", "SENARY_TX"
  22705. };
  22706. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22707. "ZERO", "INT5_MI2S_TX"
  22708. };
  22709. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22710. "ZERO", "INT5_MI2S_TX"
  22711. };
  22712. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22713. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22714. };
  22715. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22716. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22717. };
  22718. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22719. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22720. };
  22721. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22722. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22723. };
  22724. static const int mi2s_rx_vi_fb_tx_value[] = {
  22725. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22726. };
  22727. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22728. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22729. };
  22730. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22731. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22732. };
  22733. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22734. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22735. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22736. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22737. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22738. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22739. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22740. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22741. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22742. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22743. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22744. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22745. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22746. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22747. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22748. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22749. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22750. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22751. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22752. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22753. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22754. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22755. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22756. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22757. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22758. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22759. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22760. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22761. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22762. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22763. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22764. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22765. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22766. spkr_prot_put_vi_lch_port);
  22767. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22768. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22769. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22770. spkr_prot_put_vi_rch_port);
  22771. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22772. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22773. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22774. spkr_prot_put_vi_lch_port);
  22775. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22776. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22777. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22778. spkr_prot_put_vi_rch_port);
  22779. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22780. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22781. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22782. spkr_prot_put_vi_lch_port);
  22783. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22784. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22785. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22786. spkr_prot_put_vi_lch_port);
  22787. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22788. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22789. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22790. spkr_prot_put_vi_rch_port);
  22791. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22792. /* Frontend AIF */
  22793. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22794. * Stream name must contains substring of front-end dai name
  22795. */
  22796. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22797. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22798. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22799. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22800. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22801. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22802. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22803. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22804. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22805. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22806. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22807. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22808. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22809. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22810. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22811. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22812. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22813. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22814. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22816. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  22818. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  22820. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22822. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22824. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22826. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22828. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22830. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22832. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22834. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22835. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22836. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22838. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  22840. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22842. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22844. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22846. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22847. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22848. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22849. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22850. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22851. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22852. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22853. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22854. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22855. 0, 0, 0, 0),
  22856. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22857. 0, 0, 0, 0),
  22858. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22859. 0, 0, 0, 0),
  22860. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22861. 0, 0, 0, 0),
  22862. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22863. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22864. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22865. 0, 0, 0, 0),
  22866. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22867. 0, 0, 0, 0),
  22868. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22869. 0, 0, 0, 0),
  22870. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22871. 0, 0, 0, 0),
  22872. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22873. 0, 0, 0, 0),
  22874. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22875. 0, 0, 0, 0),
  22876. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22877. 0, 0, 0, 0),
  22878. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22879. 0, 0, 0, 0),
  22880. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22881. 0, 0, 0, 0),
  22882. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22883. 0, 0, 0, 0),
  22884. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22885. 0, 0, 0, 0),
  22886. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22887. 0, 0, 0, 0),
  22888. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22889. 0, 0, 0, 0),
  22890. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22891. 0, 0, 0, 0),
  22892. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22893. 0, 0, 0, 0),
  22894. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22895. 0, 0, 0, 0),
  22896. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22897. 0, 0, 0, 0),
  22898. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22899. 0, 0, 0, 0),
  22900. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22901. 0, 0, 0, 0),
  22902. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22903. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22904. 0, 0, 0, 0),
  22905. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22906. "INT0 MI2S_RX Hostless Playback",
  22907. 0, 0, 0, 0),
  22908. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22909. "INT4 MI2S_RX Hostless Playback",
  22910. 0, 0, 0, 0),
  22911. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22912. "Primary MI2S_RX Hostless Playback",
  22913. 0, 0, 0, 0),
  22914. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22915. "Secondary MI2S_RX Hostless Playback",
  22916. 0, 0, 0, 0),
  22917. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22918. "Tertiary MI2S_RX Hostless Playback",
  22919. 0, 0, 0, 0),
  22920. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22921. "Quaternary MI2S_RX Hostless Playback",
  22922. 0, 0, 0, 0),
  22923. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22924. "Quinary MI2S_RX Hostless Playback",
  22925. 0, 0, 0, 0),
  22926. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22927. "Senary MI2S_RX Hostless Playback",
  22928. 0, 0, 0, 0),
  22929. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22930. 0, 0, 0, 0),
  22931. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22932. 0, 0, 0, 0),
  22933. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22934. 0, 0, 0, 0),
  22935. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22936. 0, 0, 0, 0),
  22937. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22938. 0, 0, 0, 0),
  22939. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22940. "INT3 MI2S_TX Hostless Capture",
  22941. 0, 0, 0, 0),
  22942. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22943. "Tertiary MI2S_TX Hostless Capture",
  22944. 0, 0, 0, 0),
  22945. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22946. "Secondary MI2S_TX Hostless Capture",
  22947. 0, 0, 0, 0),
  22948. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22949. "Primary MI2S_TX Hostless Capture",
  22950. 0, 0, 0, 0),
  22951. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22952. 0, 0, 0, 0),
  22953. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22954. 0, 0, 0, 0),
  22955. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22956. "Quaternary MI2S_TX Hostless Capture",
  22957. 0, 0, 0, 0),
  22958. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22959. "Quinary MI2S_TX Hostless Capture",
  22960. 0, 0, 0, 0),
  22961. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22962. "Senary MI2S_TX Hostless Capture",
  22963. 0, 0, 0, 0),
  22964. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22965. "Primary TDM0 Hostless Playback",
  22966. 0, 0, 0, 0),
  22967. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22968. "Primary TDM0 Hostless Capture",
  22969. 0, 0, 0, 0),
  22970. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22971. "Primary TDM1 Hostless Playback",
  22972. 0, 0, 0, 0),
  22973. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22974. "Primary TDM1 Hostless Capture",
  22975. 0, 0, 0, 0),
  22976. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22977. "Primary TDM2 Hostless Playback",
  22978. 0, 0, 0, 0),
  22979. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22980. "Primary TDM2 Hostless Capture",
  22981. 0, 0, 0, 0),
  22982. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22983. "Primary TDM3 Hostless Playback",
  22984. 0, 0, 0, 0),
  22985. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22986. "Primary TDM3 Hostless Capture",
  22987. 0, 0, 0, 0),
  22988. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22989. "Primary TDM4 Hostless Playback",
  22990. 0, 0, 0, 0),
  22991. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22992. "Primary TDM4 Hostless Capture",
  22993. 0, 0, 0, 0),
  22994. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22995. "Primary TDM5 Hostless Playback",
  22996. 0, 0, 0, 0),
  22997. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22998. "Primary TDM5 Hostless Capture",
  22999. 0, 0, 0, 0),
  23000. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23001. "Primary TDM6 Hostless Playback",
  23002. 0, 0, 0, 0),
  23003. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23004. "Primary TDM6 Hostless Capture",
  23005. 0, 0, 0, 0),
  23006. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23007. "Primary TDM7 Hostless Playback",
  23008. 0, 0, 0, 0),
  23009. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23010. "Primary TDM7 Hostless Capture",
  23011. 0, 0, 0, 0),
  23012. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23013. "Secondary TDM0 Hostless Playback",
  23014. 0, 0, 0, 0),
  23015. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23016. "Secondary TDM0 Hostless Capture",
  23017. 0, 0, 0, 0),
  23018. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23019. "Secondary TDM1 Hostless Playback",
  23020. 0, 0, 0, 0),
  23021. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23022. "Secondary TDM1 Hostless Capture",
  23023. 0, 0, 0, 0),
  23024. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23025. "Secondary TDM2 Hostless Playback",
  23026. 0, 0, 0, 0),
  23027. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23028. "Secondary TDM2 Hostless Capture",
  23029. 0, 0, 0, 0),
  23030. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23031. "Secondary TDM3 Hostless Playback",
  23032. 0, 0, 0, 0),
  23033. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23034. "Secondary TDM3 Hostless Capture",
  23035. 0, 0, 0, 0),
  23036. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23037. "Secondary TDM4 Hostless Playback",
  23038. 0, 0, 0, 0),
  23039. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23040. "Secondary TDM4 Hostless Capture",
  23041. 0, 0, 0, 0),
  23042. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23043. "Secondary TDM5 Hostless Playback",
  23044. 0, 0, 0, 0),
  23045. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23046. "Secondary TDM5 Hostless Capture",
  23047. 0, 0, 0, 0),
  23048. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23049. "Secondary TDM6 Hostless Playback",
  23050. 0, 0, 0, 0),
  23051. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23052. "Secondary TDM6 Hostless Capture",
  23053. 0, 0, 0, 0),
  23054. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23055. "Secondary TDM7 Hostless Playback",
  23056. 0, 0, 0, 0),
  23057. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23058. "Secondary TDM7 Hostless Capture",
  23059. 0, 0, 0, 0),
  23060. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23061. "Tertiary TDM0 Hostless Playback",
  23062. 0, 0, 0, 0),
  23063. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23064. "Tertiary TDM0 Hostless Capture",
  23065. 0, 0, 0, 0),
  23066. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23067. "Tertiary TDM1 Hostless Playback",
  23068. 0, 0, 0, 0),
  23069. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23070. "Tertiary TDM1 Hostless Capture",
  23071. 0, 0, 0, 0),
  23072. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23073. "Tertiary TDM2 Hostless Playback",
  23074. 0, 0, 0, 0),
  23075. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23076. "Tertiary TDM2 Hostless Capture",
  23077. 0, 0, 0, 0),
  23078. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23079. "Tertiary TDM3 Hostless Playback",
  23080. 0, 0, 0, 0),
  23081. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23082. "Tertiary TDM3 Hostless Capture",
  23083. 0, 0, 0, 0),
  23084. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23085. "Tertiary TDM4 Hostless Playback",
  23086. 0, 0, 0, 0),
  23087. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23088. "Tertiary TDM4 Hostless Capture",
  23089. 0, 0, 0, 0),
  23090. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23091. "Tertiary TDM5 Hostless Playback",
  23092. 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23094. "Tertiary TDM5 Hostless Capture",
  23095. 0, 0, 0, 0),
  23096. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23097. "Tertiary TDM6 Hostless Playback",
  23098. 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23100. "Tertiary TDM6 Hostless Capture",
  23101. 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23103. "Tertiary TDM7 Hostless Playback",
  23104. 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23106. "Tertiary TDM7 Hostless Capture",
  23107. 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23109. "Quaternary TDM0 Hostless Playback",
  23110. 0, 0, 0, 0),
  23111. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23112. "Quaternary TDM0 Hostless Capture",
  23113. 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23115. "Quaternary TDM1 Hostless Playback",
  23116. 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23118. "Quaternary TDM1 Hostless Capture",
  23119. 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23121. "Quaternary TDM2 Hostless Playback",
  23122. 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23124. "Quaternary TDM2 Hostless Capture",
  23125. 0, 0, 0, 0),
  23126. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23127. "Quaternary TDM3 Hostless Playback",
  23128. 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23130. "Quaternary TDM3 Hostless Capture",
  23131. 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23133. "Quaternary TDM4 Hostless Playback",
  23134. 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23136. "Quaternary TDM4 Hostless Capture",
  23137. 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23139. "Quaternary TDM5 Hostless Playback",
  23140. 0, 0, 0, 0),
  23141. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23142. "Quaternary TDM5 Hostless Capture",
  23143. 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23145. "Quaternary TDM6 Hostless Playback",
  23146. 0, 0, 0, 0),
  23147. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23148. "Quaternary TDM6 Hostless Capture",
  23149. 0, 0, 0, 0),
  23150. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23151. "Quaternary TDM7 Hostless Playback",
  23152. 0, 0, 0, 0),
  23153. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23154. "Quaternary TDM7 Hostless Capture",
  23155. 0, 0, 0, 0),
  23156. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23157. "Quinary TDM0 Hostless Playback",
  23158. 0, 0, 0, 0),
  23159. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23160. "Quinary TDM0 Hostless Capture",
  23161. 0, 0, 0, 0),
  23162. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23163. "Quinary TDM1 Hostless Playback",
  23164. 0, 0, 0, 0),
  23165. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23166. "Quinary TDM1 Hostless Capture",
  23167. 0, 0, 0, 0),
  23168. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23169. "Quinary TDM2 Hostless Playback",
  23170. 0, 0, 0, 0),
  23171. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23172. "Quinary TDM2 Hostless Capture",
  23173. 0, 0, 0, 0),
  23174. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23175. "Quinary TDM3 Hostless Playback",
  23176. 0, 0, 0, 0),
  23177. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23178. "Quinary TDM3 Hostless Capture",
  23179. 0, 0, 0, 0),
  23180. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23181. "Quinary TDM4 Hostless Playback",
  23182. 0, 0, 0, 0),
  23183. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23184. "Quinary TDM4 Hostless Capture",
  23185. 0, 0, 0, 0),
  23186. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23187. "Quinary TDM5 Hostless Playback",
  23188. 0, 0, 0, 0),
  23189. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23190. "Quinary TDM5 Hostless Capture",
  23191. 0, 0, 0, 0),
  23192. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23193. "Quinary TDM6 Hostless Playback",
  23194. 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23196. "Quinary TDM6 Hostless Capture",
  23197. 0, 0, 0, 0),
  23198. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23199. "Quinary TDM7 Hostless Playback",
  23200. 0, 0, 0, 0),
  23201. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23202. "Quinary TDM7 Hostless Capture",
  23203. 0, 0, 0, 0),
  23204. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23205. "Senary TDM0 Hostless Playback",
  23206. 0, 0, 0, 0),
  23207. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23208. "Senary TDM0 Hostless Capture",
  23209. 0, 0, 0, 0),
  23210. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23211. "Senary TDM1 Hostless Playback",
  23212. 0, 0, 0, 0),
  23213. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23214. "Senary TDM1 Hostless Capture",
  23215. 0, 0, 0, 0),
  23216. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23217. "Senary TDM2 Hostless Playback",
  23218. 0, 0, 0, 0),
  23219. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23220. "Senary TDM2 Hostless Capture",
  23221. 0, 0, 0, 0),
  23222. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23223. "Senary TDM3 Hostless Playback",
  23224. 0, 0, 0, 0),
  23225. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23226. "Senary TDM3 Hostless Capture",
  23227. 0, 0, 0, 0),
  23228. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23229. "Senary TDM4 Hostless Playback",
  23230. 0, 0, 0, 0),
  23231. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23232. "Senary TDM4 Hostless Capture",
  23233. 0, 0, 0, 0),
  23234. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23235. "Senary TDM5 Hostless Playback",
  23236. 0, 0, 0, 0),
  23237. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23238. "Senary TDM5 Hostless Capture",
  23239. 0, 0, 0, 0),
  23240. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23241. "Senary TDM6 Hostless Playback",
  23242. 0, 0, 0, 0),
  23243. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23244. "Senary TDM6 Hostless Capture",
  23245. 0, 0, 0, 0),
  23246. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23247. "Senary TDM7 Hostless Playback",
  23248. 0, 0, 0, 0),
  23249. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23250. "Senary TDM7 Hostless Capture",
  23251. 0, 0, 0, 0),
  23252. /* LSM */
  23253. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23254. 0, 0, 0, 0),
  23255. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23256. 0, 0, 0, 0),
  23257. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23258. 0, 0, 0, 0),
  23259. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23260. 0, 0, 0, 0),
  23261. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23262. 0, 0, 0, 0),
  23263. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23264. 0, 0, 0, 0),
  23265. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23266. 0, 0, 0, 0),
  23267. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23268. 0, 0, 0, 0),
  23269. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23270. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23271. /* Backend AIF */
  23272. /* Stream name equals to backend dai link stream name */
  23273. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23274. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23275. 0, 0, 0, 0),
  23276. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23277. 0, 0, 0, 0),
  23278. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23279. 0, 0, 0, 0),
  23280. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23281. 0, 0, 0, 0),
  23282. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23283. 0, 0, 0, 0),
  23284. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23285. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23286. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23287. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23288. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23289. 0, 0, 0, 0),
  23290. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23291. 0, 0, 0, 0),
  23292. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23293. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23294. 0, 0, 0, 0),
  23295. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23298. 0, 0, 0, 0),
  23299. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23300. "Secondary MI2S Playback SD1",
  23301. 0, 0, 0, 0),
  23302. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23303. 0, 0, 0, 0),
  23304. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23305. 0, 0, 0, 0),
  23306. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23307. 0, 0, 0, 0),
  23308. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23309. 0, 0, 0, 0),
  23310. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23311. 0, 0, 0, 0),
  23312. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23313. 0, 0, 0, 0),
  23314. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23315. 0, 0, 0, 0),
  23316. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23317. 0, 0, 0, 0),
  23318. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23319. 0, 0, 0, 0),
  23320. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23322. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23323. 0, 0, 0, 0),
  23324. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23325. 0, 0, 0, 0),
  23326. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23327. 0, 0, 0, 0),
  23328. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23329. 0, 0, 0, 0),
  23330. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23331. 0, 0, 0, 0),
  23332. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23333. 0, 0, 0, 0),
  23334. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23335. 0, 0, 0, 0),
  23336. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23337. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23338. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23339. 0, 0, 0, 0),
  23340. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23341. 0, 0, 0, 0),
  23342. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23343. 0, 0, 0, 0),
  23344. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23345. 0, 0, 0, 0),
  23346. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23347. 0, 0, 0, 0),
  23348. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23349. 0, 0, 0, 0),
  23350. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23351. 0, 0, 0, 0),
  23352. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23353. 0, 0, 0, 0),
  23354. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23355. 0, 0, 0, 0),
  23356. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23357. 0, 0, 0, 0),
  23358. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23359. 0, 0, 0, 0),
  23360. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23361. 0, 0, 0, 0),
  23362. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23363. 0, 0, 0, 0),
  23364. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23365. 0, 0, 0, 0),
  23366. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23367. 0, 0, 0, 0),
  23368. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23369. 0, 0, 0, 0),
  23370. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23371. 0, 0, 0, 0),
  23372. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23373. 0, 0, 0, 0),
  23374. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23375. 0, 0, 0, 0),
  23376. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23377. 0, 0, 0, 0),
  23378. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23379. 0, 0, 0, 0),
  23380. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23381. 0, 0, 0, 0),
  23382. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23383. 0, 0, 0, 0),
  23384. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23385. 0, 0, 0, 0),
  23386. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23387. 0, 0, 0, 0),
  23388. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23389. 0, 0, 0, 0),
  23390. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23391. 0, 0, 0, 0),
  23392. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23393. 0, 0, 0, 0),
  23394. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23395. 0, 0, 0, 0),
  23396. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23397. 0, 0, 0, 0),
  23398. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23399. 0, 0, 0, 0),
  23400. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23401. 0, 0, 0, 0),
  23402. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23403. 0, 0, 0, 0),
  23404. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23405. 0, 0, 0, 0),
  23406. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23407. 0, 0, 0, 0),
  23408. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23409. 0, 0, 0, 0),
  23410. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23411. 0, 0, 0, 0),
  23412. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23413. 0, 0, 0, 0),
  23414. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23415. 0, 0, 0, 0),
  23416. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23417. 0, 0, 0, 0),
  23418. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23419. 0, 0, 0, 0),
  23420. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23421. 0, 0, 0, 0),
  23422. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23423. 0, 0, 0, 0),
  23424. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23425. 0, 0, 0, 0),
  23426. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23427. 0, 0, 0, 0),
  23428. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23429. 0, 0, 0, 0),
  23430. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23431. 0, 0, 0, 0),
  23432. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23433. 0, 0, 0, 0),
  23434. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23435. 0, 0, 0, 0),
  23436. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23437. 0, 0, 0, 0),
  23438. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23439. 0, 0, 0, 0),
  23440. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23441. 0, 0, 0, 0),
  23442. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23443. 0, 0, 0, 0),
  23444. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23445. 0, 0, 0, 0),
  23446. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23447. 0, 0, 0, 0),
  23448. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23449. 0, 0, 0, 0),
  23450. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23451. 0, 0, 0, 0),
  23452. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23453. 0, 0, 0, 0),
  23454. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23455. 0, 0, 0, 0),
  23456. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23457. 0, 0, 0, 0),
  23458. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23459. 0, 0, 0, 0),
  23460. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23461. 0, 0, 0, 0),
  23462. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23463. 0, 0, 0, 0),
  23464. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23465. 0, 0, 0, 0),
  23466. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23467. 0, 0, 0, 0),
  23468. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23469. 0, 0, 0, 0),
  23470. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23471. 0, 0, 0, 0),
  23472. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23473. 0, 0, 0, 0),
  23474. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23475. 0, 0, 0, 0),
  23476. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23477. 0, 0, 0, 0),
  23478. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23479. 0, 0, 0, 0),
  23480. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23481. 0, 0, 0, 0),
  23482. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23483. 0, 0, 0, 0),
  23484. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23485. 0, 0, 0, 0),
  23486. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23487. 0, 0, 0, 0),
  23488. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23489. 0, 0, 0, 0),
  23490. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23491. 0, 0, 0, 0),
  23492. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23493. 0, 0, 0, 0),
  23494. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23495. 0, 0, 0, 0),
  23496. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23497. 0, 0, 0, 0),
  23498. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23499. 0, 0, 0, 0),
  23500. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23501. 0, 0, 0, 0),
  23502. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23503. 0, 0, 0, 0),
  23504. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23505. 0, 0, 0, 0),
  23506. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23507. 0, 0, 0, 0),
  23508. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23509. 0, 0, 0, 0),
  23510. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23511. 0, 0, 0, 0),
  23512. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23513. 0, 0, 0, 0),
  23514. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23515. 0, 0, 0, 0),
  23516. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23517. 0, 0, 0, 0),
  23518. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23519. 0, 0, 0, 0),
  23520. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23521. 0, 0, 0, 0),
  23522. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23523. 0, 0, 0, 0),
  23524. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23525. 0, 0, 0, 0),
  23526. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23527. 0, 0, 0, 0),
  23528. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23529. 0, 0, 0, 0),
  23530. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23531. 0, 0, 0, 0),
  23532. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23533. 0, 0, 0, 0),
  23534. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23535. 0, 0, 0, 0),
  23536. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23537. 0, 0, 0, 0),
  23538. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23539. 0, 0, 0, 0),
  23540. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23541. 0, 0, 0, 0),
  23542. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23543. 0, 0, 0, 0),
  23544. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23545. 0, 0, 0, 0),
  23546. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23547. 0, 0, 0, 0),
  23548. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23549. 0, 0, 0, 0),
  23550. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23551. 0, 0, 0, 0),
  23552. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23553. 0, 0, 0, 0),
  23554. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23555. 0, 0, 0, 0),
  23556. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23557. 0, 0, 0, 0),
  23558. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23559. 0, 0, 0, 0),
  23560. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23561. 0, 0, 0, 0),
  23562. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23563. 0, 0, 0, 0),
  23564. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23565. 0, 0, 0, 0),
  23566. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23567. 0, 0, 0, 0),
  23568. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23569. 0, 0, 0, 0),
  23570. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23571. 0, 0, 0, 0),
  23572. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23573. 0, 0, 0, 0),
  23574. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23575. 0, 0, 0, 0),
  23576. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23577. 0, 0, 0, 0),
  23578. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23579. 0, 0, 0, 0),
  23580. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23581. 0, 0, 0, 0),
  23582. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23583. 0, 0, 0, 0),
  23584. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23585. 0, 0, 0, 0),
  23586. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23587. 0, 0, 0, 0),
  23588. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23589. 0, 0, 0, 0),
  23590. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23591. 0, 0, 0, 0),
  23592. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23593. 0, 0, 0, 0),
  23594. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23595. 0, 0, 0, 0),
  23596. /* incall */
  23597. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23598. 0, 0, 0, 0),
  23599. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23600. 0, 0, 0, 0),
  23601. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23602. 0, 0, 0, 0),
  23603. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23604. 0, 0, 0, 0),
  23605. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23606. 0, 0, 0, 0),
  23607. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23608. 0, 0, 0, 0),
  23609. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23610. 0, 0, 0, 0),
  23611. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23612. 0, 0, 0, 0),
  23613. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23614. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23615. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23616. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23617. 0, 0, 0, 0),
  23618. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23619. 0, 0, 0, 0),
  23620. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23621. 0, 0, 0, 0),
  23622. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23623. 0, 0, 0, 0),
  23624. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23625. 0, 0, 0, 0),
  23626. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23627. 0, 0, 0, 0),
  23628. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23629. 0, 0, 0, 0),
  23630. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23631. 0, 0, 0, 0),
  23632. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23633. 0, 0, 0, 0),
  23634. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23635. 0, 0, 0, 0),
  23636. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23637. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23638. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23639. 0, 0, 0, 0),
  23640. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23641. 0, 0, 0, 0),
  23642. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23643. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23644. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23645. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23646. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23647. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23648. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23649. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23650. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23651. /* In- call recording */
  23652. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23653. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23654. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23655. 0, 0, 0, 0),
  23656. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23657. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23658. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23659. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23660. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23661. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23662. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23663. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23664. /* Switch Definitions */
  23665. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23666. &slim_fm_switch_mixer_controls),
  23667. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23668. &slim1_fm_switch_mixer_controls),
  23669. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23670. &slim3_fm_switch_mixer_controls),
  23671. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23672. &slim4_fm_switch_mixer_controls),
  23673. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23674. &slim6_fm_switch_mixer_controls),
  23675. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23676. &pcm_rx_switch_mixer_controls),
  23677. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23678. &int0_mi2s_rx_switch_mixer_controls),
  23679. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23680. &int4_mi2s_rx_switch_mixer_controls),
  23681. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23682. &pri_mi2s_rx_switch_mixer_controls),
  23683. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23684. &sec_mi2s_rx_switch_mixer_controls),
  23685. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23686. &tert_mi2s_rx_switch_mixer_controls),
  23687. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23688. &quat_mi2s_rx_switch_mixer_controls),
  23689. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23690. &quin_mi2s_rx_switch_mixer_controls),
  23691. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23692. &sco_slim7_switch_mixer_controls),
  23693. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23694. &sen_mi2s_rx_switch_mixer_controls),
  23695. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23696. &hfp_pri_aux_switch_mixer_controls),
  23697. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23698. &hfp_aux_switch_mixer_controls),
  23699. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23700. &hfp_int_switch_mixer_controls),
  23701. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23702. &hfp_slim7_switch_mixer_controls),
  23703. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23704. &usb_switch_mixer_controls),
  23705. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23706. &a2dp_slim7_switch_mixer_controls),
  23707. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23708. &cdc_dma_wsa_switch_mixer_controls),
  23709. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23710. &cdc_dma_rx_switch_mixer_controls),
  23711. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23712. &cdc_dma_rx_1_switch_mixer_controls),
  23713. /* Mixer definitions */
  23714. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23715. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23716. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23717. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23718. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23719. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23720. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23721. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23722. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23723. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23724. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23725. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23726. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23727. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23728. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23729. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23730. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23731. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23732. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23733. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23734. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23735. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23736. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23737. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23738. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23739. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23740. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23741. quaternary_mi2s_rx_mixer_controls,
  23742. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23743. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23744. tertiary_mi2s_rx_mixer_controls,
  23745. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23746. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23747. secondary_mi2s_rx_mixer_controls,
  23748. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23749. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23750. secondary_mi2s_rx2_mixer_controls,
  23751. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23752. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23753. primary_mi2s_rx_mixer_controls,
  23754. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23755. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23756. int0_mi2s_rx_mixer_controls,
  23757. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23758. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23759. int4_mi2s_rx_mixer_controls,
  23760. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23761. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23762. quinary_mi2s_rx_mixer_controls,
  23763. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23765. senary_mi2s_rx_mixer_controls,
  23766. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23767. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23768. pri_tdm_rx_0_mixer_controls,
  23769. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23771. pri_tdm_rx_1_mixer_controls,
  23772. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23773. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23774. pri_tdm_rx_2_mixer_controls,
  23775. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23777. pri_tdm_rx_3_mixer_controls,
  23778. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23779. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23780. pri_tdm_tx_0_mixer_controls,
  23781. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23783. sec_tdm_rx_0_mixer_controls,
  23784. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23785. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23786. sec_tdm_rx_1_mixer_controls,
  23787. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23789. sec_tdm_rx_2_mixer_controls,
  23790. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23791. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23792. sec_tdm_rx_3_mixer_controls,
  23793. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23794. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23795. sec_tdm_tx_0_mixer_controls,
  23796. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23797. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23798. tert_tdm_rx_0_mixer_controls,
  23799. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23800. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23801. tert_tdm_tx_0_mixer_controls,
  23802. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23803. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23804. tert_tdm_rx_1_mixer_controls,
  23805. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23806. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23807. tert_tdm_rx_2_mixer_controls,
  23808. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23809. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23810. tert_tdm_rx_3_mixer_controls,
  23811. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23812. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23813. tert_tdm_rx_4_mixer_controls,
  23814. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23815. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23816. quat_tdm_rx_0_mixer_controls,
  23817. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23818. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23819. quat_tdm_tx_0_mixer_controls,
  23820. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23821. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23822. quat_tdm_rx_1_mixer_controls,
  23823. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23824. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23825. quat_tdm_rx_2_mixer_controls,
  23826. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23827. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23828. quat_tdm_rx_3_mixer_controls,
  23829. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23830. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23831. quin_tdm_rx_0_mixer_controls,
  23832. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23833. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23834. quin_tdm_tx_0_mixer_controls,
  23835. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23836. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23837. quin_tdm_rx_1_mixer_controls,
  23838. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23839. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23840. quin_tdm_tx_1_mixer_controls,
  23841. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23842. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23843. quin_tdm_rx_2_mixer_controls,
  23844. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23845. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23846. quin_tdm_tx_2_mixer_controls,
  23847. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23848. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23849. quin_tdm_rx_3_mixer_controls,
  23850. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23851. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23852. quin_tdm_tx_3_mixer_controls,
  23853. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23854. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23855. sen_tdm_tx_0_mixer_controls,
  23856. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23857. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23858. sen_tdm_rx_0_mixer_controls,
  23859. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23860. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23861. sen_tdm_rx_1_mixer_controls,
  23862. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23863. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23864. sen_tdm_rx_2_mixer_controls,
  23865. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23866. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23867. sen_tdm_rx_3_mixer_controls,
  23868. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23869. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23870. pri_meta_mi2s_rx_mixer_controls,
  23871. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23872. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23873. sec_meta_mi2s_rx_mixer_controls,
  23874. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23875. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23876. wsa_cdc_dma_rx_0_mixer_controls,
  23877. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23878. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23879. wsa_cdc_dma_rx_1_mixer_controls,
  23880. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23881. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23882. rx_cdc_dma_rx_0_mixer_controls,
  23883. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23884. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23885. rx_cdc_dma_rx_1_mixer_controls,
  23886. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23887. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23888. rx_cdc_dma_rx_2_mixer_controls,
  23889. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23890. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23891. rx_cdc_dma_rx_3_mixer_controls,
  23892. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23893. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23894. rx_cdc_dma_rx_4_mixer_controls,
  23895. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23896. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23897. rx_cdc_dma_rx_5_mixer_controls,
  23898. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23899. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23900. rx_cdc_dma_rx_6_mixer_controls,
  23901. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23902. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23903. rx_cdc_dma_rx_7_mixer_controls,
  23904. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23905. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23906. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23907. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23908. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23909. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23910. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23911. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23912. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23913. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23914. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23915. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23916. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23917. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23918. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23919. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23920. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23921. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23922. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23923. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23924. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23925. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23926. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23927. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23928. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23929. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23930. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23931. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23932. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23933. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23934. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23935. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23936. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23937. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23938. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23939. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  23940. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  23941. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  23942. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  23943. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23944. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23945. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23946. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23947. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23948. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23949. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23950. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23951. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23952. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23953. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23954. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23955. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23956. tert_auxpcm_rx_mixer_controls,
  23957. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23958. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23959. quat_auxpcm_rx_mixer_controls,
  23960. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23961. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23962. quin_auxpcm_rx_mixer_controls,
  23963. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23964. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23965. sen_auxpcm_rx_mixer_controls,
  23966. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23967. /* incall */
  23968. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23969. incall_music_delivery_mixer_controls,
  23970. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23971. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23972. incall_music2_delivery_mixer_controls,
  23973. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23974. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23975. slimbus_4_rx_mixer_controls,
  23976. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23977. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23978. slimbus_6_rx_mixer_controls,
  23979. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23980. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23981. usb_audio_rx_mixer_controls,
  23982. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23983. /* Voice Mixer */
  23984. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23985. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23986. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23987. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23988. SND_SOC_NOPM, 0, 0,
  23989. sec_i2s_rx_voice_mixer_controls,
  23990. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23991. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23992. SND_SOC_NOPM, 0, 0,
  23993. sec_mi2s_rx_voice_mixer_controls,
  23994. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23995. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23996. SND_SOC_NOPM, 0, 0,
  23997. slimbus_rx_voice_mixer_controls,
  23998. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23999. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24000. SND_SOC_NOPM, 0, 0,
  24001. bt_sco_rx_voice_mixer_controls,
  24002. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24003. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24004. SND_SOC_NOPM, 0, 0,
  24005. afe_pcm_rx_voice_mixer_controls,
  24006. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24007. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24008. SND_SOC_NOPM, 0, 0,
  24009. aux_pcm_rx_voice_mixer_controls,
  24010. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24011. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24012. SND_SOC_NOPM, 0, 0,
  24013. sec_aux_pcm_rx_voice_mixer_controls,
  24014. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24015. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24016. SND_SOC_NOPM, 0, 0,
  24017. tert_aux_pcm_rx_voice_mixer_controls,
  24018. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24019. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24020. SND_SOC_NOPM, 0, 0,
  24021. quat_aux_pcm_rx_voice_mixer_controls,
  24022. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24023. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24024. SND_SOC_NOPM, 0, 0,
  24025. quin_aux_pcm_rx_voice_mixer_controls,
  24026. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24027. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24028. SND_SOC_NOPM, 0, 0,
  24029. sen_aux_pcm_rx_voice_mixer_controls,
  24030. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24031. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24032. SND_SOC_NOPM, 0, 0,
  24033. hdmi_rx_voice_mixer_controls,
  24034. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24035. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24036. SND_SOC_NOPM, 0, 0,
  24037. mi2s_rx_voice_mixer_controls,
  24038. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24039. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24040. SND_SOC_NOPM, 0, 0,
  24041. pri_mi2s_rx_voice_mixer_controls,
  24042. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24043. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24044. SND_SOC_NOPM, 0, 0,
  24045. int0_mi2s_rx_voice_mixer_controls,
  24046. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24047. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24048. SND_SOC_NOPM, 0, 0,
  24049. int4_mi2s_rx_voice_mixer_controls,
  24050. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24051. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24052. SND_SOC_NOPM, 0, 0,
  24053. tert_mi2s_rx_voice_mixer_controls,
  24054. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24055. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24056. SND_SOC_NOPM, 0, 0,
  24057. quat_mi2s_rx_voice_mixer_controls,
  24058. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24059. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24060. SND_SOC_NOPM, 0, 0,
  24061. quin_mi2s_rx_voice_mixer_controls,
  24062. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24063. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24064. SND_SOC_NOPM, 0, 0,
  24065. pri_tdm_rx_0_voice_mixer_controls,
  24066. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24067. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24068. SND_SOC_NOPM, 0, 0,
  24069. pri_tdm_rx_1_voice_mixer_controls,
  24070. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24071. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24072. SND_SOC_NOPM, 0, 0,
  24073. pri_tdm_rx_2_voice_mixer_controls,
  24074. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24075. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24076. SND_SOC_NOPM, 0, 0,
  24077. pri_tdm_rx_3_voice_mixer_controls,
  24078. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24079. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24080. SND_SOC_NOPM, 0, 0,
  24081. sen_mi2s_rx_voice_mixer_controls,
  24082. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24083. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24084. SND_SOC_NOPM, 0, 0,
  24085. quat_tdm_rx_2_voice_mixer_controls,
  24086. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24087. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24088. SND_SOC_NOPM, 0, 0,
  24089. quin_tdm_rx_2_voice_mixer_controls,
  24090. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24091. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24092. SND_SOC_NOPM, 0, 0,
  24093. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24094. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24095. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24096. SND_SOC_NOPM, 0, 0,
  24097. rx_cdc_dma_rx_0_voice_mixer_controls,
  24098. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24099. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24100. SND_SOC_NOPM, 0, 0,
  24101. rx_cdc_dma_rx_1_voice_mixer_controls,
  24102. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24103. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24104. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24105. ARRAY_SIZE(tx_voip_mixer_controls)),
  24106. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24107. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24108. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24109. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24110. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24111. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24112. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24113. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24114. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24115. int_bt_a2dp_rx_mixer_controls,
  24116. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24117. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24118. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24119. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24120. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24121. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24122. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24123. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24124. tx_voice2_stub_mixer_controls,
  24125. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24126. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24127. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24128. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24129. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24130. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24131. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24132. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24133. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24134. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24135. SND_SOC_NOPM, 0, 0,
  24136. slimbus_6_rx_voice_mixer_controls,
  24137. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24138. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24139. slimbus_7_rx_voice_mixer_controls,
  24140. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24141. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24142. slimbus_8_rx_voice_mixer_controls,
  24143. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24144. /* port mixer */
  24145. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24146. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24147. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24148. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24149. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24150. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24151. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24152. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24153. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24154. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24155. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24156. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24157. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24158. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24159. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24160. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24161. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24162. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24163. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24164. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24165. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24166. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24167. sbus_1_rx_port_mixer_controls,
  24168. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24169. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24170. bt_sco_rx_port_mixer_controls,
  24171. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24172. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24173. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24174. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24175. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24176. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24177. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24178. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24179. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24180. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24181. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24182. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24183. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24184. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24185. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24186. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24187. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24188. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24189. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24190. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24191. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24192. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24193. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24194. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24195. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24196. primary_mi2s_rx_port_mixer_controls,
  24197. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24198. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24199. sec_mi2s_rx_port_mixer_controls,
  24200. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24201. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24202. tert_mi2s_rx_port_mixer_controls,
  24203. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24204. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24205. quat_mi2s_rx_port_mixer_controls,
  24206. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24207. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24208. quin_mi2s_rx_port_mixer_controls,
  24209. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24210. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24211. sen_mi2s_rx_port_mixer_controls,
  24212. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24213. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24214. pri_tdm_rx_0_port_mixer_controls,
  24215. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24216. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24217. pri_tdm_rx_1_port_mixer_controls,
  24218. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24219. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24220. pri_tdm_rx_2_port_mixer_controls,
  24221. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24222. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24223. pri_tdm_rx_3_port_mixer_controls,
  24224. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24225. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24226. sec_tdm_rx_0_port_mixer_controls,
  24227. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24228. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24229. sec_tdm_rx_1_port_mixer_controls,
  24230. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24231. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24232. sec_tdm_rx_2_port_mixer_controls,
  24233. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24234. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24235. sec_tdm_rx_3_port_mixer_controls,
  24236. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24237. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24238. sec_tdm_rx_7_port_mixer_controls,
  24239. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24240. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24241. tert_tdm_rx_0_port_mixer_controls,
  24242. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24243. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24244. tert_tdm_rx_1_port_mixer_controls,
  24245. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24246. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24247. tert_tdm_rx_2_port_mixer_controls,
  24248. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24249. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24250. tert_tdm_rx_3_port_mixer_controls,
  24251. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24252. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24253. quat_tdm_rx_0_port_mixer_controls,
  24254. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24255. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24256. quat_tdm_rx_1_port_mixer_controls,
  24257. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24258. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24259. quat_tdm_rx_2_port_mixer_controls,
  24260. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24261. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24262. quat_tdm_rx_3_port_mixer_controls,
  24263. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24264. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24265. quat_tdm_rx_7_port_mixer_controls,
  24266. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24267. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24268. quin_tdm_rx_0_port_mixer_controls,
  24269. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24270. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24271. quin_tdm_rx_1_port_mixer_controls,
  24272. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24273. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24274. quin_tdm_rx_2_port_mixer_controls,
  24275. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24276. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24277. quin_tdm_rx_3_port_mixer_controls,
  24278. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24279. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24280. quin_tdm_rx_7_port_mixer_controls,
  24281. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24282. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24283. sen_tdm_rx_0_port_mixer_controls,
  24284. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24285. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24286. sen_tdm_rx_1_port_mixer_controls,
  24287. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24288. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24289. sen_tdm_rx_2_port_mixer_controls,
  24290. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24291. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24292. sen_tdm_rx_3_port_mixer_controls,
  24293. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24294. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24295. int0_mi2s_rx_port_mixer_controls,
  24296. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24297. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24298. int4_mi2s_rx_port_mixer_controls,
  24299. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24300. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24301. wsa_cdc_dma_rx_0_port_mixer_controls,
  24302. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24303. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24304. rx_cdc_dma_rx_0_port_mixer_controls,
  24305. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24306. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24307. rx_cdc_dma_rx_1_port_mixer_controls,
  24308. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24309. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24310. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24311. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24312. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24313. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24314. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24315. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24316. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24317. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24318. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24319. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24320. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24321. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24322. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24323. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24324. /* lsm mixer definitions */
  24325. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24326. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24327. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24328. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24329. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24330. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24331. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24332. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24333. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24334. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24335. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24336. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24337. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24338. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24339. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24340. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24341. /* Virtual Pins to force backends ON atm */
  24342. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24343. SND_SOC_DAPM_INPUT("BE_IN"),
  24344. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24345. &slim0_rx_vi_fb_lch_mux),
  24346. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24347. &slim0_rx_vi_fb_rch_mux),
  24348. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24349. &wsa_rx_0_vi_fb_lch_mux),
  24350. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24351. &wsa_rx_0_vi_fb_rch_mux),
  24352. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24353. &mi2s_rx_vi_fb_mux),
  24354. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24355. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24356. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24357. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24358. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24359. &voc_ext_ec_mux),
  24360. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24361. &ext_ec_ref_mux_ul1),
  24362. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24363. &ext_ec_ref_mux_ul2),
  24364. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24365. &ext_ec_ref_mux_ul3),
  24366. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24367. &ext_ec_ref_mux_ul4),
  24368. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24369. &ext_ec_ref_mux_ul5),
  24370. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24371. &ext_ec_ref_mux_ul6),
  24372. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24373. &ext_ec_ref_mux_ul8),
  24374. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24375. &ext_ec_ref_mux_ul9),
  24376. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24377. &ext_ec_ref_mux_ul10),
  24378. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24379. &ext_ec_ref_mux_ul16),
  24380. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24381. &ext_ec_ref_mux_ul17),
  24382. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24383. &ext_ec_ref_mux_ul18),
  24384. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24385. &ext_ec_ref_mux_ul19),
  24386. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24387. &ext_ec_ref_mux_ul28),
  24388. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24389. &ext_ec_ref_mux_ul29),
  24390. };
  24391. static const struct snd_soc_dapm_route intercon[] = {
  24392. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24393. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24394. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24395. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24396. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24397. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24398. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24399. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24400. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24401. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24402. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24403. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24404. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24405. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24406. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24407. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24408. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24409. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24410. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24411. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24412. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24413. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24414. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24415. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24416. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24417. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24418. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24419. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24420. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24421. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24422. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24423. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24424. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24425. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24426. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24427. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24428. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24429. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24430. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24431. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24432. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24433. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24434. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24435. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24436. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24437. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24438. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24439. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24440. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24441. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24442. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24443. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24444. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24445. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24446. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24447. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24448. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24449. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24450. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24451. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24452. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24453. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24454. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24455. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24456. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24457. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24458. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24459. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24460. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24461. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24462. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24463. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24464. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24465. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24466. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24467. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24468. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24469. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24470. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24471. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24472. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24473. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24474. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24475. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24476. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24477. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24478. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24479. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24480. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24481. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24482. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24483. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24484. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24485. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24486. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24487. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24488. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24489. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24490. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24491. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24492. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24493. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24494. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24495. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24496. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24497. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24498. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24499. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24500. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24501. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24502. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24503. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24504. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24505. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24506. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24507. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24508. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24509. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24510. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24511. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24512. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24513. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24514. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24515. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24516. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24517. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24518. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24519. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24520. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24521. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24522. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24523. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24524. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24525. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24526. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24527. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24528. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24529. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24530. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24531. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24532. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24533. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24534. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24535. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24536. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24537. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24538. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24539. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24540. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24541. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24542. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24543. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24544. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24545. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24546. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24547. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24548. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24549. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24550. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24551. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24552. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24553. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24554. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24555. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24556. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24557. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24558. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24559. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24560. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24561. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24562. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24563. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24564. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24565. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24566. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24567. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24568. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24569. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24570. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24571. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24572. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24573. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24574. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24575. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24576. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24577. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24578. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24579. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24580. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24581. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24582. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24583. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24584. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24585. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24586. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24587. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24588. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24589. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24590. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24591. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24592. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24593. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24594. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24595. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24596. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24597. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24598. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24599. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24600. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24601. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24602. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24603. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24604. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24605. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24606. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24607. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24608. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24609. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24610. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24611. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24612. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24613. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24614. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24615. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24616. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24617. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24618. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24619. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24620. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24621. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24622. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24623. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24624. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24625. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24626. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24627. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24628. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24629. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24630. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24631. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24632. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24633. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24634. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24635. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24636. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24637. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24638. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24639. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24640. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24641. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24642. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24643. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24644. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24645. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24646. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24647. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24648. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24649. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24650. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24651. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24652. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24653. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24654. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24655. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24656. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24657. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24658. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24659. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24660. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24661. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24662. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24663. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24664. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24665. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24666. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24667. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24668. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24669. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24670. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24671. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24672. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24673. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24674. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24675. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24676. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24677. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24678. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24679. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24680. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24681. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24682. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24683. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24684. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24685. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24686. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24687. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24688. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24689. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24690. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24691. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24692. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24693. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24694. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24695. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24696. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24697. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24698. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24699. {"HDMI", NULL, "HDMI Mixer"},
  24700. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24701. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24702. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24703. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24704. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24705. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24706. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24707. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24708. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24709. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24710. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24711. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24712. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24713. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24714. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24715. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24716. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24717. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24718. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24719. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24720. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24721. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24722. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24723. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24724. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24725. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24726. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24727. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24728. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24729. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24730. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24731. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24732. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24733. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24734. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24735. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24736. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24737. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24738. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24739. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24740. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24741. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24742. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24743. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24744. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24745. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24746. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24747. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24748. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24749. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24750. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24751. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24752. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24753. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24754. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24755. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24756. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24757. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24758. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24759. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24760. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24761. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24762. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24763. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24764. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24765. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24766. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24767. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24768. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24769. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24770. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24771. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24772. /* incall */
  24773. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24774. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24775. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24776. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24777. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24778. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24779. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24780. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24781. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24782. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24783. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24784. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24785. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24786. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24787. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24788. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24789. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24790. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24791. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24792. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24793. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24794. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24795. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24796. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24797. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24798. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24799. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24800. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24801. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24802. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24803. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24804. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24805. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24806. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24807. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24808. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24809. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24810. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24811. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24812. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24813. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24814. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24815. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24816. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24817. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24818. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24819. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24820. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24821. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24822. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24823. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24824. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24825. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24826. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24827. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24828. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24829. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24830. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24831. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24832. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24833. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24834. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24835. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24836. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24837. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24838. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24839. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24840. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24841. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24842. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24843. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24844. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24845. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24846. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24847. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24848. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24849. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24850. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24851. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24852. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24853. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24854. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24855. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24856. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24857. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24858. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24859. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24860. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24861. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24862. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24863. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24864. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24865. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24866. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24867. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24868. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24869. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24870. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24871. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24872. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24873. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24874. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24875. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24876. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24877. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24878. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24879. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24880. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24881. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24882. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24883. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24884. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24885. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24886. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24887. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24888. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24889. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24890. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24891. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24892. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24893. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24894. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24895. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24896. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24897. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24898. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24899. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24900. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24901. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24902. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24903. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24904. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24905. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24906. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24907. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24908. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24909. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24910. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24911. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24912. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24913. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24914. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24915. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24916. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24917. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24918. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24919. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24920. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24921. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24922. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24923. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24924. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24925. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24926. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24927. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24928. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24929. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24930. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24931. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24932. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24933. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24934. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24935. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24936. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24937. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24938. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24939. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24940. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24941. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24942. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24943. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24944. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24945. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24946. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24947. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24948. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24949. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24950. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24951. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24952. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24953. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24954. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24955. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24956. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24957. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24958. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24959. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24960. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24961. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24962. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24963. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24964. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24965. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24966. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24967. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24968. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24969. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24970. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24971. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24972. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24973. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24974. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24975. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24976. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24977. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24978. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24979. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24980. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24981. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24982. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24983. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24984. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24985. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24986. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24987. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24988. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24989. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24990. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24991. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24992. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24993. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24994. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24995. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24996. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24997. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24998. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24999. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25000. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25001. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25002. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25003. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25004. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25005. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25006. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25007. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25008. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25009. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25010. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25011. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25012. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25013. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25014. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25015. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25016. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25017. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25018. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25019. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25020. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25021. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25022. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25023. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25024. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25025. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25026. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25027. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25028. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25029. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25030. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25031. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25032. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25033. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25034. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25035. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25036. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25037. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25038. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25039. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25040. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25041. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25042. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25043. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25044. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25045. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25046. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25047. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25048. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25049. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25050. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25051. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25052. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25053. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25054. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25055. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25056. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25057. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25058. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25059. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25060. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25061. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25062. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25063. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25064. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25065. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25066. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25067. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25068. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25069. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25070. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25071. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25072. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25073. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25074. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25075. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25076. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25077. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25078. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25079. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25080. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25081. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25082. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25083. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25084. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25085. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25086. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25087. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25088. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25089. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25090. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25091. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25092. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25093. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25094. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25095. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25096. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25097. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25098. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25099. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25100. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25101. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25102. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25103. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25104. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25105. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25106. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25107. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25108. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25109. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25110. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25111. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25112. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25113. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25114. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25115. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25116. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25117. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25118. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25119. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25120. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25121. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25122. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25123. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25124. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25125. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25126. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25127. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25128. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25129. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25130. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25131. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25132. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25133. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25134. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25135. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25136. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25137. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25138. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25139. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25140. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25141. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25142. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25143. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25144. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25145. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25146. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25147. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25148. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25149. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25150. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25151. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25152. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25153. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25154. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25155. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25156. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25157. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25158. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25159. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25160. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25161. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25162. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25163. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25164. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25165. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25166. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25167. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25168. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25169. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25170. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25171. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25172. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25173. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25174. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25175. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25176. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25177. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25178. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25179. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25180. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25181. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25182. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25183. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25184. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25185. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25186. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25187. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25188. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25189. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25190. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25191. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25192. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25193. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25194. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25195. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25196. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25197. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25198. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25199. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25200. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25201. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25202. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25203. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25204. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25205. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25206. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25207. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25208. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25209. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25210. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25211. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25212. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25213. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25214. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25215. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25216. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25217. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25218. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25219. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25220. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25221. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25222. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25223. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25224. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25225. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25226. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25227. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25228. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25229. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25230. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25231. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25232. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25233. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25234. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25235. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25236. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25237. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25238. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25239. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25240. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25241. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25242. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25243. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25244. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25245. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25246. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25247. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25248. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25249. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25250. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25251. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25252. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25253. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25254. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25255. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25256. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25257. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25258. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25259. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25260. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25261. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25262. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25263. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25264. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25265. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25266. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25267. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25268. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25269. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25270. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25271. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25272. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25273. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25274. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25275. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25276. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25277. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25278. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25279. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25280. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25281. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25282. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25283. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25284. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25285. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25286. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25287. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25288. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25289. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25290. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25291. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25292. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25293. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25294. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25295. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25296. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25297. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25298. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25299. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25300. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25301. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25302. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25303. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25304. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25305. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25306. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25307. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25308. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25309. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25310. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25311. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25312. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25313. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25314. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25315. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25316. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25317. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25318. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25319. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25320. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25321. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25322. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25323. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25324. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25325. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25326. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25327. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25328. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25329. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25330. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25331. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25332. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25333. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25334. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25335. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25336. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25337. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25338. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25339. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25340. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25341. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25342. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25343. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25344. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25345. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25346. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25347. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25348. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25349. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25350. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25351. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25352. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25353. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25354. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25355. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25356. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25357. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25358. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25359. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25360. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25361. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25362. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25363. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25364. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25365. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25366. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25367. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25368. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25369. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25370. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25371. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25372. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25373. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25374. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25375. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25376. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25377. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25378. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25379. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25380. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25381. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25382. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25383. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25384. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25385. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25386. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25387. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25388. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25389. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25390. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25391. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25392. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25393. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25394. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25395. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25396. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25397. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25398. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25399. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25400. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25401. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25402. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25403. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25404. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25405. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25406. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25407. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25408. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25409. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25410. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25411. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25412. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25413. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25414. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25415. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25416. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25417. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25418. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25419. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25420. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25421. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25422. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25423. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25424. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25425. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25426. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25427. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25428. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25429. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25430. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25431. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25432. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25433. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25434. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25435. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25436. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25437. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25438. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25439. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25440. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25441. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25442. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25443. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25444. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25445. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25446. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25447. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25448. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25449. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25450. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25451. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25452. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25453. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25454. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25455. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25456. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25457. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25458. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25459. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25460. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25461. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25462. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25463. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25464. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25465. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25466. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25467. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25468. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25469. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25470. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25471. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25472. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25473. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25474. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25475. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25476. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25477. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25478. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25479. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25480. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25481. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25482. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25483. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25484. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25485. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25486. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25487. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25488. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25489. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25490. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25491. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25492. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25493. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25494. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25495. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25496. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25497. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25498. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25499. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25500. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25501. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25502. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25503. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25504. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25505. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25506. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25507. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25508. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25509. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25510. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25511. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25512. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25513. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25514. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25515. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25516. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25517. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25518. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25519. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25520. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25521. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25522. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25523. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25524. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25525. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25526. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25527. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25528. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25529. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25530. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25531. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25532. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25533. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25534. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25535. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25536. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25537. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25538. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25539. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25540. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25541. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25542. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25543. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25544. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25545. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25546. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25547. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25548. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25549. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25550. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25551. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25552. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25553. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25554. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25555. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25556. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25557. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25558. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25559. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25560. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25561. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25562. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25563. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25564. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25565. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25566. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25567. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25568. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25569. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25570. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25571. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25572. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25573. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25574. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25575. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25576. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25577. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25578. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25579. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25580. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25581. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25582. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25583. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25584. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25585. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25586. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25587. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25588. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25589. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25590. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25591. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25592. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25593. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25594. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25595. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25596. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25597. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25598. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25599. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25600. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25601. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25602. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25603. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25604. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25605. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25606. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25607. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25608. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25609. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25610. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25611. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25612. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25613. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25614. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25615. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25616. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25617. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25618. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25619. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25620. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25621. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25622. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25623. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25624. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25625. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25626. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25627. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25628. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25629. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25630. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25631. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25632. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25633. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25634. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25635. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25636. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25637. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25638. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25639. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25640. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25641. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25642. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25643. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25644. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25645. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25646. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25647. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25648. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25649. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25650. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25651. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25652. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25653. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25654. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25655. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25656. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25657. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25658. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25659. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25660. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25661. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25662. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25663. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25664. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25665. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25666. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25667. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25668. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25669. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25670. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25671. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25672. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25673. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25674. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25675. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25676. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25677. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25678. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25679. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25680. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25681. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25682. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25683. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25684. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25685. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25686. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25687. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25688. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25689. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25690. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25691. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25692. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25693. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25694. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25695. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25696. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25697. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25698. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25699. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25700. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25701. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25702. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25703. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25704. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25705. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25706. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25707. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25708. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25709. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25710. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25711. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25712. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25713. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25714. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25715. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25716. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25717. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25718. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25719. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25720. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25721. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25722. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25723. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25724. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25725. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25726. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25727. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25728. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25729. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25730. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25731. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25732. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25733. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25734. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25735. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25736. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25737. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25738. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25739. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25740. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25741. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25742. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25743. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25744. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25745. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25746. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25747. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25748. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25749. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25750. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25751. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25752. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25753. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25754. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25755. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25756. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25757. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25758. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25759. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25760. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25761. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25762. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25763. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25764. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25765. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25766. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25767. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25768. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25769. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25770. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25771. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25772. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25773. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25774. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25775. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25776. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25777. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25778. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25779. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25780. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25781. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25782. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25783. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25784. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25785. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25786. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25787. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25788. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25789. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25790. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25791. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25792. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25793. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25794. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25795. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25796. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25797. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25798. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25799. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25800. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25801. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25802. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25803. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25804. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25805. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25806. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25807. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25808. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25809. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25810. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25811. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25812. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25813. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25814. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25815. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25816. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25817. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25818. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25819. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25820. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25821. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25822. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25823. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25824. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25825. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25826. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25827. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25828. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25829. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25830. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25831. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25832. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25833. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25834. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25835. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25836. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25837. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25838. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25839. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25840. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25841. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25842. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25843. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25844. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25845. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25846. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25847. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25848. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25849. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25850. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25851. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25852. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25853. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25854. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25855. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25856. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25857. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25858. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25859. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25860. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25861. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25862. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25863. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25864. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25865. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25866. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25867. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25868. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25869. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25870. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25871. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25872. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25873. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25874. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25875. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25876. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25877. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25878. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25879. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25880. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25881. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25882. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25883. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25884. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25885. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25886. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25887. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25888. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25889. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25890. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25891. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25892. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25893. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25894. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25895. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25896. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25897. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25898. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25899. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25900. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25901. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25902. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25903. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25904. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25905. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25906. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25907. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25908. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25909. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25910. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25911. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25912. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25913. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25914. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25915. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25916. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25917. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25918. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25919. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25920. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25921. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25922. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25923. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25924. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25925. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25926. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25927. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25928. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25929. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25930. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25931. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25932. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25933. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25934. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25935. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25936. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25937. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25938. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25939. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25940. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25941. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25942. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25943. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25944. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25945. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25946. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25947. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25948. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25949. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25950. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25951. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25952. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25953. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25954. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25955. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25956. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25957. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25958. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25959. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25960. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25961. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25962. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25963. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25964. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25965. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25966. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25967. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25968. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25969. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25970. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25971. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25972. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25973. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25974. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25975. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25976. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25977. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25978. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25979. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25980. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25981. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25982. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25983. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25984. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25985. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25986. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25987. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25988. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25989. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25990. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25991. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25992. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25993. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25994. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25995. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25996. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25997. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25998. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25999. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26000. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26001. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26002. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26003. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26004. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26005. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26006. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26007. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26008. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26009. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26010. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26011. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26012. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26013. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26014. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26015. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26016. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26017. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26018. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26019. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26020. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26021. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26022. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26023. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26024. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26025. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26026. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26027. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26028. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26029. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26030. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26031. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26032. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26033. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26034. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26035. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26036. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26037. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26038. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26039. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26040. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26041. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26042. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26043. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26044. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26045. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26046. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26047. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26048. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26049. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26050. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26051. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26052. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26053. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26054. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26055. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26056. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26057. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26058. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26059. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26060. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26061. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26062. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26063. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26064. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26065. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26066. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26067. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26068. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26069. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26070. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26071. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26072. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26073. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26074. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26075. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26076. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26077. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26078. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26079. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26080. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26081. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26082. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26083. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26084. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26085. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26086. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26087. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26088. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26089. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26090. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26091. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26092. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26093. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26094. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26095. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26096. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26097. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26098. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26099. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26100. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26101. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26102. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26103. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26104. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26105. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26106. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26107. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26108. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26109. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26110. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26111. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26112. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26113. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26114. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26115. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26116. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26117. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26118. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26119. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26120. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26121. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26122. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26123. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26124. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26125. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26126. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26127. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26128. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26129. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26130. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26131. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26132. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26133. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26134. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26135. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26136. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26137. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26138. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26139. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26140. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26141. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26142. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26143. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26144. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26145. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26146. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26147. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26148. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26149. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26150. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26151. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26152. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26153. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26154. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26155. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26156. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26157. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26158. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26159. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26160. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26161. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26162. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26163. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26164. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26165. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26166. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26167. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26168. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26169. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26170. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26171. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26172. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26173. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26174. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26175. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26176. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26177. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26178. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26179. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26180. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26181. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26182. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26183. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26184. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26185. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26186. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26187. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26188. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26189. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26190. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26191. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26192. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26193. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26194. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26195. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26196. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26197. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26198. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26199. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26200. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26201. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26202. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26203. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26204. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26205. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26206. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26207. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26208. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26209. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26210. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26211. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26212. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26213. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26214. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26215. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26216. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26217. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26218. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26219. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26220. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26221. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26222. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26223. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26224. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26225. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26226. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26227. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26228. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26229. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26230. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26231. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26232. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26233. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26234. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26235. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26236. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26237. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26238. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26239. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26240. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26241. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26242. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26243. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26244. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26245. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26246. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26247. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26248. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26249. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26250. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26251. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26252. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26253. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26254. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26255. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26256. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26257. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26258. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26259. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26260. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26261. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26262. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26263. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26264. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26265. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26266. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26267. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26268. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26269. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26270. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26271. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26272. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26273. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26274. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26275. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26276. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26277. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26278. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26279. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26280. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26281. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26282. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26283. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26284. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26285. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26286. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26287. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26288. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26289. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26290. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26291. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26292. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26293. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26294. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26295. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26296. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26297. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26298. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26299. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26300. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26301. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26302. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26303. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26304. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26305. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26306. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26307. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26308. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26309. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26310. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26311. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26312. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26313. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26314. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26315. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26316. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26317. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26318. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26319. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26320. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26321. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26322. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26323. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26324. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26325. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26326. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26327. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26328. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26329. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26330. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26331. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26332. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26333. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26334. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26335. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26336. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26337. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26338. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26339. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26340. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26341. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26342. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26343. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26344. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26345. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26346. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26347. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26348. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26349. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26350. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26351. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26352. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26353. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26354. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26355. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26356. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26357. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26358. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26359. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26360. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26361. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26362. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26363. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26364. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26365. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26366. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26367. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26368. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26369. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26370. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26371. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26372. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26373. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26374. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26375. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26376. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26377. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26378. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26379. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26380. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26381. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26382. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26383. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26384. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26385. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26386. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26387. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26388. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26389. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26390. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26391. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26392. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26393. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26394. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26395. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26396. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26397. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26398. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26399. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26400. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26401. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26402. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26403. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26404. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26405. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26406. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26407. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26408. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26409. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26410. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26411. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26412. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26413. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26414. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26415. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26416. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26417. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26418. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26419. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26420. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26421. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26422. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26423. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26424. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26425. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26426. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26427. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26428. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26429. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26430. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26431. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26432. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26433. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26434. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26435. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26436. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26437. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26438. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26439. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26440. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26441. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26442. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26443. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26444. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26445. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26446. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26447. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26448. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26449. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26450. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26451. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26452. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26453. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26454. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26455. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26456. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26457. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26458. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26459. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26460. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26461. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26462. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26463. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26464. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26465. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26466. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26467. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26468. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26469. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26470. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26471. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26472. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26473. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26474. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26475. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26476. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26477. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26478. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26479. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26480. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26481. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26482. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26483. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26484. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26485. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26486. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26487. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26488. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26489. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26490. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26491. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26492. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26493. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26494. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26495. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26496. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26497. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26498. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26499. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26500. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26501. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26502. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26503. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26504. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26505. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26506. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26507. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26508. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26509. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26510. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26511. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26512. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26513. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26514. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26515. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26516. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26517. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26518. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26519. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26520. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26521. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26522. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26523. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26524. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26525. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26526. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26527. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26528. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26529. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26530. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26531. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26532. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26533. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26534. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26535. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26536. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26537. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26538. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26539. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26540. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26541. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26542. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26543. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26544. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26545. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26546. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26547. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26548. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26549. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26550. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26551. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26552. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26553. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26554. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26555. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26556. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26557. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26558. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26559. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26560. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26561. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26562. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26563. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26564. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26565. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26566. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26567. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26568. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26569. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26570. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26571. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26572. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26573. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26574. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26575. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26576. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26577. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26578. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26579. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26580. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26581. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26582. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26583. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26584. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26585. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26586. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26587. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26588. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26589. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26590. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26591. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26592. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26593. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26594. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26595. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26596. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26597. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26598. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26599. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26600. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26601. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26602. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26603. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26604. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26605. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26606. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26607. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26608. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26609. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26610. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26611. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26612. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26613. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26614. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26615. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26616. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26617. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26618. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26619. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26620. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26621. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26622. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26623. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26624. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26625. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26626. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26627. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26628. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26629. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26630. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26631. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26632. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26633. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26634. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26635. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26636. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26637. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26638. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26639. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26640. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26641. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26642. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26643. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26644. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26645. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26646. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26647. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26648. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26649. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26650. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26651. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26652. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26653. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26654. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26655. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26656. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26657. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26658. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26659. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26660. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26661. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26662. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26663. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26664. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26665. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26666. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26667. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26668. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26669. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26670. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26671. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26672. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26673. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26674. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26675. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26676. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26677. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26678. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26679. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26680. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26681. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26682. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26683. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26684. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26685. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26686. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26687. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26688. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26689. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26690. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26691. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26692. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26693. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26694. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26695. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26696. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26697. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26698. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26699. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26700. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26701. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26702. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26703. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26704. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26705. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26706. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26707. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26708. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26709. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26710. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26711. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26712. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26713. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26714. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26715. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26716. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26717. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26718. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26719. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26720. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26721. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26722. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26723. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26724. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26725. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26726. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26727. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26728. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26729. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26730. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26731. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26732. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26733. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26734. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26735. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26736. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26737. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26738. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26739. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26740. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26741. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26742. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26743. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26744. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26745. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26746. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26747. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26748. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26749. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26750. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26751. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26752. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26753. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26754. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26755. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26756. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26757. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26758. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26759. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26760. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26761. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26762. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26763. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26764. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26765. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26766. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26767. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26768. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26769. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26770. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26771. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26772. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26773. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26774. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26775. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26776. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26777. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26778. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26779. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26780. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26781. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26782. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26783. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26784. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26785. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26786. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26787. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26788. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26789. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26790. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26791. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26792. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26793. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26794. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26795. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26796. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26797. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26798. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26799. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26800. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26801. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26802. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26803. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26804. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26805. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26806. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26807. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26808. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26809. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26810. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26811. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26812. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26813. {"HDMI", NULL, "HDMI_DL_HL"},
  26814. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26815. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26816. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26817. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26818. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26819. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26820. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26821. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26822. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26823. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26824. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26825. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26826. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26827. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26828. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26829. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26830. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26831. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26832. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26833. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26834. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26835. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26836. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26837. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26838. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26839. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26840. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26841. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26842. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26843. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26844. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26845. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26846. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26847. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26848. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26849. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26850. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26851. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26852. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26853. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26854. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26855. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26856. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26857. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26858. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26859. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26860. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26861. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26862. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26863. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26864. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26865. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26866. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26867. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26868. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26869. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26870. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26871. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26872. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26873. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26874. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26875. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26876. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26877. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26878. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26879. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26880. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26881. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26882. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26883. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26884. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26885. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26886. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26887. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26888. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26889. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26890. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26891. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26892. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26893. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26894. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26895. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26896. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26897. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26898. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26899. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26900. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26901. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26902. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26903. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26904. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26905. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26906. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26907. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26908. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26909. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26910. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26911. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26912. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26913. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26914. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26915. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26916. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26917. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26918. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26919. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26920. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26921. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26922. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26923. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26924. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26925. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26926. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26927. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26928. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26929. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26930. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26931. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26932. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26933. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26934. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26935. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26936. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26937. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26938. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26939. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26940. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26941. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26942. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26943. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26944. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26945. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26946. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26947. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26948. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26949. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26950. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26951. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26952. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26953. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26954. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26955. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26956. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26957. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26958. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26959. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26960. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26961. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26962. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26963. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26964. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26965. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26966. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26967. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26968. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26969. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26970. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26971. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26972. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26973. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26974. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26975. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26976. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26977. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26978. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26979. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26980. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26981. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26982. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26983. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26984. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26985. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26986. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26987. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26988. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26989. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26990. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26991. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26992. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26993. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26994. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26995. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26996. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26997. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26998. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26999. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27000. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27001. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27002. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27003. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27004. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27005. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27006. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27007. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27008. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27009. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27010. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27011. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27012. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27013. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27014. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27015. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27016. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27017. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27018. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27019. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27020. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27021. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27022. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27023. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27024. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27025. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27026. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27027. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27028. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27029. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27030. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27031. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27032. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27033. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27034. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27035. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27036. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27037. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27038. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27039. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27040. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27041. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27042. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27043. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27044. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27045. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27046. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27047. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27048. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27049. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27050. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27051. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27052. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27053. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27054. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27055. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27056. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27057. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27058. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27059. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27060. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27061. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27062. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27063. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27064. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27065. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27066. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27067. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27068. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27069. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27070. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27071. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27072. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27073. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27074. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27075. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27076. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27077. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27078. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27079. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27080. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27081. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27082. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27083. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27084. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27085. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27086. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27087. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27088. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27089. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27090. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27091. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27092. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27093. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27094. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27095. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27096. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27097. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27098. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27099. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27100. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27101. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27102. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27103. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27104. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27105. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27106. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27107. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27108. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27109. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27110. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27111. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27112. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27113. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27114. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27115. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27116. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27117. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27118. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27119. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27120. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27121. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27122. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27123. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27124. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27125. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27126. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27127. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27128. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27129. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27130. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27131. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27132. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27133. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27134. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27135. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27136. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27137. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27138. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27139. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27140. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27141. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27142. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27143. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27144. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27145. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27146. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27147. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27148. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27149. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27150. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27151. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27152. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27153. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27154. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27155. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27156. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27157. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27158. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27159. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27160. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27161. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27162. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27163. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27164. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27165. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27166. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27167. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27168. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27169. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27170. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27171. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27172. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27173. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27174. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27175. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27176. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27177. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27178. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27179. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27180. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27181. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27182. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27183. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27184. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27185. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27186. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27187. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27188. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27189. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27190. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27191. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27192. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27193. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27194. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27195. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27196. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27197. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27198. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27199. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27200. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27201. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27202. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27203. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27204. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27205. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27206. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27207. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27208. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27209. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27210. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27211. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27212. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27213. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27214. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27215. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27216. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27217. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27218. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27219. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27220. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27221. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27222. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27223. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27224. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27225. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27226. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27227. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27228. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27229. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27230. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27231. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27232. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27233. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27234. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27235. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27236. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27237. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27238. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27239. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27240. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27241. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27242. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27243. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27244. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27245. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27246. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27247. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27248. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27249. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27250. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27251. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27252. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27253. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27254. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27255. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27256. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27257. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27258. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27259. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27260. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27261. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27262. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27263. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27264. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27265. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27266. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27267. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27268. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27269. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27270. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27271. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27272. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27273. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27274. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27275. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27276. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27277. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27278. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27279. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27280. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27281. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27282. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27283. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27284. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27285. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27286. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27287. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27288. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27289. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27290. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27291. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27292. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27293. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27294. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27295. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27296. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27297. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27298. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27299. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27300. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27301. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27302. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27303. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27304. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27305. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27306. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27307. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27308. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27309. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27310. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27311. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27312. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27313. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27314. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27315. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27316. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27317. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27318. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27319. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27320. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27321. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27322. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27323. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27324. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27325. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27326. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27327. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27328. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27329. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27330. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27331. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27332. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27333. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27334. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27335. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27336. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27337. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27338. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27339. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27340. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27341. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27342. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27343. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27344. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27345. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27346. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27347. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27348. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27349. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27350. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27351. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27352. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27353. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27354. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27355. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27356. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27357. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27358. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27359. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27360. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27361. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27362. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27363. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27364. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27365. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27366. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27367. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27368. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27369. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27370. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27371. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27372. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27373. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27374. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27375. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27376. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27377. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27378. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27379. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27380. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27381. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27382. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27383. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27384. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27385. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27386. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27387. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27388. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27389. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27390. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27391. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27392. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27393. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27394. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27395. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27396. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27397. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27398. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27399. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27400. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27401. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27402. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27403. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27404. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27405. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27406. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27407. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27408. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27409. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27410. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27411. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27412. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27413. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27414. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27415. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27416. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27417. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27418. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27419. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27420. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27421. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27422. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27423. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27424. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27425. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27426. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27427. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27428. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27429. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27430. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27431. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27432. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27433. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27434. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27435. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27436. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27437. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27438. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27439. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27440. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27441. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27442. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27443. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27444. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27445. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27446. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27447. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27448. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27449. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27450. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27451. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27452. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27453. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27454. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27455. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27456. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27457. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27458. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27459. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27460. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27461. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27462. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27463. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27464. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27465. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27466. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27467. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27468. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27469. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27470. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27471. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27472. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27473. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27474. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27475. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27476. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27477. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27478. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27479. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27480. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27481. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27482. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27483. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27484. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27485. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27486. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27487. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27488. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27489. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27490. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27491. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27492. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27493. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27494. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27495. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27496. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27497. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27498. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27499. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27500. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27501. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27502. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27503. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27504. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27505. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27506. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27507. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27508. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27509. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27510. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27511. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27512. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27513. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27514. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27515. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27516. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27517. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27518. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27519. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27520. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27521. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27522. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27523. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27524. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27525. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27526. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27527. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27528. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27529. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27530. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27531. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27532. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27533. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27534. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27535. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27536. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27537. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27538. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27539. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27540. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27541. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27542. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27543. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27544. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27545. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27546. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27547. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27548. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27549. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27550. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27551. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27552. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27553. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27554. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27555. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27556. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27557. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27558. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27559. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27560. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27561. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27562. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27563. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27564. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27565. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27566. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27567. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27568. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27569. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27570. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27571. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27572. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27573. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27574. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27575. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27576. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27577. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27578. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27579. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27580. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27581. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27582. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27583. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27584. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27585. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27586. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27587. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27588. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27589. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27590. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27591. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27592. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27593. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27594. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27595. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27596. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27597. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27598. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27599. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27600. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27601. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27602. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27603. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27604. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27605. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27606. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27607. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27608. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27609. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27610. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27611. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27612. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27613. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27614. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27615. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27616. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27617. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27618. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27619. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27620. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27621. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27622. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27623. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27624. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27625. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27626. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27627. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27628. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27629. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27630. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27631. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27632. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27633. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27634. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27635. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27636. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27637. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27638. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27639. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27640. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27641. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27642. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27643. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27644. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27645. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27646. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27647. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27648. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27649. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27650. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27651. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27652. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27653. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27654. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27655. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27656. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27657. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27658. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27659. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27660. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27661. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27662. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27663. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27664. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27665. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27666. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27667. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27668. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27669. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27670. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27671. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27672. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27673. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27674. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27675. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27676. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27677. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27678. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27679. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27680. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27681. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27682. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27683. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27684. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27685. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27686. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27687. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27688. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27689. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27690. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27691. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27692. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27693. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27694. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27695. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27696. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27697. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27698. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27699. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27700. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27701. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27702. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27703. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27704. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27705. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27706. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27707. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27708. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27709. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27710. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27711. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27712. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27713. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27714. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27715. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27716. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27717. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27718. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27719. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27720. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27721. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27722. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27723. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27724. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27725. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27726. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27727. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27728. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27729. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27730. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27731. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27732. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27733. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27734. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27735. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27736. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27737. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27738. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27739. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27740. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27741. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27742. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27743. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27744. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27745. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27746. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27747. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27748. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27749. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27750. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27751. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27752. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27753. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27754. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27755. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27756. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27757. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27758. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27759. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27760. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27761. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27762. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27763. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27764. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27765. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27766. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27767. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27768. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27769. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27770. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27771. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27772. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27773. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27774. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27775. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27776. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27777. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27778. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27779. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27780. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27781. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27782. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27783. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27784. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27785. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27786. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27787. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27788. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27789. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27790. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27791. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27792. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27793. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27794. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27795. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27796. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27797. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27798. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27799. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27800. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27801. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27802. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27803. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27804. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27805. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27806. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27807. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27808. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27809. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27810. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27811. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27812. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27813. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27814. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27815. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27816. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27817. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27818. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27819. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27820. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27821. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27822. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27823. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27824. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27825. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27826. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27827. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27828. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27829. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27830. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27831. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27832. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27833. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27834. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27835. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27836. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27837. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27838. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27839. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27840. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27841. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27842. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27843. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27844. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27845. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27846. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27847. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27848. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27849. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27850. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27851. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27852. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27853. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27854. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27855. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27856. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27857. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27858. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27859. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27860. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27861. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27862. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27863. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27864. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27865. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27866. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27867. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27868. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27869. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27870. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27871. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27872. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27873. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27874. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27875. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27876. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27877. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27878. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27879. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27880. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27881. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27882. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27883. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27884. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27885. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27886. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27887. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27888. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27889. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27890. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27891. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27892. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27893. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27894. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27895. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27896. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27897. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27898. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27899. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27900. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27901. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27902. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27903. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27904. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27905. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27906. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27907. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27908. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27909. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27910. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27911. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27912. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27913. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27914. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27915. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27916. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27917. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27918. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27919. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27920. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27921. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27922. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27923. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27924. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27925. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27926. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27927. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27928. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27929. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27930. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27931. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27932. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27933. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27934. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27935. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27936. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27937. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27938. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27939. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27940. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27941. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27942. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27943. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27944. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27945. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27946. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27947. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27948. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27949. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27950. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27951. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27952. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27953. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27954. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27955. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27956. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27957. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27958. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27959. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27960. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27961. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27962. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27963. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27964. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27965. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27966. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27967. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27968. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27969. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27970. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27971. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27972. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27973. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27974. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27975. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27976. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27977. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27978. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27979. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27980. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27981. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  27982. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27983. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27984. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27985. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27986. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27987. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27988. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27989. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27990. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27991. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27992. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27993. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27994. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  27995. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27996. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27997. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27998. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27999. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28000. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28001. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28002. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28003. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28004. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28005. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28006. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28007. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28008. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28009. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28010. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28011. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28012. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28013. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28014. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28015. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28016. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28017. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28018. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28019. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28020. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28021. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28022. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28023. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28024. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28025. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28026. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28027. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28028. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28029. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28030. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28031. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28032. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28033. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28034. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28035. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28036. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28037. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28038. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28039. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28040. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28041. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28042. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28043. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28044. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28045. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28046. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28047. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28048. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28049. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28050. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28051. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28052. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28053. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28054. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28055. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28056. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28057. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28058. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28059. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28060. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28061. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28062. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28063. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28064. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28065. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28066. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28067. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28068. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28069. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28070. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28071. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28072. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28073. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28074. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28075. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28076. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28077. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28078. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28079. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28080. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28081. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28082. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28083. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28084. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28085. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28086. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28087. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28088. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28089. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28090. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28091. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28092. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28093. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28094. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28095. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28096. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28097. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28098. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28099. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28100. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28101. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28102. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28103. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28104. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28105. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28106. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28107. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28108. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28109. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28110. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28111. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28112. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28113. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28114. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28115. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28116. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28117. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28118. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28119. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28120. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28121. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28122. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28123. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28124. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28125. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28126. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28127. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28128. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28129. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28130. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28131. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28132. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28133. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28134. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28135. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28136. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28137. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28138. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28139. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28140. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28141. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28142. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28143. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28144. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28145. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28146. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28147. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28148. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28149. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28150. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28151. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28152. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28153. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28154. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28155. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28156. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28157. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28158. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28159. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28160. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28161. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28162. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28163. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28164. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28165. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28166. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28167. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28168. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28169. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28170. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28171. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28172. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28173. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28174. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28175. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28176. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28177. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28178. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28179. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28180. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28181. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28182. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28183. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28184. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28185. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28186. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28187. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28188. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28189. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28190. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28191. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28192. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28193. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28194. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28195. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28196. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28197. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28198. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28199. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28200. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28201. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28202. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28203. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28204. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28205. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28206. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28207. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28208. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28209. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28210. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28211. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28212. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28213. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28214. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28215. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28216. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28217. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28218. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28219. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28220. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28221. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28222. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28223. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28224. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28225. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28226. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28227. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28228. /* Backend Enablement */
  28229. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28230. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28231. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28232. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28233. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28234. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28235. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28236. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28237. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28238. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28239. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28240. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28241. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28242. {"BE_OUT", NULL, "HDMI"},
  28243. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28244. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28245. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28246. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28247. {"BE_OUT", NULL, "MI2S_RX"},
  28248. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28249. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28250. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28251. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28252. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28253. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28254. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28255. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28256. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28257. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28258. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28259. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28260. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28261. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28262. {"BE_OUT", NULL, "INT_FM_RX"},
  28263. {"BE_OUT", NULL, "PCM_RX"},
  28264. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28265. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28266. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28267. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28268. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28269. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28270. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28271. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28272. {"BE_OUT", NULL, "INT_FM_RX"},
  28273. {"BE_OUT", NULL, "PCM_RX"},
  28274. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28275. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28276. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28277. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28278. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28279. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28280. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28281. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28282. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28283. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28284. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28285. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28286. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28287. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28288. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28289. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28290. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28291. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28292. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28293. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28294. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28295. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28296. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28297. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28298. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28299. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28300. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28301. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28302. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28303. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28304. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28305. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28306. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28307. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28308. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28309. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28310. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28311. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28312. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28313. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28314. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28315. {"PRI_I2S_TX", NULL, "BE_IN"},
  28316. {"MI2S_TX", NULL, "BE_IN"},
  28317. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28318. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28319. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28320. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28321. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28322. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28323. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28324. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28325. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28326. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28327. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28328. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28329. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28330. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28331. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28332. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28333. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28334. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28335. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28336. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28337. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28338. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28339. {"INT_FM_TX", NULL, "BE_IN"},
  28340. {"PCM_TX", NULL, "BE_IN"},
  28341. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28342. {"BE_OUT", NULL, "STUB_RX"},
  28343. {"STUB_TX", NULL, "BE_IN"},
  28344. {"STUB_1_TX", NULL, "BE_IN"},
  28345. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28346. {"AUX_PCM_TX", NULL, "BE_IN"},
  28347. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28348. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28349. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28350. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28351. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28352. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28353. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28354. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28355. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28356. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28357. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28358. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28359. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28360. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28361. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28362. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28363. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28364. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28365. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28366. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28367. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28368. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28369. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28370. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28371. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28372. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28373. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28374. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28375. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28376. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28377. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28378. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28379. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28380. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28381. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28382. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28383. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28384. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28385. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28386. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28387. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28388. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28389. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28390. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28391. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28392. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28393. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28394. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28395. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28396. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28397. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28398. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28399. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28400. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28401. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28402. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28403. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28404. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28405. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28406. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28407. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28408. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28409. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28410. };
  28411. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28412. struct snd_pcm_hw_params *params)
  28413. {
  28414. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28415. unsigned int be_id = rtd->dai_link->id;
  28416. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28417. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28418. return -EINVAL;
  28419. }
  28420. mutex_lock(&routing_lock);
  28421. msm_bedais[be_id].sample_rate = params_rate(params);
  28422. msm_bedais[be_id].channel = params_channels(params);
  28423. msm_bedais[be_id].format = params_format(params);
  28424. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28425. __func__, msm_bedais[be_id].sample_rate,
  28426. msm_bedais[be_id].format, be_id);
  28427. mutex_unlock(&routing_lock);
  28428. return 0;
  28429. }
  28430. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28431. {
  28432. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28433. unsigned int be_id = rtd->dai_link->id;
  28434. int i, session_type, path_type, topology;
  28435. struct msm_pcm_routing_bdai_data *bedai;
  28436. struct msm_pcm_routing_fdai_data *fdai;
  28437. pr_debug("%s: substream->pcm->id:%s\n",
  28438. __func__, substream->pcm->id);
  28439. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28440. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28441. return -EINVAL;
  28442. }
  28443. bedai = &msm_bedais[be_id];
  28444. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28445. 0 : 1);
  28446. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28447. path_type = ADM_PATH_PLAYBACK;
  28448. else
  28449. path_type = ADM_PATH_LIVE_REC;
  28450. mutex_lock(&routing_lock);
  28451. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28452. if (!is_mm_lsm_fe_id(i))
  28453. continue;
  28454. fdai = &fe_dai_map[i][session_type];
  28455. if (fdai->strm_id != INVALID_SESSION) {
  28456. int idx;
  28457. int port_id;
  28458. unsigned long copp =
  28459. session_copp_map[i][session_type][be_id];
  28460. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28461. if (test_bit(idx, &copp))
  28462. break;
  28463. if (idx >= MAX_COPPS_PER_PORT) {
  28464. pr_debug("%s: copp idx is invalid, exiting\n",
  28465. __func__);
  28466. continue;
  28467. }
  28468. fdai->be_srate = bedai->sample_rate;
  28469. port_id = get_port_id(bedai->port_id);
  28470. topology = adm_get_topology_for_port_copp_idx(port_id,
  28471. idx);
  28472. msm_routing_unload_topology(topology);
  28473. adm_close(port_id, fdai->perf_mode, idx);
  28474. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28475. __func__, copp, i, session_type, be_id,
  28476. topology);
  28477. clear_bit(idx,
  28478. &session_copp_map[i][session_type][be_id]);
  28479. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28480. (fdai->passthr_mode == LEGACY_PCM))
  28481. msm_pcm_routing_deinit_pp(port_id,
  28482. topology);
  28483. }
  28484. }
  28485. bedai->active = 0;
  28486. bedai->sample_rate = 0;
  28487. bedai->channel = 0;
  28488. mutex_unlock(&routing_lock);
  28489. return 0;
  28490. }
  28491. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28492. {
  28493. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28494. unsigned int be_id = rtd->dai_link->id;
  28495. int i, path_type, topology;
  28496. int session_type = INVALID_SESSION;
  28497. struct msm_pcm_routing_bdai_data *bedai;
  28498. u32 channels, sample_rate;
  28499. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28500. struct msm_pcm_routing_fdai_data *fdai;
  28501. u32 session_id;
  28502. struct media_format_info voc_be_media_format;
  28503. bool is_lsm;
  28504. pr_debug("%s: substream->pcm->id:%s\n",
  28505. __func__, substream->pcm->id);
  28506. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28507. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28508. return -EINVAL;
  28509. }
  28510. bedai = &msm_bedais[be_id];
  28511. mutex_lock(&routing_lock);
  28512. if (bedai->active == 1)
  28513. goto done; /* Ignore prepare if back-end already active */
  28514. /* AFE port is not active at this point. However, still
  28515. * go ahead setting active flag under the notion that
  28516. * QDSP6 is able to handle ADM starting before AFE port
  28517. * is started.
  28518. */
  28519. bedai->active = 1;
  28520. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28521. if (!(is_mm_lsm_fe_id(i) &&
  28522. route_check_fe_id_adm_support(i)))
  28523. continue;
  28524. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28525. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28526. fdai = &fe_dai_map[i][session_type];
  28527. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28528. if (fdai->passthr_mode != LEGACY_PCM)
  28529. path_type = ADM_PATH_COMPRESSED_RX;
  28530. else
  28531. path_type = ADM_PATH_PLAYBACK;
  28532. } else {
  28533. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28534. (fdai->passthr_mode != LISTEN))
  28535. path_type = ADM_PATH_COMPRESSED_TX;
  28536. else
  28537. path_type = ADM_PATH_LIVE_REC;
  28538. }
  28539. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28540. (i <= MSM_FRONTEND_DAI_LSM8);
  28541. if (fdai->strm_id != INVALID_SESSION) {
  28542. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28543. int port_id = get_port_id(bedai->port_id);
  28544. if (session_type == SESSION_TYPE_TX &&
  28545. fdai->be_srate &&
  28546. (fdai->be_srate != bedai->sample_rate)) {
  28547. pr_debug("%s: flush strm %d diff BE rates\n",
  28548. __func__,
  28549. fdai->strm_id);
  28550. if (fdai->event_info.event_func)
  28551. fdai->event_info.event_func(
  28552. MSM_PCM_RT_EVT_BUF_RECFG,
  28553. fdai->event_info.priv_data);
  28554. fdai->be_srate = 0; /* might not need it */
  28555. }
  28556. bits_per_sample = msm_routing_get_bit_width(
  28557. bedai->format);
  28558. app_type =
  28559. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28560. if (app_type && is_lsm) {
  28561. app_type_idx =
  28562. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28563. sample_rate =
  28564. fe_dai_app_type_cfg[i][session_type][be_id]
  28565. .sample_rate;
  28566. bits_per_sample =
  28567. lsm_app_type_cfg[app_type_idx].bit_width;
  28568. } else if (app_type) {
  28569. app_type_idx =
  28570. msm_pcm_routing_get_app_type_idx(app_type);
  28571. sample_rate =
  28572. fe_dai_app_type_cfg[i][session_type]
  28573. [be_id].sample_rate;
  28574. bits_per_sample =
  28575. app_type_cfg[app_type_idx].bit_width;
  28576. } else
  28577. sample_rate = bedai->sample_rate;
  28578. /*
  28579. * check if ADM needs to be configured with different
  28580. * channel mapping than backend
  28581. */
  28582. if (!bedai->adm_override_ch)
  28583. channels = bedai->channel;
  28584. else
  28585. channels = bedai->adm_override_ch;
  28586. acdb_dev_id =
  28587. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28588. topology = msm_routing_get_adm_topology(i, session_type,
  28589. be_id);
  28590. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28591. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28592. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28593. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28594. be_bit_width = msm_routing_get_bit_width(
  28595. bedai->format);
  28596. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28597. || bedai->sample_rate == 352800) &&
  28598. be_bit_width == 32)
  28599. bits_per_sample = msm_routing_get_bit_width(
  28600. SNDRV_PCM_FORMAT_S32_LE);
  28601. copp_idx = adm_open(port_id, path_type,
  28602. sample_rate, channels, topology,
  28603. fdai->perf_mode, bits_per_sample,
  28604. app_type, acdb_dev_id,
  28605. session_type);
  28606. if ((copp_idx < 0) ||
  28607. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28608. pr_err("%s: adm open failed\n", __func__);
  28609. mutex_unlock(&routing_lock);
  28610. return -EINVAL;
  28611. }
  28612. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28613. __func__, i, session_type, be_id);
  28614. set_bit(copp_idx,
  28615. &session_copp_map[i][session_type][be_id]);
  28616. if (msm_is_resample_needed(
  28617. sample_rate,
  28618. bedai->sample_rate))
  28619. adm_copp_mfc_cfg(port_id, copp_idx,
  28620. bedai->sample_rate);
  28621. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28622. fdai->perf_mode, fdai->passthr_mode);
  28623. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28624. (fdai->passthr_mode == LEGACY_PCM))
  28625. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28626. topology, channels);
  28627. }
  28628. }
  28629. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28630. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28631. if (session_id) {
  28632. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28633. session_id);
  28634. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28635. voc_path_type = RX_PATH;
  28636. else
  28637. voc_path_type = TX_PATH;
  28638. voc_set_route_flag(session_id, voc_path_type, 1);
  28639. memset(&voc_be_media_format, 0,
  28640. sizeof(struct media_format_info));
  28641. voc_be_media_format.port_id = bedai->port_id;
  28642. voc_be_media_format.num_channels = bedai->channel;
  28643. voc_be_media_format.sample_rate = bedai->sample_rate;
  28644. voc_be_media_format.bits_per_sample = bedai->format;
  28645. /* Defaulting this to 1 for voice call usecases */
  28646. voc_be_media_format.channel_mapping[0] = 1;
  28647. voc_set_device_config(session_id, voc_path_type,
  28648. &voc_be_media_format);
  28649. if (voc_get_route_flag(session_id, RX_PATH) &&
  28650. voc_get_route_flag(session_id, TX_PATH))
  28651. voc_enable_device(session_id);
  28652. }
  28653. }
  28654. /* Check if backend is an external ec ref port and set as needed */
  28655. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28656. memset(&voc_be_media_format, 0,
  28657. sizeof(struct media_format_info));
  28658. /* Get format info for ec ref port from msm_bedais[] */
  28659. voc_be_media_format.port_id = bedai->port_id;
  28660. voc_be_media_format.num_channels = bedai->channel;
  28661. voc_be_media_format.bits_per_sample = bedai->format;
  28662. voc_be_media_format.sample_rate = bedai->sample_rate;
  28663. /* Defaulting this to 1 for voice call usecases */
  28664. voc_be_media_format.channel_mapping[0] = 1;
  28665. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28666. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28667. __func__, voc_be_media_format.port_id,
  28668. voc_be_media_format.num_channels,
  28669. voc_be_media_format.bits_per_sample,
  28670. voc_be_media_format.sample_rate);
  28671. }
  28672. done:
  28673. mutex_unlock(&routing_lock);
  28674. return 0;
  28675. }
  28676. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28677. int fe_id)
  28678. {
  28679. int index, topo_id, be_idx;
  28680. unsigned long pp_config = 0;
  28681. bool mute_on;
  28682. int latency, session_type;
  28683. bool compr_passthr_mode = true;
  28684. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28685. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28686. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  28687. __func__, port_id, copp_idx, fe_id);
  28688. return -EINVAL;
  28689. }
  28690. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28691. if (port_id == msm_bedais[be_idx].port_id)
  28692. break;
  28693. }
  28694. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28695. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28696. return -EINVAL;
  28697. }
  28698. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28699. if (msm_bedais_pp_params[index].port_id == port_id)
  28700. break;
  28701. }
  28702. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28703. pr_err("%s: Invalid backend pp params index %d\n",
  28704. __func__, index);
  28705. return -EINVAL;
  28706. }
  28707. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28708. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28709. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28710. __func__, topo_id);
  28711. return -EINVAL;
  28712. }
  28713. session_type =
  28714. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28715. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28716. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28717. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28718. compr_passthr_mode = false;
  28719. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28720. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28721. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28722. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28723. mute_on = msm_bedais_pp_params[index].mute_on;
  28724. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28725. adm_send_compressed_device_mute(port_id,
  28726. copp_idx,
  28727. mute_on);
  28728. }
  28729. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28730. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28731. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28732. &pp_config);
  28733. latency = msm_bedais_pp_params[index].latency;
  28734. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28735. adm_send_compressed_device_latency(port_id,
  28736. copp_idx,
  28737. latency);
  28738. }
  28739. return 0;
  28740. }
  28741. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28742. {
  28743. uint32_t topology = NULL_COPP_TOPOLOGY;
  28744. void *cal_info = NULL;
  28745. uint32_t size = 0;
  28746. /* Retrieve cal_info size from cal data*/
  28747. if (data_size < sizeof(struct audio_cal_type_basic) +
  28748. sizeof(struct audio_cal_info_adm_top)) {
  28749. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28750. goto done;
  28751. }
  28752. size = data_size - sizeof(struct audio_cal_type_basic);
  28753. cal_info = kzalloc(size, GFP_KERNEL);
  28754. if (!cal_info)
  28755. goto done;
  28756. memcpy(cal_info,
  28757. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28758. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28759. kfree(cal_info);
  28760. cal_info = NULL;
  28761. done:
  28762. pr_debug("%s: Using topology %d\n", __func__, topology);
  28763. return topology;
  28764. }
  28765. static void msm_routing_load_topology(size_t data_size, void *data)
  28766. {
  28767. uint32_t topology_id;
  28768. int ret = -EINVAL;
  28769. topology_id = msm_routing_get_topology(data_size, data);
  28770. if (topology_id != NULL_COPP_TOPOLOGY)
  28771. ret = q6core_load_unload_topo_modules(topology_id,
  28772. CORE_LOAD_TOPOLOGY);
  28773. if (ret < 0)
  28774. pr_debug("%s %d load topology failed\n",
  28775. __func__, topology_id);
  28776. }
  28777. static void msm_routing_unload_topology(uint32_t topology_id)
  28778. {
  28779. int ret = -EINVAL;
  28780. if (topology_id != NULL_COPP_TOPOLOGY)
  28781. ret = q6core_load_unload_topo_modules(topology_id,
  28782. CORE_UNLOAD_TOPOLOGY);
  28783. if (ret < 0)
  28784. pr_debug("%s %d unload topology failed\n",
  28785. __func__, topology_id);
  28786. }
  28787. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28788. struct snd_ctl_elem_value *ucontrol)
  28789. {
  28790. int pp_id = ucontrol->value.integer.value[0];
  28791. int port_id = 0;
  28792. int index, be_idx, i, topo_id, idx;
  28793. bool mute;
  28794. int latency, session_type;
  28795. bool compr_passthr_mode = true;
  28796. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28797. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28798. port_id = msm_bedais[be_idx].port_id;
  28799. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28800. break;
  28801. }
  28802. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28803. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28804. return -EINVAL;
  28805. }
  28806. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28807. if (msm_bedais_pp_params[index].port_id == port_id)
  28808. break;
  28809. }
  28810. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28811. pr_err("%s: Invalid pp params backend index %d\n",
  28812. __func__, index);
  28813. return -EINVAL;
  28814. }
  28815. session_type =
  28816. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28817. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28818. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28819. MSM_FRONTEND_DAI_MM_SIZE) {
  28820. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28821. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28822. compr_passthr_mode = false;
  28823. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28824. unsigned long copp =
  28825. session_copp_map[i]
  28826. [SESSION_TYPE_RX][be_idx];
  28827. if (!test_bit(idx, &copp))
  28828. continue;
  28829. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28830. idx);
  28831. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28832. continue;
  28833. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28834. __func__, port_id, copp, msm_bedais[be_idx].active,
  28835. fe_dai_map[i][session_type].passthr_mode);
  28836. switch (pp_id) {
  28837. case ADM_PP_PARAM_MUTE_ID:
  28838. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28839. mute = ucontrol->value.integer.value[1] ? true : false;
  28840. msm_bedais_pp_params[index].mute_on = mute;
  28841. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28842. &msm_bedais_pp_params[index].pp_params_config);
  28843. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28844. adm_send_compressed_device_mute(port_id,
  28845. idx, mute);
  28846. break;
  28847. case ADM_PP_PARAM_LATENCY_ID:
  28848. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28849. msm_bedais_pp_params[index].latency =
  28850. ucontrol->value.integer.value[1];
  28851. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28852. &msm_bedais_pp_params[index].pp_params_config);
  28853. latency = msm_bedais_pp_params[index].latency =
  28854. ucontrol->value.integer.value[1];
  28855. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28856. adm_send_compressed_device_latency(port_id,
  28857. idx, latency);
  28858. break;
  28859. default:
  28860. pr_info("%s, device pp param %d not supported\n",
  28861. __func__, pp_id);
  28862. break;
  28863. }
  28864. }
  28865. }
  28866. return 0;
  28867. }
  28868. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28869. struct snd_ctl_elem_value *ucontrol)
  28870. {
  28871. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28872. return 0;
  28873. }
  28874. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28875. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28876. 0, 3, msm_routing_get_device_pp_params_mixer,
  28877. msm_routing_put_device_pp_params_mixer),
  28878. };
  28879. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28880. struct snd_ctl_elem_value *ucontrol)
  28881. {
  28882. ucontrol->value.integer.value[0] =
  28883. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28884. pr_debug("%s: status %ld\n", __func__,
  28885. ucontrol->value.integer.value[0]);
  28886. return 0;
  28887. }
  28888. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28889. struct snd_ctl_elem_value *ucontrol)
  28890. {
  28891. int32_t status = 0;
  28892. status = core_set_license(ucontrol->value.integer.value[0],
  28893. APTX_CLASSIC_DEC_LICENSE_ID);
  28894. pr_debug("%s: status %d\n", __func__, status);
  28895. return status;
  28896. }
  28897. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28898. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28899. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28900. msm_aptx_dec_license_control_put),
  28901. };
  28902. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28903. struct snd_ctl_elem_value *ucontrol)
  28904. {
  28905. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28906. uint32_t be_idx = ucontrol->value.integer.value[0];
  28907. int i;
  28908. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28909. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28910. return -EINVAL;
  28911. }
  28912. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28913. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28914. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28915. pr_err("%s: Invalid channel map %d\n",
  28916. __func__, channel_map[i]);
  28917. return -EINVAL;
  28918. }
  28919. }
  28920. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28921. return 0;
  28922. }
  28923. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28924. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28925. MSM_BACKEND_DAI_MAX, 0,
  28926. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28927. msm_routing_put_port_chmap_mixer),
  28928. };
  28929. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28930. struct snd_ctl_elem_info *uinfo)
  28931. {
  28932. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  28933. uinfo->count = sizeof(be_dai_name_table);
  28934. return 0;
  28935. }
  28936. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  28937. unsigned int __user *bytes,
  28938. unsigned int size)
  28939. {
  28940. int i;
  28941. int ret = 0;
  28942. if (size < sizeof(be_dai_name_table)) {
  28943. pr_err("%s: invalid size %d requested, returning\n",
  28944. __func__, size);
  28945. ret = -EINVAL;
  28946. goto done;
  28947. }
  28948. /*
  28949. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  28950. * needed when adding new backends
  28951. */
  28952. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28953. be_dai_name_table[i].be_id = i;
  28954. strlcpy(be_dai_name_table[i].be_name,
  28955. msm_bedais[i].name,
  28956. LPASS_BE_NAME_MAX_LENGTH);
  28957. }
  28958. ret = copy_to_user(bytes, &be_dai_name_table,
  28959. sizeof(be_dai_name_table));
  28960. if (ret) {
  28961. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  28962. ret = -EFAULT;
  28963. }
  28964. done:
  28965. return ret;
  28966. }
  28967. static const struct snd_kcontrol_new
  28968. msm_routing_be_dai_name_table_mixer_controls[] = {
  28969. {
  28970. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  28971. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  28972. .info = msm_routing_be_dai_name_table_info,
  28973. .name = "Backend DAI Name Table",
  28974. .tlv.c = snd_soc_bytes_tlv_callback,
  28975. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  28976. .max = sizeof(be_dai_name_table),
  28977. .get = msm_routing_be_dai_name_table_tlv_get,
  28978. }
  28979. },
  28980. };
  28981. static int msm_routing_stereo_channel_reverse_control_get(
  28982. struct snd_kcontrol *kcontrol,
  28983. struct snd_ctl_elem_value *ucontrol)
  28984. {
  28985. ucontrol->value.integer.value[0] = swap_ch;
  28986. pr_debug("%s: Swap channel value: %ld\n", __func__,
  28987. ucontrol->value.integer.value[0]);
  28988. return 0;
  28989. }
  28990. static int msm_routing_stereo_channel_reverse_control_put(
  28991. struct snd_kcontrol *kcontrol,
  28992. struct snd_ctl_elem_value *ucontrol)
  28993. {
  28994. int i, idx, be_index, port_id;
  28995. int ret = 0;
  28996. unsigned long copp;
  28997. pr_debug("%s Swap channel value:%ld\n", __func__,
  28998. ucontrol->value.integer.value[0]);
  28999. swap_ch = ucontrol->value.integer.value[0];
  29000. mutex_lock(&routing_lock);
  29001. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29002. port_id = msm_bedais[be_index].port_id;
  29003. if (!msm_bedais[be_index].active)
  29004. continue;
  29005. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29006. MSM_FRONTEND_DAI_MM_SIZE) {
  29007. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29008. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29009. if (!test_bit(idx, &copp))
  29010. continue;
  29011. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29012. __func__, port_id, idx);
  29013. ret = adm_swap_speaker_channels(
  29014. port_id, idx,
  29015. msm_bedais[be_index].sample_rate,
  29016. swap_ch);
  29017. if (ret) {
  29018. pr_err("%s:Swap_channel failed, err=%d\n",
  29019. __func__, ret);
  29020. goto done;
  29021. }
  29022. }
  29023. }
  29024. }
  29025. done:
  29026. mutex_unlock(&routing_lock);
  29027. return ret;
  29028. }
  29029. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29030. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29031. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29032. msm_routing_stereo_channel_reverse_control_put),
  29033. };
  29034. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29035. struct snd_ctl_elem_info *uinfo)
  29036. {
  29037. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29038. uinfo->count = 1;
  29039. return 0;
  29040. }
  29041. static int msm_routing_instance_id_support_put(
  29042. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29043. {
  29044. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29045. q6common_update_instance_id_support(supported);
  29046. return 0;
  29047. }
  29048. static int msm_routing_instance_id_support_get(
  29049. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29050. {
  29051. bool supported = false;
  29052. supported = q6common_is_instance_id_supported();
  29053. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29054. return 0;
  29055. }
  29056. static const struct snd_kcontrol_new
  29057. msm_routing_feature_support_mixer_controls[] = {
  29058. {
  29059. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29060. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29061. .info = msm_routing_instance_id_support_info,
  29062. .name = "Instance ID Support",
  29063. .put = msm_routing_instance_id_support_put,
  29064. .get = msm_routing_instance_id_support_get,
  29065. },
  29066. };
  29067. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29068. .hw_params = msm_pcm_routing_hw_params,
  29069. .close = msm_pcm_routing_close,
  29070. .prepare = msm_pcm_routing_prepare,
  29071. };
  29072. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29073. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29074. {
  29075. snd_soc_add_component_controls(component,
  29076. msm_source_doa_tracking_controls,
  29077. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29078. }
  29079. #else
  29080. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29081. {
  29082. return;
  29083. }
  29084. #endif
  29085. /* Not used but frame seems to require it */
  29086. static int msm_routing_probe(struct snd_soc_component *component)
  29087. {
  29088. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29089. ARRAY_SIZE(msm_qdsp6_widgets));
  29090. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29091. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29092. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29093. ARRAY_SIZE(intercon));
  29094. snd_soc_dapm_new_widgets(component->dapm.card);
  29095. snd_soc_add_component_controls(component, lsm_controls,
  29096. ARRAY_SIZE(lsm_controls));
  29097. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29098. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29099. snd_soc_add_component_controls(component, aanc_noise_level,
  29100. ARRAY_SIZE(aanc_noise_level));
  29101. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29102. ARRAY_SIZE(msm_voc_session_controls));
  29103. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29104. ARRAY_SIZE(app_type_cfg_controls));
  29105. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29106. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29107. snd_soc_add_component_controls(component, module_cfg_controls,
  29108. ARRAY_SIZE(module_cfg_controls));
  29109. snd_soc_add_component_controls(component,
  29110. stereo_to_custom_stereo_controls,
  29111. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29112. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29113. ARRAY_SIZE(ec_ref_param_controls));
  29114. snd_soc_add_component_controls(component, channel_mixer_controls,
  29115. ARRAY_SIZE(channel_mixer_controls));
  29116. msm_qti_pp_add_controls(component);
  29117. msm_dts_srs_tm_add_controls(component);
  29118. msm_dolby_dap_add_controls(component);
  29119. snd_soc_add_component_controls(component,
  29120. use_ds1_or_ds2_controls,
  29121. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29122. snd_soc_add_component_controls(component,
  29123. hifi_filter_controls,
  29124. ARRAY_SIZE(hifi_filter_controls));
  29125. snd_soc_add_component_controls(component,
  29126. use_ffecns_freeze_event_controls,
  29127. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29128. snd_soc_add_component_controls(component,
  29129. device_pp_params_mixer_controls,
  29130. ARRAY_SIZE(device_pp_params_mixer_controls));
  29131. snd_soc_add_component_controls(component,
  29132. msm_routing_be_dai_name_table_mixer_controls,
  29133. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29134. /* Add doa control based on config */
  29135. msm_routing_add_doa_control(component);
  29136. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29137. ARRAY_SIZE(msm_source_tracking_controls));
  29138. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29139. ARRAY_SIZE(adm_channel_config_controls));
  29140. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29141. ARRAY_SIZE(aptx_dec_license_controls));
  29142. snd_soc_add_component_controls(component,
  29143. stereo_channel_reverse_control,
  29144. ARRAY_SIZE(stereo_channel_reverse_control));
  29145. snd_soc_add_component_controls(
  29146. component, msm_routing_feature_support_mixer_controls,
  29147. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29148. snd_soc_add_component_controls(component,
  29149. port_multi_channel_map_mixer_controls,
  29150. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29151. return 0;
  29152. }
  29153. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29154. {
  29155. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29156. }
  29157. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29158. {
  29159. msm_pcm_routing_hwdep_free(pcm);
  29160. }
  29161. static struct snd_soc_component_driver msm_soc_routing_component = {
  29162. .name = DRV_NAME,
  29163. .ops = &msm_routing_pcm_ops,
  29164. .probe = msm_routing_probe,
  29165. .pcm_new = msm_routing_pcm_new,
  29166. .pcm_free = msm_routing_pcm_free,
  29167. };
  29168. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29169. {
  29170. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29171. return snd_soc_register_component(&pdev->dev,
  29172. &msm_soc_routing_component,
  29173. NULL, 0);
  29174. }
  29175. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29176. {
  29177. snd_soc_unregister_component(&pdev->dev);
  29178. return 0;
  29179. }
  29180. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29181. {.compatible = "qcom,msm-pcm-routing"},
  29182. {}
  29183. };
  29184. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29185. static struct platform_driver msm_routing_pcm_driver = {
  29186. .driver = {
  29187. .name = "msm-pcm-routing",
  29188. .owner = THIS_MODULE,
  29189. .of_match_table = msm_pcm_routing_dt_match,
  29190. .suppress_bind_attrs = true,
  29191. },
  29192. .probe = msm_routing_pcm_probe,
  29193. .remove = msm_routing_pcm_remove,
  29194. };
  29195. int msm_routing_check_backend_enabled(int fedai_id)
  29196. {
  29197. int i;
  29198. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29199. /* bad ID assigned in machine driver */
  29200. pr_err("%s: bad MM ID\n", __func__);
  29201. return 0;
  29202. }
  29203. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29204. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29205. return msm_bedais[i].active;
  29206. }
  29207. return 0;
  29208. }
  29209. static int get_cal_type_index(int32_t cal_type)
  29210. {
  29211. int ret = -EINVAL;
  29212. switch (cal_type) {
  29213. case ADM_TOPOLOGY_CAL_TYPE:
  29214. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29215. break;
  29216. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29217. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29218. break;
  29219. default:
  29220. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29221. }
  29222. return ret;
  29223. }
  29224. static int msm_routing_set_cal(int32_t cal_type,
  29225. size_t data_size, void *data)
  29226. {
  29227. int ret = 0;
  29228. int cal_index;
  29229. pr_debug("%s\n", __func__);
  29230. cal_index = get_cal_type_index(cal_type);
  29231. if (cal_index < 0) {
  29232. pr_err("%s: Could not get cal index %d\n",
  29233. __func__, cal_index);
  29234. ret = -EINVAL;
  29235. goto done;
  29236. }
  29237. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29238. if (ret < 0) {
  29239. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29240. __func__, ret, cal_type);
  29241. ret = -EINVAL;
  29242. goto done;
  29243. }
  29244. /* Pre-load if it is ADM topology */
  29245. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29246. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29247. msm_routing_load_topology(data_size, data);
  29248. }
  29249. done:
  29250. return ret;
  29251. }
  29252. static void msm_routing_delete_cal_data(void)
  29253. {
  29254. pr_debug("%s\n", __func__);
  29255. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29256. }
  29257. static int msm_routing_init_cal_data(void)
  29258. {
  29259. int ret = 0;
  29260. struct cal_type_info cal_type_info[] = {
  29261. {{ADM_TOPOLOGY_CAL_TYPE,
  29262. {NULL, NULL, NULL,
  29263. msm_routing_set_cal, NULL, NULL} },
  29264. {NULL, NULL, cal_utils_match_buf_num} },
  29265. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29266. {NULL, NULL, NULL,
  29267. msm_routing_set_cal, NULL, NULL} },
  29268. {NULL, NULL, cal_utils_match_buf_num} },
  29269. };
  29270. pr_debug("%s\n", __func__);
  29271. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29272. &cal_type_info[0]);
  29273. if (ret < 0) {
  29274. pr_err("%s: could not create cal type!\n",
  29275. __func__);
  29276. ret = -EINVAL;
  29277. goto err;
  29278. }
  29279. return ret;
  29280. err:
  29281. msm_routing_delete_cal_data();
  29282. return ret;
  29283. }
  29284. int __init msm_soc_routing_platform_init(void)
  29285. {
  29286. mutex_init(&routing_lock);
  29287. if (msm_routing_init_cal_data())
  29288. pr_err("%s: could not init cal data!\n", __func__);
  29289. afe_set_routing_callback(
  29290. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29291. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29292. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29293. return platform_driver_register(&msm_routing_pcm_driver);
  29294. }
  29295. void msm_soc_routing_platform_exit(void)
  29296. {
  29297. msm_routing_delete_cal_data();
  29298. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29299. mutex_destroy(&routing_lock);
  29300. platform_driver_unregister(&msm_routing_pcm_driver);
  29301. }
  29302. MODULE_DESCRIPTION("MSM routing platform driver");
  29303. MODULE_LICENSE("GPL v2");