msm-pcm-routing-v2.c 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static int aanc_level;
  76. static int num_app_cfg_types;
  77. static int msm_ec_ref_port_id;
  78. static int afe_loopback_tx_port_index;
  79. static int afe_loopback_tx_port_id = -1;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* all the FES which can support channel mixer for bidirection */
  84. static struct msm_pcm_channel_mixer
  85. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  86. /* input BE for each FE */
  87. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  88. enum {
  89. MADNONE,
  90. MADAUDIO,
  91. MADBEACON,
  92. MADULTRASOUND,
  93. MADSWAUDIO,
  94. };
  95. #define ADM_LSM_PORT_INDEX 9
  96. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  97. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  98. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  99. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  100. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  101. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  102. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  103. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  104. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  105. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  106. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  107. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  108. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  109. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  110. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  111. #define LSM_FUNCTION_TEXT "LSM Function"
  112. static const char * const lsm_port_text[] = {
  113. "None",
  114. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  115. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  116. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  117. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  118. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  119. };
  120. struct msm_pcm_route_bdai_pp_params {
  121. u16 port_id; /* AFE port ID */
  122. unsigned long pp_params_config;
  123. bool mute_on;
  124. int latency;
  125. };
  126. static struct msm_pcm_route_bdai_pp_params
  127. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  128. {HDMI_RX, 0, 0, 0},
  129. {DISPLAY_PORT_RX, 0, 0, 0},
  130. };
  131. /*
  132. * The be_dai_name_table is passed to HAL so that it can specify the
  133. * BE ID for the BE it wants to enable based on the name. Thus there
  134. * is a matching table and structure in HAL that need to be updated
  135. * if any changes to these are made.
  136. */
  137. struct msm_pcm_route_bdai_name {
  138. unsigned int be_id;
  139. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  140. };
  141. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  142. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  143. int fe_id);
  144. static void msm_routing_load_topology(size_t data_size, void *data);
  145. static void msm_routing_unload_topology(uint32_t topology_id);
  146. static int msm_routing_get_bit_width(unsigned int format)
  147. {
  148. int bit_width;
  149. switch (format) {
  150. case SNDRV_PCM_FORMAT_S32_LE:
  151. bit_width = 32;
  152. break;
  153. case SNDRV_PCM_FORMAT_S24_LE:
  154. case SNDRV_PCM_FORMAT_S24_3LE:
  155. bit_width = 24;
  156. break;
  157. case SNDRV_PCM_FORMAT_S16_LE:
  158. default:
  159. bit_width = 16;
  160. }
  161. return bit_width;
  162. }
  163. static bool msm_is_resample_needed(int input_sr, int output_sr)
  164. {
  165. bool rc = false;
  166. if (input_sr != output_sr)
  167. rc = true;
  168. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  169. (rc ? "oh yes" : "not really"),
  170. input_sr, output_sr);
  171. return rc;
  172. }
  173. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  174. int channels)
  175. {
  176. int rc = 0;
  177. switch (topology) {
  178. case SRS_TRUMEDIA_TOPOLOGY_ID:
  179. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  180. msm_dts_srs_tm_init(port_id, copp_idx);
  181. break;
  182. case DS2_ADM_COPP_TOPOLOGY_ID:
  183. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  184. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  189. __func__, topology, port_id,
  190. is_custom_stereo_on, rc);
  191. break;
  192. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  193. if (is_ds2_on) {
  194. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  195. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. } else {
  201. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  202. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  203. is_custom_stereo_on);
  204. if (rc < 0)
  205. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  206. __func__, topology, port_id, rc);
  207. }
  208. break;
  209. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  210. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  211. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  212. if (rc < 0)
  213. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  214. __func__, topology, port_id, copp_idx, rc);
  215. break;
  216. default:
  217. /* custom topology specific feature param handlers */
  218. break;
  219. }
  220. }
  221. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  222. {
  223. switch (topology) {
  224. case SRS_TRUMEDIA_TOPOLOGY_ID:
  225. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  226. msm_dts_srs_tm_deinit(port_id);
  227. break;
  228. case DS2_ADM_COPP_TOPOLOGY_ID:
  229. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  230. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  231. msm_ds2_dap_deinit(port_id);
  232. break;
  233. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  234. if (is_ds2_on) {
  235. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  236. msm_ds2_dap_deinit(port_id);
  237. } else {
  238. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_dolby_dap_deinit(port_id);
  240. }
  241. break;
  242. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  243. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  244. msm_qti_pp_asphere_deinit(port_id);
  245. break;
  246. default:
  247. /* custom topology specific feature deinit handlers */
  248. break;
  249. }
  250. }
  251. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  252. int path_type, int perf_mode)
  253. {
  254. int itr = 0, rc = 0;
  255. if ((path_type == ADM_PATH_PLAYBACK) &&
  256. (perf_mode == LEGACY_PCM_MODE) &&
  257. is_custom_stereo_on) {
  258. for (itr = 0; itr < payload.num_copps; itr++) {
  259. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  260. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  261. continue;
  262. }
  263. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  264. payload.port_id[itr],
  265. payload.copp_idx[itr],
  266. payload.session_id,
  267. Q14_GAIN_ZERO_POINT_FIVE,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE);
  271. if (rc < 0)
  272. pr_err("%s: err setting custom stereo\n",
  273. __func__);
  274. }
  275. }
  276. }
  277. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  278. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  279. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  280. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  281. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  282. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  283. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  284. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  285. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  286. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  287. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  288. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AFE_PCM_RX},
  290. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AFE_PCM_TX},
  292. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AUXPCM_RX},
  294. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AUXPCM_TX},
  296. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_VOICE_PLAYBACK_TX},
  298. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_VOICE2_PLAYBACK_TX},
  300. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_INCALL_RECORD_RX},
  302. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_INCALL_RECORD_TX},
  304. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  305. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  306. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  307. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  308. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  309. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  310. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  311. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  312. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  313. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  314. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  315. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  316. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  317. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  318. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  319. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  320. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  321. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  322. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  323. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  326. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_QUAT_MI2S_RX},
  328. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_QUAT_MI2S_TX},
  330. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_SEC_MI2S_RX},
  332. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_SEC_MI2S_TX},
  334. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_PRI_MI2S_RX},
  336. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_PRI_MI2S_TX},
  338. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_TERT_MI2S_RX},
  340. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_TERT_MI2S_TX},
  342. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_AUDIO_I2S_RX},
  344. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_SEC_AUXPCM_RX},
  346. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_AUXPCM_TX},
  348. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_PRI_SPDIF_RX},
  350. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_MI2S_RX_SD1},
  352. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_QUIN_MI2S_RX},
  354. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_QUIN_MI2S_TX},
  356. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_SENARY_MI2S_TX},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_0},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_0},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_1},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_1},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_2},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_2},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_3},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_3},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_4},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_4},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_5},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_5},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_6},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_6},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_7},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_7},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_0},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_0},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_1},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_1},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_2},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_2},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_3},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_3},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_4},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_4},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_5},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_5},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_6},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_6},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_7},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_7},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_0},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_0},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_1},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_1},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_2},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_2},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_3},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_3},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_4},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_4},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_5},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_5},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_6},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_6},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_7},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_7},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_0},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_0},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_1},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_1},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_2},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_2},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_3},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_3},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_4},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_4},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_5},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_5},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_6},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_6},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_7},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_7},
  486. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_0},
  488. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_0},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_1},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_1},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_2},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_2},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_3},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_3},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_4},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_4},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_5},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_5},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_6},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_6},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_7},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_7},
  518. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_SEN_TDM_RX_0},
  520. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_SEN_TDM_TX_0},
  522. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_1},
  524. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_1},
  526. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_2},
  528. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_2},
  530. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_3},
  532. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_3},
  534. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_4},
  536. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_4},
  538. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_5},
  540. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_5},
  542. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_6},
  544. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_6},
  546. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_7},
  548. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_7},
  550. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT_BT_A2DP_RX},
  552. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_USB_AUDIO_RX},
  554. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_USB_AUDIO_TX},
  556. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_DISPLAY_PORT},
  558. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_DISPLAY_PORT1},
  560. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_TERT_AUXPCM_RX},
  562. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_TERT_AUXPCM_TX},
  564. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_QUAT_AUXPCM_RX},
  566. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_QUAT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUIN_AUXPCM_RX},
  570. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUIN_AUXPCM_TX},
  572. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_INT0_MI2S_RX},
  574. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_INT0_MI2S_TX},
  576. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT1_MI2S_RX},
  578. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT1_MI2S_TX},
  580. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT2_MI2S_RX},
  582. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT2_MI2S_TX},
  584. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT3_MI2S_RX},
  586. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT3_MI2S_TX},
  588. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT4_MI2S_RX},
  590. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT4_MI2S_TX},
  592. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT5_MI2S_RX},
  594. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT5_MI2S_TX},
  596. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT6_MI2S_RX},
  598. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT6_MI2S_TX},
  600. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_SEN_AUXPCM_RX},
  602. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_SEN_AUXPCM_TX},
  604. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SENARY_MI2S_RX},
  606. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_WSA_CDC_DMA_RX_0},
  608. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_WSA_CDC_DMA_TX_0},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_1},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_1},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_TX_2},
  616. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_VA_CDC_DMA_TX_0},
  618. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_VA_CDC_DMA_TX_1},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_2},
  622. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_RX_CDC_DMA_RX_0},
  624. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TX_CDC_DMA_TX_0},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_1},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_1},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_2},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_2},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_3},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_3},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_4},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_4},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_5},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_5},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_6},
  648. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_RX_CDC_DMA_RX_7},
  650. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_PRI_SPDIF_TX},
  652. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_SEC_SPDIF_RX},
  654. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_SEC_SPDIF_TX},
  656. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  657. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  658. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  659. };
  660. /* Track ASM playback & capture sessions of DAI
  661. * Track LSM listen sessions
  662. */
  663. static struct msm_pcm_routing_fdai_data
  664. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  665. /* MULTIMEDIA1 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA2 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA3 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA4 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA5 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA6 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA7*/
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA8 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA9 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA10 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA11 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA12 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* MULTIMEDIA13 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* MULTIMEDIA14 */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* MULTIMEDIA15 */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* MULTIMEDIA16 */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* MULTIMEDIA17 */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* MULTIMEDIA18 */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* MULTIMEDIA19 */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* MULTIMEDIA20 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* MULTIMEDIA21 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* MULTIMEDIA26 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* MULTIMEDIA27 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* MULTIMEDIA28 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* MULTIMEDIA29 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* MULTIMEDIA30 */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* VOIP */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* AFE_RX */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* AFE_TX */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* VOICE_STUB */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. /* DTMF_RX */
  756. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  757. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  758. /* QCHAT */
  759. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  760. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  761. /* VOLTE_STUB */
  762. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  763. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  764. /* LSM1 */
  765. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  766. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  767. /* LSM2 */
  768. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  769. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  770. /* LSM3 */
  771. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  772. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  773. /* LSM4 */
  774. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  775. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  776. /* LSM5 */
  777. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  778. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  779. /* LSM6 */
  780. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  781. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  782. /* LSM7 */
  783. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  784. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  785. /* LSM8 */
  786. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  787. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  788. /* VOICE2_STUB */
  789. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  790. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  791. /* VOICEMMODE1 */
  792. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  793. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  794. /* VOICEMMODE2 */
  795. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  796. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  797. };
  798. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  799. [MSM_BACKEND_DAI_MAX];
  800. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  801. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  802. static struct msm_pcm_stream_app_type_cfg
  803. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  804. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  805. /* The caller of this should acquire routing lock */
  806. void msm_pcm_routing_get_bedai_info(int be_idx,
  807. struct msm_pcm_routing_bdai_data *be_dai)
  808. {
  809. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  810. memcpy(be_dai, &msm_bedais[be_idx],
  811. sizeof(struct msm_pcm_routing_bdai_data));
  812. }
  813. /* The caller of this should acquire routing lock */
  814. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  815. struct msm_pcm_routing_fdai_data *fe_dai)
  816. {
  817. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  818. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  819. sizeof(struct msm_pcm_routing_fdai_data));
  820. }
  821. void msm_pcm_routing_acquire_lock(void)
  822. {
  823. mutex_lock(&routing_lock);
  824. }
  825. void msm_pcm_routing_release_lock(void)
  826. {
  827. mutex_unlock(&routing_lock);
  828. }
  829. static int msm_pcm_routing_get_app_type_idx(int app_type)
  830. {
  831. int idx;
  832. pr_debug("%s: app_type: %d\n", __func__, app_type);
  833. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  834. if (app_type_cfg[idx].app_type == app_type)
  835. return idx;
  836. }
  837. pr_info("%s: App type not available, fallback to default\n", __func__);
  838. return 0;
  839. }
  840. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  841. {
  842. int idx;
  843. pr_debug("%s: app_type: %d\n", __func__, app_type);
  844. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  845. if (lsm_app_type_cfg[idx].app_type == app_type)
  846. return idx;
  847. }
  848. pr_debug("%s: App type not available, fallback to default\n", __func__);
  849. return 0;
  850. }
  851. static int get_port_id(int port_id)
  852. {
  853. int ret = port_id;
  854. if (port_id == AFE_LOOPBACK_TX) {
  855. /*
  856. * Return afe_loopback_tx_port_id if set. Else return
  857. * msm_ec_ref_port_id to maintain backward compatibility.
  858. */
  859. if (afe_loopback_tx_port_id != -1)
  860. ret = afe_loopback_tx_port_id;
  861. else
  862. ret = msm_ec_ref_port_id;
  863. }
  864. return ret;
  865. }
  866. static bool is_mm_lsm_fe_id(int fe_id)
  867. {
  868. bool rc = true;
  869. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  870. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  871. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  872. rc = false;
  873. }
  874. return rc;
  875. }
  876. /*
  877. * msm_pcm_routing_send_chmix_cfg:
  878. * send the channel mixer command to mix the input channels
  879. * into output channels.
  880. *
  881. * @fe_id: front end id
  882. * @ip_channel_cnt: input channel count
  883. * @op_channel_cnt: output channel count
  884. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  885. * @session_type: indicates session is of type TX or RX
  886. * @stream_type: indicates either Audio or Listen stream type
  887. */
  888. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  889. int op_channel_cnt, int *ch_wght_coeff,
  890. int session_type, int stream_type)
  891. {
  892. int rc = 0, idx = 0;
  893. int be_index = 0, port_id;
  894. unsigned int session_id = 0;
  895. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  896. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  897. stream_type);
  898. if (!is_mm_lsm_fe_id(fe_id)) {
  899. /* bad ID assigned in machine driver */
  900. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  901. return -EINVAL;
  902. }
  903. if (ch_wght_coeff == NULL) {
  904. pr_err("%s: Null channel weightage coefficients passed\n",
  905. __func__);
  906. return -EINVAL;
  907. }
  908. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  909. port_id = msm_bedais[be_index].port_id;
  910. if (!msm_bedais[be_index].active ||
  911. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  912. continue;
  913. session_id = fe_dai_map[fe_id][session_type].strm_id;
  914. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  915. unsigned long copp =
  916. session_copp_map[fe_id][session_type][be_index];
  917. if (!test_bit(idx, &copp))
  918. continue;
  919. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  920. session_id, ip_channel_cnt,
  921. op_channel_cnt, ch_wght_coeff,
  922. session_type, stream_type);
  923. if (rc < 0)
  924. pr_err("%s: err setting channel mix config\n",
  925. __func__);
  926. }
  927. }
  928. return 0;
  929. }
  930. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  931. /**
  932. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  933. * setting before use case start.
  934. *
  935. * @fe_id: frontend idx
  936. * @type: stream direction type
  937. * @params: parameters of channel mixer setting
  938. *
  939. * Return 0 for success
  940. */
  941. int msm_pcm_routing_set_channel_mixer_cfg(
  942. int fe_id, int type,
  943. struct msm_pcm_channel_mixer *params)
  944. {
  945. int i, j = 0;
  946. channel_mixer_v2[fe_id][type].enable = params->enable;
  947. channel_mixer_v2[fe_id][type].rule = params->rule;
  948. channel_mixer_v2[fe_id][type].input_channel =
  949. params->input_channel;
  950. channel_mixer_v2[fe_id][type].output_channel =
  951. params->output_channel;
  952. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  953. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  954. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  955. params->in_ch_map[i];
  956. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  957. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  958. params->out_ch_map[i];
  959. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  960. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  961. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  962. params->channel_weight[i][j];
  963. channel_mixer_v2[fe_id][type].override_in_ch_map =
  964. params->override_in_ch_map;
  965. channel_mixer_v2[fe_id][type].override_out_ch_map =
  966. params->override_out_ch_map;
  967. return 0;
  968. }
  969. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  970. int msm_pcm_routing_reg_stream_app_type_cfg(
  971. int fedai_id, int session_type, int be_id,
  972. struct msm_pcm_stream_app_type_cfg *cfg_data)
  973. {
  974. int ret = 0;
  975. if (cfg_data == NULL) {
  976. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  977. ret = -EINVAL;
  978. goto done;
  979. }
  980. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  981. __func__, fedai_id, session_type, be_id,
  982. cfg_data->app_type, cfg_data->acdb_dev_id,
  983. cfg_data->sample_rate);
  984. if (!is_mm_lsm_fe_id(fedai_id)) {
  985. pr_err("%s: Invalid machine driver ID %d\n",
  986. __func__, fedai_id);
  987. ret = -EINVAL;
  988. goto done;
  989. }
  990. if (session_type != SESSION_TYPE_RX &&
  991. session_type != SESSION_TYPE_TX) {
  992. pr_err("%s: Invalid session type %d\n",
  993. __func__, session_type);
  994. ret = -EINVAL;
  995. goto done;
  996. }
  997. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  998. pr_err("%s: Received out of bounds be_id %d\n",
  999. __func__, be_id);
  1000. ret = -EINVAL;
  1001. goto done;
  1002. }
  1003. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1004. /*
  1005. * Store the BE ID of the configuration information set as the latest so
  1006. * the get mixer control knows what to return.
  1007. */
  1008. last_be_id_configured[fedai_id][session_type] = be_id;
  1009. done:
  1010. return ret;
  1011. }
  1012. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1013. /**
  1014. * msm_pcm_routing_get_stream_app_type_cfg
  1015. *
  1016. * Receives fedai_id, session_type, be_id, and populates app_type,
  1017. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1018. * -EINVAL and does not alter passed values.
  1019. *
  1020. * fedai_id - Passed value, front end ID for which app type config is wanted
  1021. * session_type - Passed value, session type for which app type config
  1022. * is wanted
  1023. * be_id - Returned value, back end device id the app type config data is for
  1024. * cfg_data - Returned value, configuration data used by app type config
  1025. */
  1026. int msm_pcm_routing_get_stream_app_type_cfg(
  1027. int fedai_id, int session_type, int *bedai_id,
  1028. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1029. {
  1030. int be_id;
  1031. int ret = 0;
  1032. if (bedai_id == NULL) {
  1033. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1034. ret = -EINVAL;
  1035. goto done;
  1036. } else if (cfg_data == NULL) {
  1037. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1038. ret = -EINVAL;
  1039. goto done;
  1040. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1041. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1042. ret = -EINVAL;
  1043. goto done;
  1044. } else if (session_type != SESSION_TYPE_RX &&
  1045. session_type != SESSION_TYPE_TX) {
  1046. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1047. ret = -EINVAL;
  1048. goto done;
  1049. }
  1050. be_id = last_be_id_configured[fedai_id][session_type];
  1051. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1052. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1053. ret = -EINVAL;
  1054. goto done;
  1055. }
  1056. *bedai_id = be_id;
  1057. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1058. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1059. __func__, fedai_id, session_type, *bedai_id,
  1060. cfg_data->app_type, cfg_data->acdb_dev_id,
  1061. cfg_data->sample_rate);
  1062. done:
  1063. return ret;
  1064. }
  1065. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1066. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1067. int cal_index)
  1068. {
  1069. struct list_head *ptr, *next;
  1070. struct cal_block_data *cal_block = NULL;
  1071. pr_debug("%s\n", __func__);
  1072. list_for_each_safe(ptr, next,
  1073. &cal_data[cal_index]->cal_blocks) {
  1074. cal_block = list_entry(ptr,
  1075. struct cal_block_data, list);
  1076. if (cal_utils_is_cal_stale(cal_block))
  1077. continue;
  1078. if (((struct audio_cal_info_adm_top *)cal_block
  1079. ->cal_info)->path == path) {
  1080. return cal_block;
  1081. }
  1082. }
  1083. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1084. return NULL;
  1085. }
  1086. static struct cal_block_data *msm_routing_find_topology(int path,
  1087. int app_type,
  1088. int acdb_id,
  1089. int cal_index,
  1090. bool exact)
  1091. {
  1092. struct list_head *ptr, *next;
  1093. struct cal_block_data *cal_block = NULL;
  1094. struct audio_cal_info_adm_top *cal_info;
  1095. pr_debug("%s\n", __func__);
  1096. list_for_each_safe(ptr, next,
  1097. &cal_data[cal_index]->cal_blocks) {
  1098. cal_block = list_entry(ptr,
  1099. struct cal_block_data, list);
  1100. if (cal_utils_is_cal_stale(cal_block))
  1101. continue;
  1102. cal_info = (struct audio_cal_info_adm_top *)
  1103. cal_block->cal_info;
  1104. if ((cal_info->path == path) &&
  1105. (cal_info->app_type == app_type) &&
  1106. (cal_info->acdb_id == acdb_id)) {
  1107. return cal_block;
  1108. }
  1109. }
  1110. pr_debug("%s: Can't find topology for path %d, app %d, "
  1111. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1112. exact ? "fail" : "defaulting to search by path");
  1113. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1114. cal_index);
  1115. }
  1116. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1117. int acdb_dev_id, int idx,
  1118. bool exact)
  1119. {
  1120. int topology = -EINVAL;
  1121. struct cal_block_data *cal_block = NULL;
  1122. mutex_lock(&cal_data[idx]->lock);
  1123. cal_block = msm_routing_find_topology(session_type, app_type,
  1124. acdb_dev_id, idx, exact);
  1125. if (cal_block != NULL) {
  1126. topology = ((struct audio_cal_info_adm_top *)
  1127. cal_block->cal_info)->topology;
  1128. }
  1129. mutex_unlock(&cal_data[idx]->lock);
  1130. return topology;
  1131. }
  1132. /*
  1133. * Retrieving cal_block will mark cal_block as stale.
  1134. * Hence it cannot be reused or resent unless the flag
  1135. * is reset.
  1136. */
  1137. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1138. int be_id)
  1139. {
  1140. int topology = NULL_COPP_TOPOLOGY;
  1141. int app_type = 0, acdb_dev_id = 0;
  1142. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1143. __func__, fedai_id, session_type, be_id);
  1144. if (cal_data == NULL)
  1145. goto done;
  1146. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1147. acdb_dev_id =
  1148. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1149. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1150. topology = msm_routing_find_topology_on_index(session_type,
  1151. app_type,
  1152. acdb_dev_id,
  1153. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1154. true /*exact*/);
  1155. if (topology < 0) {
  1156. pr_debug("%s: Check for compatible topology\n", __func__);
  1157. topology = msm_routing_find_topology_on_index(session_type,
  1158. app_type,
  1159. acdb_dev_id,
  1160. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1161. false /*exact*/);
  1162. if (topology < 0)
  1163. topology = NULL_COPP_TOPOLOGY;
  1164. }
  1165. done:
  1166. pr_debug("%s: Using topology %d\n", __func__, topology);
  1167. return topology;
  1168. }
  1169. static uint8_t is_be_dai_extproc(int be_dai)
  1170. {
  1171. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1172. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1173. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1174. return 1;
  1175. else
  1176. return 0;
  1177. }
  1178. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1179. int path_type, int perf_mode,
  1180. uint32_t passthr_mode)
  1181. {
  1182. int i, port_type, j, num_copps = 0;
  1183. struct route_payload payload;
  1184. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1185. path_type == ADM_PATH_COMPRESSED_RX) ?
  1186. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1187. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1188. if (!is_be_dai_extproc(i) &&
  1189. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1190. (msm_bedais[i].active) &&
  1191. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1192. int port_id = get_port_id(msm_bedais[i].port_id);
  1193. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1194. unsigned long copp =
  1195. session_copp_map[fedai_id][sess_type][i];
  1196. if (test_bit(j, &copp)) {
  1197. payload.port_id[num_copps] = port_id;
  1198. payload.copp_idx[num_copps] = j;
  1199. payload.app_type[num_copps] =
  1200. fe_dai_app_type_cfg
  1201. [fedai_id][sess_type][i]
  1202. .app_type;
  1203. payload.acdb_dev_id[num_copps] =
  1204. fe_dai_app_type_cfg
  1205. [fedai_id][sess_type][i]
  1206. .acdb_dev_id;
  1207. payload.sample_rate[num_copps] =
  1208. fe_dai_app_type_cfg
  1209. [fedai_id][sess_type][i]
  1210. .sample_rate;
  1211. num_copps++;
  1212. }
  1213. }
  1214. }
  1215. }
  1216. if (num_copps) {
  1217. payload.num_copps = num_copps;
  1218. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1219. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1220. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1221. }
  1222. }
  1223. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1224. int stream_type)
  1225. {
  1226. int i, session_type, path_type, port_type;
  1227. u32 mode = 0;
  1228. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1229. /* bad ID assigned in machine driver */
  1230. pr_err("%s: bad MM ID\n", __func__);
  1231. return;
  1232. }
  1233. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1234. session_type = SESSION_TYPE_RX;
  1235. path_type = ADM_PATH_PLAYBACK;
  1236. port_type = MSM_AFE_PORT_TYPE_RX;
  1237. } else {
  1238. session_type = SESSION_TYPE_TX;
  1239. path_type = ADM_PATH_LIVE_REC;
  1240. port_type = MSM_AFE_PORT_TYPE_TX;
  1241. }
  1242. mutex_lock(&routing_lock);
  1243. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1244. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1245. if (!is_be_dai_extproc(i) &&
  1246. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1247. (msm_bedais[i].active) &&
  1248. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1249. mode = afe_get_port_type(msm_bedais[i].port_id);
  1250. adm_connect_afe_port(mode, dspst_id,
  1251. msm_bedais[i].port_id);
  1252. break;
  1253. }
  1254. }
  1255. mutex_unlock(&routing_lock);
  1256. }
  1257. static bool route_check_fe_id_adm_support(int fe_id)
  1258. {
  1259. bool rc = true;
  1260. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1261. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1262. /* fe id is listen while port is set to afe */
  1263. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1264. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1265. __func__, fe_id, lsm_port_index);
  1266. rc = false;
  1267. }
  1268. }
  1269. return rc;
  1270. }
  1271. /*
  1272. * msm_pcm_routing_get_pp_ch_cnt:
  1273. * Read the processed channel count
  1274. *
  1275. * @fe_id: Front end ID
  1276. * @session_type: Inidicates RX or TX session type
  1277. */
  1278. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1279. {
  1280. struct msm_pcm_stream_app_type_cfg cfg_data;
  1281. int be_id = 0, app_type_idx = 0, app_type = 0;
  1282. int ret = -EINVAL;
  1283. memset(&cfg_data, 0, sizeof(cfg_data));
  1284. if (!is_mm_lsm_fe_id(fe_id)) {
  1285. pr_err("%s: bad MM ID\n", __func__);
  1286. return -EINVAL;
  1287. }
  1288. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1289. &be_id, &cfg_data);
  1290. if (ret) {
  1291. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1292. return ret;
  1293. }
  1294. app_type = cfg_data.app_type;
  1295. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1296. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1297. }
  1298. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1299. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1300. int dspst_id, int stream_type,
  1301. uint32_t passthr_mode)
  1302. {
  1303. int i, j, session_type, path_type, port_type, topology;
  1304. int num_copps = 0;
  1305. struct route_payload payload;
  1306. u32 channels, sample_rate;
  1307. u16 bit_width = 16;
  1308. bool is_lsm;
  1309. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1310. __func__, fe_id, perf_mode, dspst_id,
  1311. stream_type, passthr_mode);
  1312. if (!is_mm_lsm_fe_id(fe_id)) {
  1313. /* bad ID assigned in machine driver */
  1314. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1315. return -EINVAL;
  1316. }
  1317. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1318. session_type = SESSION_TYPE_RX;
  1319. if (passthr_mode != LEGACY_PCM)
  1320. path_type = ADM_PATH_COMPRESSED_RX;
  1321. else
  1322. path_type = ADM_PATH_PLAYBACK;
  1323. port_type = MSM_AFE_PORT_TYPE_RX;
  1324. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1325. session_type = SESSION_TYPE_TX;
  1326. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1327. path_type = ADM_PATH_COMPRESSED_TX;
  1328. else
  1329. path_type = ADM_PATH_LIVE_REC;
  1330. port_type = MSM_AFE_PORT_TYPE_TX;
  1331. } else {
  1332. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1333. return -EINVAL;
  1334. }
  1335. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1336. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1337. mutex_lock(&routing_lock);
  1338. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1339. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1340. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1341. if (!route_check_fe_id_adm_support(fe_id)) {
  1342. /* ignore adm open if not supported for fe_id */
  1343. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1344. mutex_unlock(&routing_lock);
  1345. return 0;
  1346. }
  1347. payload.num_copps = 0; /* only RX needs to use payload */
  1348. /* re-enable EQ if active */
  1349. msm_qti_pp_send_eq_values(fe_id);
  1350. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1351. if (!is_be_dai_extproc(i) &&
  1352. (afe_get_port_type(msm_bedais[i].port_id) ==
  1353. port_type) &&
  1354. (msm_bedais[i].active) &&
  1355. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1356. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1357. int port_id = get_port_id(msm_bedais[i].port_id);
  1358. /*
  1359. * check if ADM needs to be configured with different
  1360. * channel mapping than backend
  1361. */
  1362. if (!msm_bedais[i].adm_override_ch)
  1363. channels = msm_bedais[i].channel;
  1364. else
  1365. channels = msm_bedais[i].adm_override_ch;
  1366. bit_width = msm_routing_get_bit_width(
  1367. msm_bedais[i].format);
  1368. app_type =
  1369. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1370. if (app_type && is_lsm) {
  1371. app_type_idx =
  1372. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1373. sample_rate =
  1374. fe_dai_app_type_cfg[fe_id][session_type][i]
  1375. .sample_rate;
  1376. bit_width =
  1377. lsm_app_type_cfg[app_type_idx].bit_width;
  1378. } else if (app_type) {
  1379. app_type_idx =
  1380. msm_pcm_routing_get_app_type_idx(
  1381. app_type);
  1382. sample_rate =
  1383. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1384. bit_width =
  1385. app_type_cfg[app_type_idx].bit_width;
  1386. } else {
  1387. sample_rate = msm_bedais[i].sample_rate;
  1388. }
  1389. acdb_dev_id =
  1390. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1391. topology = msm_routing_get_adm_topology(fe_id,
  1392. session_type,
  1393. i);
  1394. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1395. || (passthr_mode ==
  1396. COMPRESSED_PASSTHROUGH_GEN)
  1397. || (passthr_mode ==
  1398. COMPRESSED_PASSTHROUGH_IEC61937))
  1399. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1400. pr_debug("%s: Before adm open topology %d\n", __func__,
  1401. topology);
  1402. copp_idx =
  1403. adm_open(port_id, path_type, sample_rate,
  1404. channels, topology, perf_mode,
  1405. bit_width, app_type, acdb_dev_id,
  1406. session_type);
  1407. if ((copp_idx < 0) ||
  1408. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1409. pr_err("%s:adm open failed coppid:%d\n",
  1410. __func__, copp_idx);
  1411. mutex_unlock(&routing_lock);
  1412. return -EINVAL;
  1413. }
  1414. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1415. __func__, fe_id, session_type, i);
  1416. set_bit(copp_idx,
  1417. &session_copp_map[fe_id][session_type][i]);
  1418. if (msm_is_resample_needed(
  1419. sample_rate,
  1420. msm_bedais[i].sample_rate))
  1421. adm_copp_mfc_cfg(port_id, copp_idx,
  1422. msm_bedais[i].sample_rate);
  1423. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1424. unsigned long copp =
  1425. session_copp_map[fe_id][session_type][i];
  1426. if (test_bit(j, &copp)) {
  1427. payload.port_id[num_copps] = port_id;
  1428. payload.copp_idx[num_copps] = j;
  1429. payload.app_type[num_copps] =
  1430. fe_dai_app_type_cfg
  1431. [fe_id][session_type][i]
  1432. .app_type;
  1433. payload.acdb_dev_id[num_copps] =
  1434. fe_dai_app_type_cfg
  1435. [fe_id][session_type][i]
  1436. .acdb_dev_id;
  1437. payload.sample_rate[num_copps] =
  1438. fe_dai_app_type_cfg
  1439. [fe_id][session_type][i]
  1440. .sample_rate;
  1441. num_copps++;
  1442. }
  1443. }
  1444. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1445. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1446. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1447. msm_routing_send_device_pp_params(port_id,
  1448. copp_idx, fe_id);
  1449. }
  1450. }
  1451. if (num_copps) {
  1452. payload.num_copps = num_copps;
  1453. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1454. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1455. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1456. }
  1457. mutex_unlock(&routing_lock);
  1458. return 0;
  1459. }
  1460. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1461. {
  1462. u32 session_id;
  1463. switch (val) {
  1464. case MSM_FRONTEND_DAI_QCHAT:
  1465. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1466. break;
  1467. case MSM_FRONTEND_DAI_VOIP:
  1468. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1469. break;
  1470. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1471. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1472. break;
  1473. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1474. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1475. break;
  1476. default:
  1477. session_id = 0;
  1478. }
  1479. pr_debug("%s session_id 0x%x", __func__, session_id);
  1480. return session_id;
  1481. }
  1482. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1483. int dspst_id, int stream_type)
  1484. {
  1485. int copp_idx = 0;
  1486. int sess_type = 0;
  1487. int j = 0, be_id = 0;
  1488. int ret = 0;
  1489. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1490. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1491. return 0;
  1492. }
  1493. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1494. sess_type = SESSION_TYPE_RX;
  1495. else
  1496. sess_type = SESSION_TYPE_TX;
  1497. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1498. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1499. __func__, fe_id, sess_type);
  1500. return 0;
  1501. }
  1502. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1503. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1504. channel_mixer_v2[fe_id][sess_type].input_channel;
  1505. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1506. __func__, sess_type, fe_id,
  1507. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1508. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1509. msm_bedais[be_id].active);
  1510. if ((msm_bedais[be_id].active) &&
  1511. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1512. unsigned long copp =
  1513. session_copp_map[fe_id][sess_type][be_id];
  1514. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1515. if (test_bit(j, &copp)) {
  1516. copp_idx = j;
  1517. break;
  1518. }
  1519. }
  1520. ret = adm_programable_channel_mixer(
  1521. msm_bedais[be_id].port_id,
  1522. copp_idx, dspst_id, sess_type,
  1523. &channel_mixer_v2[fe_id][sess_type], 0);
  1524. }
  1525. return ret;
  1526. }
  1527. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1528. int dspst_id, int stream_type)
  1529. {
  1530. int copp_idx = 0;
  1531. int sess_type = 0;
  1532. int i = 0, j = 0, be_id;
  1533. int ret = 0;
  1534. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1535. dspst_id, stream_type);
  1536. if (ret) {
  1537. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1538. fe_id);
  1539. return ret;
  1540. }
  1541. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1542. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1543. return 0;
  1544. }
  1545. if (!(channel_mixer[fe_id].enable)) {
  1546. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1547. __func__, fe_id);
  1548. return 0;
  1549. }
  1550. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1551. sess_type = SESSION_TYPE_RX;
  1552. else
  1553. sess_type = SESSION_TYPE_TX;
  1554. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1555. ++i) {
  1556. be_id = channel_input[fe_id][i] - 1;
  1557. channel_mixer[fe_id].input_channels[i] =
  1558. msm_bedais[be_id].channel;
  1559. if ((msm_bedais[be_id].active) &&
  1560. test_bit(fe_id,
  1561. &msm_bedais[be_id].fe_sessions[0])) {
  1562. unsigned long copp =
  1563. session_copp_map[fe_id][sess_type][be_id];
  1564. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1565. if (test_bit(j, &copp)) {
  1566. copp_idx = j;
  1567. break;
  1568. }
  1569. }
  1570. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1571. __func__,
  1572. fe_id, be_id, msm_bedais[be_id].channel,
  1573. copp_idx);
  1574. ret = adm_programable_channel_mixer(
  1575. get_port_id(msm_bedais[be_id].port_id),
  1576. copp_idx, dspst_id, sess_type,
  1577. channel_mixer + fe_id, i);
  1578. }
  1579. }
  1580. return ret;
  1581. }
  1582. /**
  1583. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1584. * setting during runtime.
  1585. *
  1586. * @be_id: backend index
  1587. * @session_id: session index
  1588. * @session_type: session type
  1589. * @params: parameters for channel mixer
  1590. *
  1591. * Retuen: 0 for success, else error
  1592. */
  1593. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1594. int session_type,
  1595. struct msm_pcm_channel_mixer *params)
  1596. {
  1597. int rc = 0;
  1598. int port_id, copp_idx = 0;
  1599. be_id--;
  1600. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1601. pr_err("%s: invalid backend id %d\n", __func__,
  1602. be_id);
  1603. return -EINVAL;
  1604. }
  1605. port_id = msm_bedais[be_id].port_id;
  1606. copp_idx = adm_get_default_copp_idx(port_id);
  1607. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1608. __func__, port_id, copp_idx, session_id);
  1609. if ((params->input_channel < 0) ||
  1610. (params->input_channel > ADM_MAX_CHANNELS)) {
  1611. pr_err("%s: invalid input channel %d\n", __func__,
  1612. params->input_channel);
  1613. return -EINVAL;
  1614. }
  1615. if ((params->output_channel < 0) ||
  1616. (params->output_channel > ADM_MAX_CHANNELS)) {
  1617. pr_err("%s: invalid output channel %d\n", __func__,
  1618. params->output_channel);
  1619. return -EINVAL;
  1620. }
  1621. params->input_channels[0] = params->input_channel;
  1622. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1623. __func__, session_type,
  1624. params->override_in_ch_map,
  1625. params->override_out_ch_map,
  1626. msm_bedais[be_id].active);
  1627. rc = adm_programable_channel_mixer(port_id,
  1628. copp_idx,
  1629. session_id,
  1630. session_type,
  1631. params,
  1632. 0);
  1633. if (rc) {
  1634. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1635. rc = -EINVAL;
  1636. }
  1637. return rc;
  1638. }
  1639. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1640. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1641. int dspst_id, int stream_type)
  1642. {
  1643. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1644. struct route_payload payload;
  1645. u32 channels, sample_rate;
  1646. uint16_t bits_per_sample = 16;
  1647. uint32_t passthr_mode = LEGACY_PCM;
  1648. int ret = 0;
  1649. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1650. /* bad ID assigned in machine driver */
  1651. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1652. return -EINVAL;
  1653. }
  1654. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1655. session_type = SESSION_TYPE_RX;
  1656. path_type = ADM_PATH_PLAYBACK;
  1657. port_type = MSM_AFE_PORT_TYPE_RX;
  1658. } else {
  1659. session_type = SESSION_TYPE_TX;
  1660. path_type = ADM_PATH_LIVE_REC;
  1661. port_type = MSM_AFE_PORT_TYPE_TX;
  1662. }
  1663. mutex_lock(&routing_lock);
  1664. payload.num_copps = 0; /* only RX needs to use payload */
  1665. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1666. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1667. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1668. /* re-enable EQ if active */
  1669. msm_qti_pp_send_eq_values(fedai_id);
  1670. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1671. if (!is_be_dai_extproc(i) &&
  1672. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1673. (msm_bedais[i].active) &&
  1674. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1675. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1676. int port_id = get_port_id(msm_bedais[i].port_id);
  1677. /*
  1678. * check if ADM needs to be configured with different
  1679. * channel mapping than backend
  1680. */
  1681. if (!msm_bedais[i].adm_override_ch)
  1682. channels = msm_bedais[i].channel;
  1683. else
  1684. channels = msm_bedais[i].adm_override_ch;
  1685. bits_per_sample = msm_routing_get_bit_width(
  1686. msm_bedais[i].format);
  1687. app_type =
  1688. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1689. if (app_type) {
  1690. app_type_idx =
  1691. msm_pcm_routing_get_app_type_idx(app_type);
  1692. sample_rate =
  1693. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1694. .sample_rate;
  1695. bits_per_sample =
  1696. app_type_cfg[app_type_idx].bit_width;
  1697. } else
  1698. sample_rate = msm_bedais[i].sample_rate;
  1699. acdb_dev_id =
  1700. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1701. .acdb_dev_id;
  1702. topology = msm_routing_get_adm_topology(fedai_id,
  1703. session_type,
  1704. i);
  1705. copp_idx = adm_open(port_id, path_type,
  1706. sample_rate, channels, topology,
  1707. perf_mode, bits_per_sample,
  1708. app_type, acdb_dev_id,
  1709. session_type);
  1710. if ((copp_idx < 0) ||
  1711. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1712. pr_err("%s: adm open failed copp_idx:%d\n",
  1713. __func__, copp_idx);
  1714. mutex_unlock(&routing_lock);
  1715. return -EINVAL;
  1716. }
  1717. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1718. __func__, fedai_id, session_type, i);
  1719. set_bit(copp_idx,
  1720. &session_copp_map[fedai_id][session_type][i]);
  1721. if (msm_is_resample_needed(
  1722. sample_rate,
  1723. msm_bedais[i].sample_rate))
  1724. adm_copp_mfc_cfg(port_id, copp_idx,
  1725. msm_bedais[i].sample_rate);
  1726. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1727. unsigned long copp =
  1728. session_copp_map[fedai_id][session_type][i];
  1729. if (test_bit(j, &copp)) {
  1730. payload.port_id[num_copps] = port_id;
  1731. payload.copp_idx[num_copps] = j;
  1732. payload.app_type[num_copps] =
  1733. fe_dai_app_type_cfg
  1734. [fedai_id][session_type]
  1735. [i].app_type;
  1736. payload.acdb_dev_id[num_copps] =
  1737. fe_dai_app_type_cfg
  1738. [fedai_id][session_type]
  1739. [i].acdb_dev_id;
  1740. payload.sample_rate[num_copps] =
  1741. fe_dai_app_type_cfg
  1742. [fedai_id][session_type]
  1743. [i].sample_rate;
  1744. num_copps++;
  1745. }
  1746. }
  1747. if (perf_mode == LEGACY_PCM_MODE)
  1748. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1749. topology, channels);
  1750. }
  1751. }
  1752. if (num_copps) {
  1753. payload.num_copps = num_copps;
  1754. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1755. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1756. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1757. }
  1758. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1759. dspst_id, stream_type);
  1760. mutex_unlock(&routing_lock);
  1761. return ret;
  1762. }
  1763. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1764. int dspst_id, int stream_type,
  1765. struct msm_pcm_routing_evt event_info)
  1766. {
  1767. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1768. stream_type)) {
  1769. pr_err("%s: failed to reg phy stream\n", __func__);
  1770. return -EINVAL;
  1771. }
  1772. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1773. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1774. else
  1775. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1776. return 0;
  1777. }
  1778. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1779. {
  1780. int i, port_type, session_type, path_type, topology, port_id;
  1781. struct msm_pcm_routing_fdai_data *fdai;
  1782. if (!is_mm_lsm_fe_id(fedai_id)) {
  1783. /* bad ID assigned in machine driver */
  1784. pr_err("%s: bad MM ID\n", __func__);
  1785. return;
  1786. }
  1787. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1788. port_type = MSM_AFE_PORT_TYPE_RX;
  1789. session_type = SESSION_TYPE_RX;
  1790. path_type = ADM_PATH_PLAYBACK;
  1791. } else {
  1792. port_type = MSM_AFE_PORT_TYPE_TX;
  1793. session_type = SESSION_TYPE_TX;
  1794. path_type = ADM_PATH_LIVE_REC;
  1795. }
  1796. mutex_lock(&routing_lock);
  1797. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1798. if (!is_be_dai_extproc(i) &&
  1799. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1800. (msm_bedais[i].active) &&
  1801. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1802. int idx;
  1803. unsigned long copp =
  1804. session_copp_map[fedai_id][session_type][i];
  1805. fdai = &fe_dai_map[fedai_id][session_type];
  1806. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1807. if (test_bit(idx, &copp))
  1808. break;
  1809. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1810. pr_debug("%s: copp idx is invalid, exiting\n",
  1811. __func__);
  1812. continue;
  1813. }
  1814. port_id = get_port_id(msm_bedais[i].port_id);
  1815. topology = adm_get_topology_for_port_copp_idx(
  1816. port_id, idx);
  1817. msm_routing_unload_topology(topology);
  1818. adm_close(port_id, fdai->perf_mode, idx);
  1819. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1820. __func__, copp, fedai_id, session_type, i);
  1821. clear_bit(idx,
  1822. &session_copp_map[fedai_id][session_type][i]);
  1823. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1824. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1825. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1826. (fdai->passthr_mode == LEGACY_PCM))
  1827. msm_pcm_routing_deinit_pp(port_id, topology);
  1828. }
  1829. }
  1830. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1831. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1832. mutex_unlock(&routing_lock);
  1833. }
  1834. /* Check if FE/BE route is set */
  1835. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1836. {
  1837. bool rc = false;
  1838. if (!is_mm_lsm_fe_id(fe_id)) {
  1839. /* recheck FE ID in the mixer control defined in this file */
  1840. pr_err("%s: bad MM ID\n", __func__);
  1841. return rc;
  1842. }
  1843. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1844. rc = true;
  1845. return rc;
  1846. }
  1847. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1848. {
  1849. int session_type, path_type, topology;
  1850. u32 channels, sample_rate;
  1851. uint16_t bits_per_sample = 16;
  1852. struct msm_pcm_routing_fdai_data *fdai;
  1853. uint32_t passthr_mode;
  1854. bool is_lsm;
  1855. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1856. if (!is_mm_lsm_fe_id(val)) {
  1857. /* recheck FE ID in the mixer control defined in this file */
  1858. pr_err("%s: bad MM ID\n", __func__);
  1859. return;
  1860. }
  1861. if (!route_check_fe_id_adm_support(val)) {
  1862. /* ignore adm open if not supported for fe_id */
  1863. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1864. if (set)
  1865. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1866. else
  1867. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1868. return;
  1869. }
  1870. session_type =
  1871. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1872. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1873. fdai = &fe_dai_map[val][session_type];
  1874. passthr_mode = fdai->passthr_mode;
  1875. if (session_type == SESSION_TYPE_RX) {
  1876. if (passthr_mode != LEGACY_PCM)
  1877. path_type = ADM_PATH_COMPRESSED_RX;
  1878. else
  1879. path_type = ADM_PATH_PLAYBACK;
  1880. } else {
  1881. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1882. path_type = ADM_PATH_COMPRESSED_TX;
  1883. else
  1884. path_type = ADM_PATH_LIVE_REC;
  1885. }
  1886. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1887. (val <= MSM_FRONTEND_DAI_LSM8);
  1888. mutex_lock(&routing_lock);
  1889. if (set) {
  1890. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1891. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1892. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1893. voc_start_playback(set, msm_bedais[reg].port_id);
  1894. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1895. if (msm_bedais[reg].active && fdai->strm_id !=
  1896. INVALID_SESSION) {
  1897. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1898. int port_id = get_port_id(msm_bedais[reg].port_id);
  1899. /*
  1900. * check if ADM needs to be configured with different
  1901. * channel mapping than backend
  1902. */
  1903. if (!msm_bedais[reg].adm_override_ch)
  1904. channels = msm_bedais[reg].channel;
  1905. else
  1906. channels = msm_bedais[reg].adm_override_ch;
  1907. if (session_type == SESSION_TYPE_TX &&
  1908. fdai->be_srate &&
  1909. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1910. pr_debug("%s: flush strm %d diff BE rates\n",
  1911. __func__, fdai->strm_id);
  1912. if (fdai->event_info.event_func)
  1913. fdai->event_info.event_func(
  1914. MSM_PCM_RT_EVT_BUF_RECFG,
  1915. fdai->event_info.priv_data);
  1916. fdai->be_srate = 0; /* might not need it */
  1917. }
  1918. bits_per_sample = msm_routing_get_bit_width(
  1919. msm_bedais[reg].format);
  1920. app_type =
  1921. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1922. if (app_type && is_lsm) {
  1923. app_type_idx =
  1924. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1925. sample_rate =
  1926. fe_dai_app_type_cfg[val][session_type][reg]
  1927. .sample_rate;
  1928. bits_per_sample =
  1929. lsm_app_type_cfg[app_type_idx].bit_width;
  1930. } else if (app_type) {
  1931. app_type_idx =
  1932. msm_pcm_routing_get_app_type_idx(app_type);
  1933. sample_rate =
  1934. fe_dai_app_type_cfg[val][session_type][reg]
  1935. .sample_rate;
  1936. bits_per_sample =
  1937. app_type_cfg[app_type_idx].bit_width;
  1938. } else
  1939. sample_rate = msm_bedais[reg].sample_rate;
  1940. topology = msm_routing_get_adm_topology(val,
  1941. session_type,
  1942. reg);
  1943. acdb_dev_id =
  1944. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1945. copp_idx = adm_open(port_id, path_type,
  1946. sample_rate, channels, topology,
  1947. fdai->perf_mode, bits_per_sample,
  1948. app_type, acdb_dev_id,
  1949. session_type);
  1950. if ((copp_idx < 0) ||
  1951. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1952. pr_err("%s: adm open failed\n", __func__);
  1953. mutex_unlock(&routing_lock);
  1954. return;
  1955. }
  1956. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1957. __func__, val, session_type, reg);
  1958. set_bit(copp_idx,
  1959. &session_copp_map[val][session_type][reg]);
  1960. if (msm_is_resample_needed(
  1961. sample_rate,
  1962. msm_bedais[reg].sample_rate))
  1963. adm_copp_mfc_cfg(port_id, copp_idx,
  1964. msm_bedais[reg].sample_rate);
  1965. if (session_type == SESSION_TYPE_RX &&
  1966. fdai->event_info.event_func)
  1967. fdai->event_info.event_func(
  1968. MSM_PCM_RT_EVT_DEVSWITCH,
  1969. fdai->event_info.priv_data);
  1970. msm_pcm_routing_build_matrix(val, session_type,
  1971. path_type,
  1972. fdai->perf_mode,
  1973. passthr_mode);
  1974. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1975. (passthr_mode == LEGACY_PCM))
  1976. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1977. topology, channels);
  1978. }
  1979. } else {
  1980. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1981. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1982. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1983. voc_start_playback(set, msm_bedais[reg].port_id);
  1984. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1985. if (msm_bedais[reg].active && fdai->strm_id !=
  1986. INVALID_SESSION) {
  1987. int idx;
  1988. int port_id;
  1989. unsigned long copp =
  1990. session_copp_map[val][session_type][reg];
  1991. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1992. if (test_bit(idx, &copp))
  1993. break;
  1994. if (idx >= MAX_COPPS_PER_PORT) {
  1995. pr_debug("%s: copp idx is invalid, exiting\n",
  1996. __func__);
  1997. mutex_unlock(&routing_lock);
  1998. return;
  1999. }
  2000. port_id = get_port_id(msm_bedais[reg].port_id);
  2001. topology = adm_get_topology_for_port_copp_idx(port_id,
  2002. idx);
  2003. msm_routing_unload_topology(topology);
  2004. adm_close(port_id, fdai->perf_mode, idx);
  2005. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2006. __func__, copp, val, session_type, reg,
  2007. topology);
  2008. clear_bit(idx,
  2009. &session_copp_map[val][session_type][reg]);
  2010. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2011. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2012. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2013. (passthr_mode == LEGACY_PCM))
  2014. msm_pcm_routing_deinit_pp(port_id, topology);
  2015. msm_pcm_routing_build_matrix(val, session_type,
  2016. path_type,
  2017. fdai->perf_mode,
  2018. passthr_mode);
  2019. }
  2020. }
  2021. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2022. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2023. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2024. mutex_unlock(&routing_lock);
  2025. }
  2026. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2027. struct snd_ctl_elem_value *ucontrol)
  2028. {
  2029. struct soc_mixer_control *mc =
  2030. (struct soc_mixer_control *)kcontrol->private_value;
  2031. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2032. ucontrol->value.integer.value[0] = 1;
  2033. else
  2034. ucontrol->value.integer.value[0] = 0;
  2035. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2036. ucontrol->value.integer.value[0]);
  2037. return 0;
  2038. }
  2039. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2040. struct snd_ctl_elem_value *ucontrol)
  2041. {
  2042. struct snd_soc_dapm_widget *widget =
  2043. snd_soc_dapm_kcontrol_widget(kcontrol);
  2044. struct soc_mixer_control *mc =
  2045. (struct soc_mixer_control *)kcontrol->private_value;
  2046. struct snd_soc_dapm_update *update = NULL;
  2047. if (ucontrol->value.integer.value[0] &&
  2048. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2049. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2050. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2051. update);
  2052. } else if (!ucontrol->value.integer.value[0] &&
  2053. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2054. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2055. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2056. update);
  2057. }
  2058. return 1;
  2059. }
  2060. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2061. struct snd_ctl_elem_value *ucontrol)
  2062. {
  2063. struct soc_mixer_control *mc =
  2064. (struct soc_mixer_control *)kcontrol->private_value;
  2065. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2066. ucontrol->value.integer.value[0] = 1;
  2067. else
  2068. ucontrol->value.integer.value[0] = 0;
  2069. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2070. ucontrol->value.integer.value[0]);
  2071. return 0;
  2072. }
  2073. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2074. struct snd_ctl_elem_value *ucontrol)
  2075. {
  2076. struct snd_soc_dapm_widget *widget =
  2077. snd_soc_dapm_kcontrol_widget(kcontrol);
  2078. struct soc_mixer_control *mc =
  2079. (struct soc_mixer_control *)kcontrol->private_value;
  2080. struct snd_soc_dapm_update *update = NULL;
  2081. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2082. ucontrol->value.integer.value[0]);
  2083. if (ucontrol->value.integer.value[0]) {
  2084. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2085. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2086. snd_soc_dapm_mixer_update_power(widget->dapm,
  2087. kcontrol, 1, update);
  2088. } else if (!ucontrol->value.integer.value[0]) {
  2089. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2090. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2091. snd_soc_dapm_mixer_update_power(widget->dapm,
  2092. kcontrol, 0, update);
  2093. }
  2094. return 1;
  2095. }
  2096. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2097. {
  2098. u32 session_id = 0;
  2099. u16 path_type;
  2100. struct media_format_info voc_be_media_format;
  2101. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2102. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2103. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2104. __func__, val, session_id);
  2105. mutex_lock(&routing_lock);
  2106. if (set)
  2107. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2108. else
  2109. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2110. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2111. afe_get_port_type(msm_bedais[reg].port_id) ==
  2112. MSM_AFE_PORT_TYPE_RX) {
  2113. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2114. __func__, set, msm_bedais[reg].port_id);
  2115. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2116. }
  2117. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2118. MSM_AFE_PORT_TYPE_RX)
  2119. path_type = RX_PATH;
  2120. else
  2121. path_type = TX_PATH;
  2122. if (set) {
  2123. if (msm_bedais[reg].active) {
  2124. voc_set_route_flag(session_id, path_type, 1);
  2125. memset(&voc_be_media_format, 0,
  2126. sizeof(struct media_format_info));
  2127. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2128. voc_be_media_format.num_channels =
  2129. msm_bedais[reg].channel;
  2130. voc_be_media_format.sample_rate =
  2131. msm_bedais[reg].sample_rate;
  2132. voc_be_media_format.bits_per_sample =
  2133. msm_bedais[reg].format;
  2134. /* Defaulting this to 1 for voice call usecases */
  2135. voc_be_media_format.channel_mapping[0] = 1;
  2136. voc_set_device_config(session_id, path_type,
  2137. &voc_be_media_format);
  2138. if (voc_get_route_flag(session_id, TX_PATH) &&
  2139. voc_get_route_flag(session_id, RX_PATH))
  2140. voc_enable_device(session_id);
  2141. } else {
  2142. pr_debug("%s BE is not active\n", __func__);
  2143. }
  2144. } else {
  2145. voc_set_route_flag(session_id, path_type, 0);
  2146. voc_disable_device(session_id);
  2147. }
  2148. mutex_unlock(&routing_lock);
  2149. }
  2150. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2151. struct snd_ctl_elem_value *ucontrol)
  2152. {
  2153. struct soc_mixer_control *mc =
  2154. (struct soc_mixer_control *)kcontrol->private_value;
  2155. mutex_lock(&routing_lock);
  2156. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2157. ucontrol->value.integer.value[0] = 1;
  2158. else
  2159. ucontrol->value.integer.value[0] = 0;
  2160. mutex_unlock(&routing_lock);
  2161. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2162. ucontrol->value.integer.value[0]);
  2163. return 0;
  2164. }
  2165. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2166. struct snd_ctl_elem_value *ucontrol)
  2167. {
  2168. struct snd_soc_dapm_widget *widget =
  2169. snd_soc_dapm_kcontrol_widget(kcontrol);
  2170. struct soc_mixer_control *mc =
  2171. (struct soc_mixer_control *)kcontrol->private_value;
  2172. struct snd_soc_dapm_update *update = NULL;
  2173. if (ucontrol->value.integer.value[0]) {
  2174. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2175. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2176. update);
  2177. } else {
  2178. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2179. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2180. update);
  2181. }
  2182. return 1;
  2183. }
  2184. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2185. struct snd_ctl_elem_value *ucontrol)
  2186. {
  2187. struct soc_mixer_control *mc =
  2188. (struct soc_mixer_control *)kcontrol->private_value;
  2189. mutex_lock(&routing_lock);
  2190. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2191. ucontrol->value.integer.value[0] = 1;
  2192. else
  2193. ucontrol->value.integer.value[0] = 0;
  2194. mutex_unlock(&routing_lock);
  2195. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2196. ucontrol->value.integer.value[0]);
  2197. return 0;
  2198. }
  2199. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2200. struct snd_ctl_elem_value *ucontrol)
  2201. {
  2202. struct snd_soc_dapm_widget *widget =
  2203. snd_soc_dapm_kcontrol_widget(kcontrol);
  2204. struct soc_mixer_control *mc =
  2205. (struct soc_mixer_control *)kcontrol->private_value;
  2206. struct snd_soc_dapm_update *update = NULL;
  2207. if (ucontrol->value.integer.value[0]) {
  2208. mutex_lock(&routing_lock);
  2209. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2210. mutex_unlock(&routing_lock);
  2211. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2212. update);
  2213. } else {
  2214. mutex_lock(&routing_lock);
  2215. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2216. mutex_unlock(&routing_lock);
  2217. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2218. update);
  2219. }
  2220. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2221. ucontrol->value.integer.value[0]);
  2222. return 1;
  2223. }
  2224. /*
  2225. * Return the mapping between port ID and backend ID to enable the AFE callback
  2226. * to determine the acdb_dev_id from the port id
  2227. */
  2228. int msm_pcm_get_be_id_from_port_id(int port_id)
  2229. {
  2230. int i;
  2231. int be_id = -EINVAL;
  2232. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2233. if (msm_bedais[i].port_id == port_id) {
  2234. be_id = i;
  2235. break;
  2236. }
  2237. }
  2238. return be_id;
  2239. }
  2240. /*
  2241. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2242. * correct AFE calibration information by comparing the header information.
  2243. */
  2244. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2245. {
  2246. int acdb_id = -EINVAL;
  2247. int i = 0;
  2248. int session;
  2249. int port_type = afe_get_port_type(port_id);
  2250. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2251. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2252. __func__, port_id, be_id, port_type);
  2253. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2254. session = SESSION_TYPE_TX;
  2255. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2256. session = SESSION_TYPE_RX;
  2257. } else {
  2258. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2259. acdb_id = -EINVAL;
  2260. goto exit;
  2261. }
  2262. if (be_id < 0) {
  2263. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2264. goto exit;
  2265. }
  2266. mutex_lock(&routing_lock);
  2267. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2268. MSM_FRONTEND_DAI_MAX);
  2269. if (i < MSM_FRONTEND_DAI_MAX)
  2270. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2271. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2272. __func__, i, session, be_id, acdb_id);
  2273. mutex_unlock(&routing_lock);
  2274. exit:
  2275. return acdb_id;
  2276. }
  2277. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2278. struct snd_ctl_elem_value *ucontrol)
  2279. {
  2280. ucontrol->value.integer.value[0] = fm_switch_enable;
  2281. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2282. ucontrol->value.integer.value[0]);
  2283. return 0;
  2284. }
  2285. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2286. struct snd_ctl_elem_value *ucontrol)
  2287. {
  2288. struct snd_soc_dapm_widget *widget =
  2289. snd_soc_dapm_kcontrol_widget(kcontrol);
  2290. struct snd_soc_dapm_update *update = NULL;
  2291. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2292. ucontrol->value.integer.value[0]);
  2293. if (ucontrol->value.integer.value[0])
  2294. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2295. update);
  2296. else
  2297. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2298. update);
  2299. fm_switch_enable = ucontrol->value.integer.value[0];
  2300. return 1;
  2301. }
  2302. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2303. struct snd_ctl_elem_value *ucontrol)
  2304. {
  2305. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2306. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2307. ucontrol->value.integer.value[0]);
  2308. return 0;
  2309. }
  2310. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2311. struct snd_ctl_elem_value *ucontrol)
  2312. {
  2313. struct snd_soc_dapm_widget *widget =
  2314. snd_soc_dapm_kcontrol_widget(kcontrol);
  2315. struct snd_soc_dapm_update *update = NULL;
  2316. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2317. ucontrol->value.integer.value[0]);
  2318. if (ucontrol->value.integer.value[0])
  2319. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2320. 1, update);
  2321. else
  2322. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2323. 0, update);
  2324. hfp_switch_enable = ucontrol->value.integer.value[0];
  2325. return 1;
  2326. }
  2327. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2328. struct snd_ctl_elem_value *ucontrol)
  2329. {
  2330. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2331. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2332. ucontrol->value.integer.value[0]);
  2333. return 0;
  2334. }
  2335. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2336. struct snd_ctl_elem_value *ucontrol)
  2337. {
  2338. struct snd_soc_dapm_widget *widget =
  2339. snd_soc_dapm_kcontrol_widget(kcontrol);
  2340. struct snd_soc_dapm_update *update = NULL;
  2341. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2342. ucontrol->value.integer.value[0]);
  2343. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2344. if (a2dp_switch_enable)
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2346. 1, update);
  2347. else
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2349. 0, update);
  2350. return 1;
  2351. }
  2352. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2353. struct snd_ctl_elem_value *ucontrol)
  2354. {
  2355. ucontrol->value.integer.value[0] = sco_switch_enable;
  2356. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2357. ucontrol->value.integer.value[0]);
  2358. return 0;
  2359. }
  2360. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2361. struct snd_ctl_elem_value *ucontrol)
  2362. {
  2363. struct snd_soc_dapm_widget *widget =
  2364. snd_soc_dapm_kcontrol_widget(kcontrol);
  2365. struct snd_soc_dapm_update *update = NULL;
  2366. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2367. ucontrol->value.integer.value[0]);
  2368. sco_switch_enable = ucontrol->value.integer.value[0];
  2369. if (sco_switch_enable)
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2371. 1, update);
  2372. else
  2373. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2374. 0, update);
  2375. return 1;
  2376. }
  2377. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2378. struct snd_ctl_elem_value *ucontrol)
  2379. {
  2380. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2381. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2382. ucontrol->value.integer.value[0]);
  2383. return 0;
  2384. }
  2385. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2386. struct snd_ctl_elem_value *ucontrol)
  2387. {
  2388. struct snd_soc_dapm_widget *widget =
  2389. snd_soc_dapm_kcontrol_widget(kcontrol);
  2390. struct snd_soc_dapm_update *update = NULL;
  2391. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2392. ucontrol->value.integer.value[0]);
  2393. if (ucontrol->value.integer.value[0])
  2394. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2395. update);
  2396. else
  2397. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2398. update);
  2399. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2400. return 1;
  2401. }
  2402. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2403. struct snd_ctl_elem_value *ucontrol)
  2404. {
  2405. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2406. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2407. ucontrol->value.integer.value[0]);
  2408. return 0;
  2409. }
  2410. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2411. struct snd_ctl_elem_value *ucontrol)
  2412. {
  2413. struct snd_soc_dapm_widget *widget =
  2414. snd_soc_dapm_kcontrol_widget(kcontrol);
  2415. struct snd_soc_dapm_update *update = NULL;
  2416. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2417. ucontrol->value.integer.value[0]);
  2418. if (ucontrol->value.integer.value[0])
  2419. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2420. update);
  2421. else
  2422. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2423. update);
  2424. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2425. return 1;
  2426. }
  2427. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2428. struct snd_ctl_elem_value *ucontrol)
  2429. {
  2430. ucontrol->value.integer.value[0] = usb_switch_enable;
  2431. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2432. ucontrol->value.integer.value[0]);
  2433. return 0;
  2434. }
  2435. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2436. struct snd_ctl_elem_value *ucontrol)
  2437. {
  2438. struct snd_soc_dapm_widget *widget =
  2439. snd_soc_dapm_kcontrol_widget(kcontrol);
  2440. struct snd_soc_dapm_update *update = NULL;
  2441. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2442. ucontrol->value.integer.value[0]);
  2443. if (ucontrol->value.integer.value[0])
  2444. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2445. 1, update);
  2446. else
  2447. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2448. 0, update);
  2449. usb_switch_enable = ucontrol->value.integer.value[0];
  2450. return 1;
  2451. }
  2452. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2453. struct snd_ctl_elem_value *ucontrol)
  2454. {
  2455. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2456. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2457. ucontrol->value.integer.value[0]);
  2458. return 0;
  2459. }
  2460. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2461. struct snd_ctl_elem_value *ucontrol)
  2462. {
  2463. struct snd_soc_dapm_widget *widget =
  2464. snd_soc_dapm_kcontrol_widget(kcontrol);
  2465. struct snd_soc_dapm_update *update = NULL;
  2466. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2467. ucontrol->value.integer.value[0]);
  2468. if (ucontrol->value.integer.value[0])
  2469. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2470. update);
  2471. else
  2472. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2473. update);
  2474. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2475. return 1;
  2476. }
  2477. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2478. struct snd_ctl_elem_value *ucontrol)
  2479. {
  2480. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2481. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2482. ucontrol->value.integer.value[0]);
  2483. return 0;
  2484. }
  2485. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2486. struct snd_ctl_elem_value *ucontrol)
  2487. {
  2488. struct snd_soc_dapm_widget *widget =
  2489. snd_soc_dapm_kcontrol_widget(kcontrol);
  2490. struct snd_soc_dapm_update *update = NULL;
  2491. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2492. ucontrol->value.integer.value[0]);
  2493. if (ucontrol->value.integer.value[0])
  2494. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2495. update);
  2496. else
  2497. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2498. update);
  2499. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2500. return 1;
  2501. }
  2502. static int msm_routing_get_tert_mi2s_switch_mixer(
  2503. struct snd_kcontrol *kcontrol,
  2504. struct snd_ctl_elem_value *ucontrol)
  2505. {
  2506. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2507. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2508. ucontrol->value.integer.value[0]);
  2509. return 0;
  2510. }
  2511. static int msm_routing_put_tert_mi2s_switch_mixer(
  2512. struct snd_kcontrol *kcontrol,
  2513. struct snd_ctl_elem_value *ucontrol)
  2514. {
  2515. struct snd_soc_dapm_widget *widget =
  2516. snd_soc_dapm_kcontrol_widget(kcontrol);
  2517. struct snd_soc_dapm_update *update = NULL;
  2518. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2519. ucontrol->value.integer.value[0]);
  2520. if (ucontrol->value.integer.value[0])
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2522. update);
  2523. else
  2524. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2525. update);
  2526. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2527. return 1;
  2528. }
  2529. static int msm_routing_get_quat_mi2s_switch_mixer(
  2530. struct snd_kcontrol *kcontrol,
  2531. struct snd_ctl_elem_value *ucontrol)
  2532. {
  2533. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2534. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2535. ucontrol->value.integer.value[0]);
  2536. return 0;
  2537. }
  2538. static int msm_routing_put_quat_mi2s_switch_mixer(
  2539. struct snd_kcontrol *kcontrol,
  2540. struct snd_ctl_elem_value *ucontrol)
  2541. {
  2542. struct snd_soc_dapm_widget *widget =
  2543. snd_soc_dapm_kcontrol_widget(kcontrol);
  2544. struct snd_soc_dapm_update *update = NULL;
  2545. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2546. ucontrol->value.integer.value[0]);
  2547. if (ucontrol->value.integer.value[0])
  2548. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2549. update);
  2550. else
  2551. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2552. update);
  2553. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2554. return 1;
  2555. }
  2556. static int msm_routing_get_quin_mi2s_switch_mixer(
  2557. struct snd_kcontrol *kcontrol,
  2558. struct snd_ctl_elem_value *ucontrol)
  2559. {
  2560. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2561. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2562. ucontrol->value.integer.value[0]);
  2563. return 0;
  2564. }
  2565. static int msm_routing_put_quin_mi2s_switch_mixer(
  2566. struct snd_kcontrol *kcontrol,
  2567. struct snd_ctl_elem_value *ucontrol)
  2568. {
  2569. struct snd_soc_dapm_widget *widget =
  2570. snd_soc_dapm_kcontrol_widget(kcontrol);
  2571. struct snd_soc_dapm_update *update = NULL;
  2572. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2573. ucontrol->value.integer.value[0]);
  2574. if (ucontrol->value.integer.value[0])
  2575. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2576. update);
  2577. else
  2578. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2579. update);
  2580. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2581. return 1;
  2582. }
  2583. static int msm_routing_get_sen_mi2s_switch_mixer(
  2584. struct snd_kcontrol *kcontrol,
  2585. struct snd_ctl_elem_value *ucontrol)
  2586. {
  2587. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2588. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2589. ucontrol->value.integer.value[0]);
  2590. return 0;
  2591. }
  2592. static int msm_routing_put_sen_mi2s_switch_mixer(
  2593. struct snd_kcontrol *kcontrol,
  2594. struct snd_ctl_elem_value *ucontrol)
  2595. {
  2596. struct snd_soc_dapm_widget *widget =
  2597. snd_soc_dapm_kcontrol_widget(kcontrol);
  2598. struct snd_soc_dapm_update *update = NULL;
  2599. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2600. ucontrol->value.integer.value[0]);
  2601. if (ucontrol->value.integer.value[0])
  2602. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2603. update);
  2604. else
  2605. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2606. update);
  2607. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2608. return 1;
  2609. }
  2610. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2611. struct snd_ctl_elem_value *ucontrol)
  2612. {
  2613. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2614. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2615. ucontrol->value.integer.value[0]);
  2616. return 0;
  2617. }
  2618. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2619. struct snd_ctl_elem_value *ucontrol)
  2620. {
  2621. struct snd_soc_dapm_widget *widget =
  2622. snd_soc_dapm_kcontrol_widget(kcontrol);
  2623. struct snd_soc_dapm_update *update = NULL;
  2624. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2625. ucontrol->value.integer.value[0]);
  2626. if (ucontrol->value.integer.value[0])
  2627. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2628. update);
  2629. else
  2630. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2631. update);
  2632. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2633. return 1;
  2634. }
  2635. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2636. struct snd_ctl_elem_value *ucontrol)
  2637. {
  2638. ucontrol->value.integer.value[0] = lsm_port_index;
  2639. return 0;
  2640. }
  2641. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2642. struct snd_ctl_elem_value *ucontrol)
  2643. {
  2644. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2645. int mux = ucontrol->value.enumerated.item[0];
  2646. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2647. if (mux >= e->items) {
  2648. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2649. return -EINVAL;
  2650. }
  2651. pr_debug("%s: LSM enable %ld\n", __func__,
  2652. ucontrol->value.integer.value[0]);
  2653. switch (ucontrol->value.integer.value[0]) {
  2654. case 1:
  2655. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2656. break;
  2657. case 2:
  2658. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2659. break;
  2660. case 3:
  2661. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2662. break;
  2663. case 4:
  2664. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2665. break;
  2666. case 5:
  2667. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2668. break;
  2669. case 6:
  2670. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2671. break;
  2672. case 7:
  2673. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2674. break;
  2675. case 8:
  2676. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2677. break;
  2678. case 9:
  2679. lsm_port = ADM_LSM_PORT_ID;
  2680. break;
  2681. case 10:
  2682. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2683. break;
  2684. case 11:
  2685. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2686. break;
  2687. case 12:
  2688. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2689. break;
  2690. case 13:
  2691. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2692. break;
  2693. case 14:
  2694. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2695. break;
  2696. case 15:
  2697. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2698. break;
  2699. default:
  2700. pr_err("Default lsm port");
  2701. break;
  2702. }
  2703. set_lsm_port(lsm_port);
  2704. lsm_port_index = ucontrol->value.integer.value[0];
  2705. return 0;
  2706. }
  2707. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2708. struct snd_ctl_elem_value *ucontrol)
  2709. {
  2710. int i;
  2711. u16 port_id;
  2712. enum afe_mad_type mad_type;
  2713. pr_debug("%s: enter\n", __func__);
  2714. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2715. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2716. strlen(lsm_port_text[i])))
  2717. break;
  2718. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2719. pr_warn("%s: Invalid id name %s\n", __func__,
  2720. kcontrol->id.name);
  2721. return -EINVAL;
  2722. }
  2723. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2724. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2725. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2726. strlen(lsm_port_text[7])))
  2727. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2728. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2729. strlen(lsm_port_text[8])))
  2730. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2731. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2732. strlen(lsm_port_text[10])))
  2733. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2734. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2735. strlen(lsm_port_text[13])))
  2736. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2737. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2738. strlen(lsm_port_text[14])))
  2739. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2740. mad_type = afe_port_get_mad_type(port_id);
  2741. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2742. mad_type);
  2743. switch (mad_type) {
  2744. case MAD_HW_NONE:
  2745. ucontrol->value.integer.value[0] = MADNONE;
  2746. break;
  2747. case MAD_HW_AUDIO:
  2748. ucontrol->value.integer.value[0] = MADAUDIO;
  2749. break;
  2750. case MAD_HW_BEACON:
  2751. ucontrol->value.integer.value[0] = MADBEACON;
  2752. break;
  2753. case MAD_HW_ULTRASOUND:
  2754. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2755. break;
  2756. case MAD_SW_AUDIO:
  2757. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2758. break;
  2759. default:
  2760. pr_warn("%s: Unknown\n", __func__);
  2761. return -EINVAL;
  2762. }
  2763. return 0;
  2764. }
  2765. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2766. struct snd_ctl_elem_value *ucontrol)
  2767. {
  2768. int i;
  2769. u16 port_id;
  2770. enum afe_mad_type mad_type;
  2771. pr_debug("%s: enter\n", __func__);
  2772. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2773. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2774. strlen(lsm_port_text[i])))
  2775. break;
  2776. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2777. pr_warn("%s: Invalid id name %s\n", __func__,
  2778. kcontrol->id.name);
  2779. return -EINVAL;
  2780. }
  2781. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2782. switch (ucontrol->value.integer.value[0]) {
  2783. case MADNONE:
  2784. mad_type = MAD_HW_NONE;
  2785. break;
  2786. case MADAUDIO:
  2787. mad_type = MAD_HW_AUDIO;
  2788. break;
  2789. case MADBEACON:
  2790. mad_type = MAD_HW_BEACON;
  2791. break;
  2792. case MADULTRASOUND:
  2793. mad_type = MAD_HW_ULTRASOUND;
  2794. break;
  2795. case MADSWAUDIO:
  2796. mad_type = MAD_SW_AUDIO;
  2797. break;
  2798. default:
  2799. pr_warn("%s: Unknown\n", __func__);
  2800. return -EINVAL;
  2801. }
  2802. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2803. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2804. strlen(lsm_port_text[7])))
  2805. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2806. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2807. strlen(lsm_port_text[8])))
  2808. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2809. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2810. strlen(lsm_port_text[10])))
  2811. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2812. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2813. strlen(lsm_port_text[13])))
  2814. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2815. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2816. strlen(lsm_port_text[14])))
  2817. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2818. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2819. mad_type);
  2820. return afe_port_set_mad_type(port_id, mad_type);
  2821. }
  2822. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2823. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2824. adm_override_chs_text);
  2825. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2826. {
  2827. int backend_id;
  2828. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2829. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2830. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2831. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2832. } else {
  2833. pr_err("%s: unsupported backend id: %s",
  2834. __func__, kcontrol->id.name);
  2835. return -EINVAL;
  2836. }
  2837. return backend_id;
  2838. }
  2839. static int msm_routing_adm_channel_config_get(
  2840. struct snd_kcontrol *kcontrol,
  2841. struct snd_ctl_elem_value *ucontrol)
  2842. {
  2843. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2844. if (backend_id >= 0) {
  2845. mutex_lock(&routing_lock);
  2846. ucontrol->value.integer.value[0] =
  2847. msm_bedais[backend_id].adm_override_ch;
  2848. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2849. ucontrol->value.integer.value[0], backend_id);
  2850. mutex_unlock(&routing_lock);
  2851. }
  2852. return 0;
  2853. }
  2854. static int msm_routing_adm_channel_config_put(
  2855. struct snd_kcontrol *kcontrol,
  2856. struct snd_ctl_elem_value *ucontrol)
  2857. {
  2858. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2859. if (backend_id >= 0) {
  2860. mutex_lock(&routing_lock);
  2861. msm_bedais[backend_id].adm_override_ch =
  2862. ucontrol->value.integer.value[0];
  2863. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2864. __func__, backend_id,
  2865. msm_bedais[backend_id].adm_override_ch);
  2866. mutex_unlock(&routing_lock);
  2867. }
  2868. return 0;
  2869. }
  2870. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2871. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2872. msm_routing_adm_channel_config_get,
  2873. msm_routing_adm_channel_config_put),
  2874. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2875. msm_routing_adm_channel_config_get,
  2876. msm_routing_adm_channel_config_put),
  2877. };
  2878. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2879. struct snd_ctl_elem_value *ucontrol)
  2880. {
  2881. mutex_lock(&routing_lock);
  2882. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2883. mutex_unlock(&routing_lock);
  2884. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2885. ucontrol->value.integer.value[0]);
  2886. return 0;
  2887. };
  2888. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2889. struct snd_ctl_elem_value *ucontrol)
  2890. {
  2891. struct aanc_data aanc_info;
  2892. mutex_lock(&routing_lock);
  2893. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2894. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2895. ucontrol->value.integer.value[0]);
  2896. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2897. if (ucontrol->value.integer.value[0] == 0) {
  2898. aanc_info.aanc_active = false;
  2899. aanc_info.aanc_tx_port = 0;
  2900. aanc_info.aanc_rx_port = 0;
  2901. } else {
  2902. aanc_info.aanc_active = true;
  2903. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2904. aanc_info.aanc_tx_port =
  2905. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2906. }
  2907. afe_set_aanc_info(&aanc_info);
  2908. mutex_unlock(&routing_lock);
  2909. return 0;
  2910. };
  2911. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2912. struct snd_ctl_elem_value *ucontrol)
  2913. {
  2914. int idx = 0, shift = 0;
  2915. struct soc_mixer_control *mc =
  2916. (struct soc_mixer_control *)kcontrol->private_value;
  2917. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2918. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2919. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2920. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2921. return -EINVAL;
  2922. }
  2923. if (test_bit(shift,
  2924. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2925. ucontrol->value.integer.value[0] = 1;
  2926. else
  2927. ucontrol->value.integer.value[0] = 0;
  2928. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2929. ucontrol->value.integer.value[0]);
  2930. return 0;
  2931. }
  2932. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2933. struct snd_ctl_elem_value *ucontrol)
  2934. {
  2935. int idx = 0, shift = 0;
  2936. struct soc_mixer_control *mc =
  2937. (struct soc_mixer_control *)kcontrol->private_value;
  2938. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2939. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2940. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2941. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2942. return -EINVAL;
  2943. }
  2944. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2945. __func__, mc->shift, mc->rshift,
  2946. ucontrol->value.integer.value[0], idx, shift);
  2947. if (ucontrol->value.integer.value[0]) {
  2948. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2949. msm_bedais[mc->rshift].port_id);
  2950. set_bit(shift,
  2951. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2952. } else {
  2953. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2954. msm_bedais[mc->rshift].port_id);
  2955. clear_bit(shift,
  2956. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2957. }
  2958. return 1;
  2959. }
  2960. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2961. struct snd_ctl_elem_value *ucontrol)
  2962. {
  2963. u16 fe_id = 0;
  2964. fe_id = ((struct soc_mixer_control *)
  2965. kcontrol->private_value)->shift;
  2966. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2967. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2968. return -EINVAL;
  2969. }
  2970. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2971. return 0;
  2972. }
  2973. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2974. struct snd_ctl_elem_value *ucontrol)
  2975. {
  2976. u16 fe_id = 0;
  2977. fe_id = ((struct soc_mixer_control *)
  2978. kcontrol->private_value)->shift;
  2979. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2980. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2981. return -EINVAL;
  2982. }
  2983. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2984. return 1;
  2985. }
  2986. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2987. struct snd_ctl_elem_value *ucontrol)
  2988. {
  2989. u16 fe_id = 0;
  2990. fe_id = ((struct soc_multi_mixer_control *)
  2991. kcontrol->private_value)->shift;
  2992. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2993. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2994. return -EINVAL;
  2995. }
  2996. ucontrol->value.integer.value[0] =
  2997. channel_mixer[fe_id].output_channel;
  2998. return 0;
  2999. }
  3000. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3001. struct snd_ctl_elem_value *ucontrol)
  3002. {
  3003. u16 fe_id = 0;
  3004. fe_id = ((struct soc_multi_mixer_control *)
  3005. kcontrol->private_value)->shift;
  3006. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3007. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3008. return -EINVAL;
  3009. }
  3010. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3011. fe_id,
  3012. (unsigned int)(ucontrol->value.integer.value[0]));
  3013. channel_mixer[fe_id].output_channel =
  3014. (unsigned int)(ucontrol->value.integer.value[0]);
  3015. return 1;
  3016. }
  3017. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3018. /* If new backend is added, need update this array */
  3019. static const char *const be_name[] = {
  3020. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3021. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3022. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3023. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3024. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3025. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3026. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3027. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3028. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3029. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3030. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3031. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3032. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3033. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3034. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3035. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3036. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3037. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3038. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3039. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3040. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3041. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3042. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3043. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3044. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3045. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3046. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3047. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3048. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3049. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3050. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3051. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3052. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3053. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3054. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3055. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3056. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3057. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3058. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3059. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3060. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3061. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3062. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3063. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3064. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3065. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3066. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3067. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3068. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3069. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3070. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3071. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3072. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX"
  3073. };
  3074. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3075. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3076. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3077. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3078. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3079. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3080. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3081. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3082. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3083. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3084. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3085. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3086. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3087. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3088. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3089. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3090. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3091. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3092. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3093. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3094. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3095. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3096. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3097. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3098. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3099. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3100. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3101. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3102. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3103. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3104. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3105. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3106. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3107. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3108. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3109. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3110. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3111. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3112. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3113. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3114. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3115. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3116. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3117. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3118. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3119. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3120. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3121. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3122. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3123. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3124. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3126. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3128. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3129. unsigned int channels,
  3130. unsigned int items, const char *const names[])
  3131. {
  3132. if (uinfo->value.enumerated.item >= items)
  3133. uinfo->value.enumerated.item = items - 1;
  3134. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3135. sizeof(uinfo->value.enumerated.name),
  3136. "ALSA: too long item name '%s'\n",
  3137. names[uinfo->value.enumerated.item]);
  3138. strlcpy(uinfo->value.enumerated.name,
  3139. names[uinfo->value.enumerated.item],
  3140. sizeof(uinfo->value.enumerated.name));
  3141. return 0;
  3142. }
  3143. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3144. struct snd_ctl_elem_info *uinfo)
  3145. {
  3146. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3147. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3148. uinfo->count = 1;
  3149. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3150. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3151. return 0;
  3152. }
  3153. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3154. struct snd_ctl_elem_value *ucontrol)
  3155. {
  3156. u16 fe_id = 0;
  3157. fe_id = ((struct soc_enum *)
  3158. kcontrol->private_value)->shift_l;
  3159. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3160. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3161. return -EINVAL;
  3162. }
  3163. pr_debug("%s: FE %d %s\n", __func__,
  3164. fe_id,
  3165. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3166. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3167. return 0;
  3168. }
  3169. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3170. struct snd_ctl_elem_value *ucontrol)
  3171. {
  3172. u16 fe_id = 0;
  3173. fe_id = ((struct soc_enum *)
  3174. kcontrol->private_value)->shift_l;
  3175. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3176. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3177. return -EINVAL;
  3178. }
  3179. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3180. pr_debug("%s: %s FE %d\n", __func__,
  3181. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3182. fe_id);
  3183. return 0;
  3184. }
  3185. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3186. struct snd_ctl_elem_info *uinfo)
  3187. {
  3188. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3189. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3190. uinfo->count = 1;
  3191. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3192. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3193. return 0;
  3194. }
  3195. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3196. struct snd_ctl_elem_value *ucontrol)
  3197. {
  3198. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3199. u16 fe_id = 0, in_ch = 0;
  3200. fe_id = e->shift_l;
  3201. in_ch = e->shift_r;
  3202. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3203. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3204. return -EINVAL;
  3205. }
  3206. if (in_ch >= ADM_MAX_CHANNELS) {
  3207. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3208. return -EINVAL;
  3209. }
  3210. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3211. return 1;
  3212. }
  3213. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3214. struct snd_ctl_elem_value *ucontrol)
  3215. {
  3216. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3217. u16 fe_id = 0, in_ch = 0;
  3218. fe_id = e->shift_l;
  3219. in_ch = e->shift_r;
  3220. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3221. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3222. return -EINVAL;
  3223. }
  3224. if (in_ch >= ADM_MAX_CHANNELS) {
  3225. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3226. return -EINVAL;
  3227. }
  3228. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3229. return 1;
  3230. }
  3231. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3232. struct snd_ctl_elem_info *uinfo)
  3233. {
  3234. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3235. uinfo->count = ADM_MAX_CHANNELS;
  3236. uinfo->value.integer.min = 0;
  3237. uinfo->value.integer.max = WEIGHT_0_DB;
  3238. return 0;
  3239. }
  3240. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3241. struct snd_ctl_elem_value *ucontrol)
  3242. {
  3243. u16 fe_id = 0, out_ch = 0;
  3244. int i, weight;
  3245. fe_id = ((struct soc_multi_mixer_control *)
  3246. kcontrol->private_value)->shift;
  3247. out_ch = ((struct soc_multi_mixer_control *)
  3248. kcontrol->private_value)->rshift;
  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. if (out_ch >= ADM_MAX_CHANNELS) {
  3254. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3255. return -EINVAL;
  3256. }
  3257. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3258. __func__, fe_id,
  3259. ucontrol->value.integer.value[0],
  3260. ucontrol->value.integer.value[1],
  3261. ucontrol->value.integer.value[2],
  3262. ucontrol->value.integer.value[3],
  3263. ucontrol->value.integer.value[4],
  3264. ucontrol->value.integer.value[5],
  3265. ucontrol->value.integer.value[6],
  3266. ucontrol->value.integer.value[7]);
  3267. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3268. weight = ucontrol->value.integer.value[i];
  3269. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3270. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3271. __func__, fe_id, out_ch, i,
  3272. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3273. }
  3274. return 0;
  3275. }
  3276. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3277. struct snd_ctl_elem_value *ucontrol)
  3278. {
  3279. u16 fe_id = 0, out_ch = 0;
  3280. int i;
  3281. fe_id = ((struct soc_multi_mixer_control *)
  3282. kcontrol->private_value)->shift;
  3283. out_ch = ((struct soc_multi_mixer_control *)
  3284. kcontrol->private_value)->rshift;
  3285. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3286. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3287. return -EINVAL;
  3288. }
  3289. if (out_ch >= ADM_MAX_CHANNELS) {
  3290. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3291. return -EINVAL;
  3292. }
  3293. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3294. ucontrol->value.integer.value[i] =
  3295. channel_mixer[fe_id].channel_weight[out_ch][i];
  3296. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3297. __func__, fe_id,
  3298. ucontrol->value.integer.value[0],
  3299. ucontrol->value.integer.value[1],
  3300. ucontrol->value.integer.value[2],
  3301. ucontrol->value.integer.value[3],
  3302. ucontrol->value.integer.value[4],
  3303. ucontrol->value.integer.value[5],
  3304. ucontrol->value.integer.value[6],
  3305. ucontrol->value.integer.value[7]);
  3306. return 0;
  3307. }
  3308. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3309. struct snd_ctl_elem_info *uinfo)
  3310. {
  3311. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3312. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3313. /* Valid channel map value ranges from 1 to 64 */
  3314. uinfo->value.integer.min = 0;
  3315. uinfo->value.integer.max = 64;
  3316. return 0;
  3317. }
  3318. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3319. struct snd_ctl_elem_value *ucontrol)
  3320. {
  3321. u16 fe_id = 0;
  3322. int i, ch_map;
  3323. fe_id = ((struct soc_multi_mixer_control *)
  3324. kcontrol->private_value)->shift;
  3325. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3326. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3327. return -EINVAL;
  3328. }
  3329. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3330. ch_map = ucontrol->value.integer.value[i];
  3331. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3332. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3333. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3334. }
  3335. /* Make override_out_ch_map false if ch map is reset */
  3336. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3337. channel_mixer[fe_id].override_out_ch_map = false;
  3338. else
  3339. channel_mixer[fe_id].override_out_ch_map = true;
  3340. return 0;
  3341. }
  3342. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3343. struct snd_ctl_elem_value *ucontrol)
  3344. {
  3345. u16 fe_id = 0;
  3346. int i;
  3347. fe_id = ((struct soc_multi_mixer_control *)
  3348. kcontrol->private_value)->shift;
  3349. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3350. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3351. return -EINVAL;
  3352. }
  3353. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3354. ucontrol->value.integer.value[i] =
  3355. channel_mixer[fe_id].out_ch_map[i];
  3356. return 0;
  3357. }
  3358. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3359. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3360. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3361. msm_pcm_get_channel_rule_index,
  3362. msm_pcm_put_channel_rule_index),
  3363. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3364. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3365. msm_pcm_get_channel_rule_index,
  3366. msm_pcm_put_channel_rule_index),
  3367. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3368. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3369. msm_pcm_get_channel_rule_index,
  3370. msm_pcm_put_channel_rule_index),
  3371. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3372. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3373. msm_pcm_get_channel_rule_index,
  3374. msm_pcm_put_channel_rule_index),
  3375. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3376. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3377. msm_pcm_get_channel_rule_index,
  3378. msm_pcm_put_channel_rule_index),
  3379. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3380. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3381. msm_pcm_get_channel_rule_index,
  3382. msm_pcm_put_channel_rule_index),
  3383. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3384. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3385. msm_pcm_get_channel_rule_index,
  3386. msm_pcm_put_channel_rule_index),
  3387. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3388. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3389. msm_pcm_get_channel_rule_index,
  3390. msm_pcm_put_channel_rule_index),
  3391. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3392. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3393. msm_pcm_get_channel_rule_index,
  3394. msm_pcm_put_channel_rule_index),
  3395. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3396. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3397. msm_pcm_get_channel_rule_index,
  3398. msm_pcm_put_channel_rule_index),
  3399. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3400. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3401. msm_pcm_get_channel_rule_index,
  3402. msm_pcm_put_channel_rule_index),
  3403. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3404. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3405. msm_pcm_get_out_chs,
  3406. msm_pcm_put_out_chs),
  3407. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3408. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3409. msm_pcm_get_out_chs,
  3410. msm_pcm_put_out_chs),
  3411. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3412. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3413. msm_pcm_get_out_chs,
  3414. msm_pcm_put_out_chs),
  3415. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3416. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3417. msm_pcm_get_out_chs,
  3418. msm_pcm_put_out_chs),
  3419. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3420. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3421. msm_pcm_get_out_chs,
  3422. msm_pcm_put_out_chs),
  3423. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3424. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3425. msm_pcm_get_out_chs,
  3426. msm_pcm_put_out_chs),
  3427. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3428. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3429. msm_pcm_get_out_chs,
  3430. msm_pcm_put_out_chs),
  3431. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3432. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3433. msm_pcm_get_out_chs,
  3434. msm_pcm_put_out_chs),
  3435. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3436. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3437. msm_pcm_get_out_chs,
  3438. msm_pcm_put_out_chs),
  3439. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3441. msm_pcm_get_out_chs,
  3442. msm_pcm_put_out_chs),
  3443. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3444. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3445. msm_pcm_get_out_chs,
  3446. msm_pcm_put_out_chs),
  3447. {
  3448. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3449. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3450. .name = "MultiMedia1 Channel Mixer",
  3451. .info = msm_pcm_channel_mixer_info,
  3452. .get = msm_pcm_channel_mixer_get,
  3453. .put = msm_pcm_channel_mixer_put,
  3454. .private_value = (unsigned long)&(mm1_channel_mux)
  3455. },
  3456. {
  3457. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3458. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3459. .name = "MultiMedia2 Channel Mixer",
  3460. .info = msm_pcm_channel_mixer_info,
  3461. .get = msm_pcm_channel_mixer_get,
  3462. .put = msm_pcm_channel_mixer_put,
  3463. .private_value = (unsigned long)&(mm2_channel_mux)
  3464. },
  3465. {
  3466. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3468. .name = "MultiMedia3 Channel Mixer",
  3469. .info = msm_pcm_channel_mixer_info,
  3470. .get = msm_pcm_channel_mixer_get,
  3471. .put = msm_pcm_channel_mixer_put,
  3472. .private_value = (unsigned long)&(mm3_channel_mux)
  3473. },
  3474. {
  3475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3476. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3477. .name = "MultiMedia4 Channel Mixer",
  3478. .info = msm_pcm_channel_mixer_info,
  3479. .get = msm_pcm_channel_mixer_get,
  3480. .put = msm_pcm_channel_mixer_put,
  3481. .private_value = (unsigned long)&(mm4_channel_mux)
  3482. },
  3483. {
  3484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3485. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3486. .name = "MultiMedia18 Channel Mixer",
  3487. .info = msm_pcm_channel_mixer_info,
  3488. .get = msm_pcm_channel_mixer_get,
  3489. .put = msm_pcm_channel_mixer_put,
  3490. .private_value = (unsigned long)&(mm18_channel_mux)
  3491. },
  3492. {
  3493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3494. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3495. .name = "MultiMedia19 Channel Mixer",
  3496. .info = msm_pcm_channel_mixer_info,
  3497. .get = msm_pcm_channel_mixer_get,
  3498. .put = msm_pcm_channel_mixer_put,
  3499. .private_value = (unsigned long)&(mm19_channel_mux)
  3500. },
  3501. {
  3502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3504. .name = "MultiMedia28 Channel Mixer",
  3505. .info = msm_pcm_channel_mixer_info,
  3506. .get = msm_pcm_channel_mixer_get,
  3507. .put = msm_pcm_channel_mixer_put,
  3508. .private_value = (unsigned long)&(mm28_channel_mux)
  3509. },
  3510. {
  3511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3513. .name = "MultiMedia29 Channel Mixer",
  3514. .info = msm_pcm_channel_mixer_info,
  3515. .get = msm_pcm_channel_mixer_get,
  3516. .put = msm_pcm_channel_mixer_put,
  3517. .private_value = (unsigned long)&(mm29_channel_mux)
  3518. },
  3519. {
  3520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3522. .name = "MultiMedia30 Channel Mixer",
  3523. .info = msm_pcm_channel_mixer_info,
  3524. .get = msm_pcm_channel_mixer_get,
  3525. .put = msm_pcm_channel_mixer_put,
  3526. .private_value = (unsigned long)&(mm30_channel_mux)
  3527. },
  3528. {
  3529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3531. .name = "MultiMedia1 Output Channel1",
  3532. .info = msm_pcm_channel_weight_info,
  3533. .get = msm_pcm_channel_weight_get,
  3534. .put = msm_pcm_channel_weight_put,
  3535. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3536. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3537. },
  3538. {
  3539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3541. .name = "MultiMedia1 Output Channel2",
  3542. .info = msm_pcm_channel_weight_info,
  3543. .get = msm_pcm_channel_weight_get,
  3544. .put = msm_pcm_channel_weight_put,
  3545. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3546. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3547. },
  3548. {
  3549. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3550. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3551. .name = "MultiMedia1 Output Channel3",
  3552. .info = msm_pcm_channel_weight_info,
  3553. .get = msm_pcm_channel_weight_get,
  3554. .put = msm_pcm_channel_weight_put,
  3555. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3556. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3557. },
  3558. {
  3559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3561. .name = "MultiMedia1 Output Channel4",
  3562. .info = msm_pcm_channel_weight_info,
  3563. .get = msm_pcm_channel_weight_get,
  3564. .put = msm_pcm_channel_weight_put,
  3565. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3566. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3567. },
  3568. {
  3569. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3571. .name = "MultiMedia1 Output Channel5",
  3572. .info = msm_pcm_channel_weight_info,
  3573. .get = msm_pcm_channel_weight_get,
  3574. .put = msm_pcm_channel_weight_put,
  3575. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3576. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel6",
  3582. .info = msm_pcm_channel_weight_info,
  3583. .get = msm_pcm_channel_weight_get,
  3584. .put = msm_pcm_channel_weight_put,
  3585. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3586. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel7",
  3592. .info = msm_pcm_channel_weight_info,
  3593. .get = msm_pcm_channel_weight_get,
  3594. .put = msm_pcm_channel_weight_put,
  3595. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3596. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel8",
  3602. .info = msm_pcm_channel_weight_info,
  3603. .get = msm_pcm_channel_weight_get,
  3604. .put = msm_pcm_channel_weight_put,
  3605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel9",
  3612. .info = msm_pcm_channel_weight_info,
  3613. .get = msm_pcm_channel_weight_get,
  3614. .put = msm_pcm_channel_weight_put,
  3615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel10",
  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 = 9,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel11",
  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 = 10,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel12",
  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 = 11,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel13",
  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 = 12,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel14",
  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 = 13,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia2 Output Channel1",
  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_MULTIMEDIA2, .rshift = 0,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia2 Output Channel2",
  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_MULTIMEDIA2, .rshift = 1,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia2 Output Channel3",
  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_MULTIMEDIA2, .rshift = 2,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia3 Output Channel1",
  3702. .info = msm_pcm_channel_weight_info,
  3703. .get = msm_pcm_channel_weight_get,
  3704. .put = msm_pcm_channel_weight_put,
  3705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3706. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia3 Output Channel2",
  3712. .info = msm_pcm_channel_weight_info,
  3713. .get = msm_pcm_channel_weight_get,
  3714. .put = msm_pcm_channel_weight_put,
  3715. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3716. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia18 Output Channel1",
  3722. .info = msm_pcm_channel_weight_info,
  3723. .get = msm_pcm_channel_weight_get,
  3724. .put = msm_pcm_channel_weight_put,
  3725. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3726. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia18 Output Channel2",
  3732. .info = msm_pcm_channel_weight_info,
  3733. .get = msm_pcm_channel_weight_get,
  3734. .put = msm_pcm_channel_weight_put,
  3735. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3736. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia18 Output Channel3",
  3742. .info = msm_pcm_channel_weight_info,
  3743. .get = msm_pcm_channel_weight_get,
  3744. .put = msm_pcm_channel_weight_put,
  3745. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3746. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia18 Output Channel4",
  3752. .info = msm_pcm_channel_weight_info,
  3753. .get = msm_pcm_channel_weight_get,
  3754. .put = msm_pcm_channel_weight_put,
  3755. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3756. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia18 Output Channel5",
  3762. .info = msm_pcm_channel_weight_info,
  3763. .get = msm_pcm_channel_weight_get,
  3764. .put = msm_pcm_channel_weight_put,
  3765. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3766. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel6",
  3772. .info = msm_pcm_channel_weight_info,
  3773. .get = msm_pcm_channel_weight_get,
  3774. .put = msm_pcm_channel_weight_put,
  3775. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3776. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel7",
  3782. .info = msm_pcm_channel_weight_info,
  3783. .get = msm_pcm_channel_weight_get,
  3784. .put = msm_pcm_channel_weight_put,
  3785. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3786. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel8",
  3792. .info = msm_pcm_channel_weight_info,
  3793. .get = msm_pcm_channel_weight_get,
  3794. .put = msm_pcm_channel_weight_put,
  3795. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3796. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel9",
  3802. .info = msm_pcm_channel_weight_info,
  3803. .get = msm_pcm_channel_weight_get,
  3804. .put = msm_pcm_channel_weight_put,
  3805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel10",
  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 = 9,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel11",
  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 = 10,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel12",
  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 = 11,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel13",
  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 = 12,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel14",
  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 = 13,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia19 Output Channel1",
  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_MULTIMEDIA19, .rshift = 0,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia19 Output Channel2",
  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_MULTIMEDIA19, .rshift = 1, }
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia19 Output Channel3",
  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_MULTIMEDIA19, .rshift = 2,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia19 Output Channel4",
  3892. .info = msm_pcm_channel_weight_info,
  3893. .get = msm_pcm_channel_weight_get,
  3894. .put = msm_pcm_channel_weight_put,
  3895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3896. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia19 Output Channel5",
  3902. .info = msm_pcm_channel_weight_info,
  3903. .get = msm_pcm_channel_weight_get,
  3904. .put = msm_pcm_channel_weight_put,
  3905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3906. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel6",
  3912. .info = msm_pcm_channel_weight_info,
  3913. .get = msm_pcm_channel_weight_get,
  3914. .put = msm_pcm_channel_weight_put,
  3915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3916. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel7",
  3922. .info = msm_pcm_channel_weight_info,
  3923. .get = msm_pcm_channel_weight_get,
  3924. .put = msm_pcm_channel_weight_put,
  3925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3926. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel8",
  3932. .info = msm_pcm_channel_weight_info,
  3933. .get = msm_pcm_channel_weight_get,
  3934. .put = msm_pcm_channel_weight_put,
  3935. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3936. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel9",
  3942. .info = msm_pcm_channel_weight_info,
  3943. .get = msm_pcm_channel_weight_get,
  3944. .put = msm_pcm_channel_weight_put,
  3945. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3946. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel10",
  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 = 9,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel11",
  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 = 10,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel12",
  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 = 11,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel13",
  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 = 12,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel14",
  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 = 13,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia28 Output Channel1",
  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_MULTIMEDIA28, .rshift = 0,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia28 Output Channel2",
  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_MULTIMEDIA28, .rshift = 1, }
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia28 Output Channel3",
  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_MULTIMEDIA28, .rshift = 2,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia28 Output Channel4",
  4032. .info = msm_pcm_channel_weight_info,
  4033. .get = msm_pcm_channel_weight_get,
  4034. .put = msm_pcm_channel_weight_put,
  4035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia28 Output Channel5",
  4042. .info = msm_pcm_channel_weight_info,
  4043. .get = msm_pcm_channel_weight_get,
  4044. .put = msm_pcm_channel_weight_put,
  4045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel6",
  4052. .info = msm_pcm_channel_weight_info,
  4053. .get = msm_pcm_channel_weight_get,
  4054. .put = msm_pcm_channel_weight_put,
  4055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4056. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel7",
  4062. .info = msm_pcm_channel_weight_info,
  4063. .get = msm_pcm_channel_weight_get,
  4064. .put = msm_pcm_channel_weight_put,
  4065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4066. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel8",
  4072. .info = msm_pcm_channel_weight_info,
  4073. .get = msm_pcm_channel_weight_get,
  4074. .put = msm_pcm_channel_weight_put,
  4075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel9",
  4082. .info = msm_pcm_channel_weight_info,
  4083. .get = msm_pcm_channel_weight_get,
  4084. .put = msm_pcm_channel_weight_put,
  4085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel10",
  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 = 9,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel11",
  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 = 10,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel12",
  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 = 11,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel13",
  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 = 12,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel14",
  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 = 13,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia29 Output Channel1",
  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_MULTIMEDIA29, .rshift = 0,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia29 Output Channel2",
  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_MULTIMEDIA29, .rshift = 1, }
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia29 Output Channel3",
  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_MULTIMEDIA29, .rshift = 2,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia29 Output Channel4",
  4172. .info = msm_pcm_channel_weight_info,
  4173. .get = msm_pcm_channel_weight_get,
  4174. .put = msm_pcm_channel_weight_put,
  4175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4176. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia29 Output Channel5",
  4182. .info = msm_pcm_channel_weight_info,
  4183. .get = msm_pcm_channel_weight_get,
  4184. .put = msm_pcm_channel_weight_put,
  4185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4186. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel6",
  4192. .info = msm_pcm_channel_weight_info,
  4193. .get = msm_pcm_channel_weight_get,
  4194. .put = msm_pcm_channel_weight_put,
  4195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4196. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel7",
  4202. .info = msm_pcm_channel_weight_info,
  4203. .get = msm_pcm_channel_weight_get,
  4204. .put = msm_pcm_channel_weight_put,
  4205. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4206. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel8",
  4212. .info = msm_pcm_channel_weight_info,
  4213. .get = msm_pcm_channel_weight_get,
  4214. .put = msm_pcm_channel_weight_put,
  4215. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4216. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel9",
  4222. .info = msm_pcm_channel_weight_info,
  4223. .get = msm_pcm_channel_weight_get,
  4224. .put = msm_pcm_channel_weight_put,
  4225. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4226. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel10",
  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 = 9,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel11",
  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 = 10,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel12",
  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 = 11,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel13",
  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 = 12,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel14",
  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 = 13,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia30 Output Channel1",
  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_MULTIMEDIA30, .rshift = 0,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia30 Output Channel2",
  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_MULTIMEDIA30, .rshift = 1, }
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia30 Output Channel3",
  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_MULTIMEDIA30, .rshift = 2,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia30 Output Channel4",
  4312. .info = msm_pcm_channel_weight_info,
  4313. .get = msm_pcm_channel_weight_get,
  4314. .put = msm_pcm_channel_weight_put,
  4315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia30 Output Channel5",
  4322. .info = msm_pcm_channel_weight_info,
  4323. .get = msm_pcm_channel_weight_get,
  4324. .put = msm_pcm_channel_weight_put,
  4325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel6",
  4332. .info = msm_pcm_channel_weight_info,
  4333. .get = msm_pcm_channel_weight_get,
  4334. .put = msm_pcm_channel_weight_put,
  4335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel7",
  4342. .info = msm_pcm_channel_weight_info,
  4343. .get = msm_pcm_channel_weight_get,
  4344. .put = msm_pcm_channel_weight_put,
  4345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel8",
  4352. .info = msm_pcm_channel_weight_info,
  4353. .get = msm_pcm_channel_weight_get,
  4354. .put = msm_pcm_channel_weight_put,
  4355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel9",
  4362. .info = msm_pcm_channel_weight_info,
  4363. .get = msm_pcm_channel_weight_get,
  4364. .put = msm_pcm_channel_weight_put,
  4365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4366. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel10",
  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 = 9,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel11",
  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 = 10,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel12",
  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 = 11,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel13",
  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 = 12,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel14",
  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 = 13,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia1 Channel1",
  4422. .info = msm_pcm_channel_input_be_info,
  4423. .get = msm_pcm_channel_input_be_get,
  4424. .put = msm_pcm_channel_input_be_put,
  4425. .private_value = (unsigned long)&(mm1_ch1_enum)
  4426. },
  4427. {
  4428. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4429. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4430. .name = "MultiMedia1 Channel2",
  4431. .info = msm_pcm_channel_input_be_info,
  4432. .get = msm_pcm_channel_input_be_get,
  4433. .put = msm_pcm_channel_input_be_put,
  4434. .private_value = (unsigned long)&(mm1_ch2_enum)
  4435. },
  4436. {
  4437. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4438. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4439. .name = "MultiMedia1 Channel3",
  4440. .info = msm_pcm_channel_input_be_info,
  4441. .get = msm_pcm_channel_input_be_get,
  4442. .put = msm_pcm_channel_input_be_put,
  4443. .private_value = (unsigned long)&(mm1_ch3_enum)
  4444. },
  4445. {
  4446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4447. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4448. .name = "MultiMedia1 Channel4",
  4449. .info = msm_pcm_channel_input_be_info,
  4450. .get = msm_pcm_channel_input_be_get,
  4451. .put = msm_pcm_channel_input_be_put,
  4452. .private_value = (unsigned long)&(mm1_ch4_enum)
  4453. },
  4454. {
  4455. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4457. .name = "MultiMedia1 Channel5",
  4458. .info = msm_pcm_channel_input_be_info,
  4459. .get = msm_pcm_channel_input_be_get,
  4460. .put = msm_pcm_channel_input_be_put,
  4461. .private_value = (unsigned long)&(mm1_ch5_enum)
  4462. },
  4463. {
  4464. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4465. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4466. .name = "MultiMedia1 Channel6",
  4467. .info = msm_pcm_channel_input_be_info,
  4468. .get = msm_pcm_channel_input_be_get,
  4469. .put = msm_pcm_channel_input_be_put,
  4470. .private_value = (unsigned long)&(mm1_ch6_enum)
  4471. },
  4472. {
  4473. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4474. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4475. .name = "MultiMedia1 Channel7",
  4476. .info = msm_pcm_channel_input_be_info,
  4477. .get = msm_pcm_channel_input_be_get,
  4478. .put = msm_pcm_channel_input_be_put,
  4479. .private_value = (unsigned long)&(mm1_ch7_enum)
  4480. },
  4481. {
  4482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4484. .name = "MultiMedia1 Channel8",
  4485. .info = msm_pcm_channel_input_be_info,
  4486. .get = msm_pcm_channel_input_be_get,
  4487. .put = msm_pcm_channel_input_be_put,
  4488. .private_value = (unsigned long)&(mm1_ch8_enum)
  4489. },
  4490. {
  4491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4493. .name = "MultiMedia18 Channel1",
  4494. .info = msm_pcm_channel_input_be_info,
  4495. .get = msm_pcm_channel_input_be_get,
  4496. .put = msm_pcm_channel_input_be_put,
  4497. .private_value = (unsigned long)&(mm18_ch1_enum)
  4498. },
  4499. {
  4500. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4501. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4502. .name = "MultiMedia18 Channel2",
  4503. .info = msm_pcm_channel_input_be_info,
  4504. .get = msm_pcm_channel_input_be_get,
  4505. .put = msm_pcm_channel_input_be_put,
  4506. .private_value = (unsigned long)&(mm18_ch2_enum)
  4507. },
  4508. {
  4509. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4510. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4511. .name = "MultiMedia19 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)&(mm19_ch1_enum)
  4516. },
  4517. {
  4518. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4519. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4520. .name = "MultiMedia19 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)&(mm19_ch2_enum)
  4525. },
  4526. {
  4527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4528. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4529. .name = "MultiMedia28 Channel1",
  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)&(mm28_ch1_enum)
  4534. },
  4535. {
  4536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4538. .name = "MultiMedia28 Channel2",
  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)&(mm28_ch2_enum)
  4543. },
  4544. {
  4545. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4546. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4547. .name = "MultiMedia29 Channel1",
  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)&(mm29_ch1_enum)
  4552. },
  4553. {
  4554. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4555. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4556. .name = "MultiMedia29 Channel2",
  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)&(mm29_ch2_enum)
  4561. },
  4562. {
  4563. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4564. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4565. .name = "MultiMedia30 Channel1",
  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)&(mm30_ch1_enum)
  4570. },
  4571. {
  4572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4573. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4574. .name = "MultiMedia30 Channel2",
  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)&(mm30_ch2_enum)
  4579. },
  4580. {
  4581. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4582. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4583. .name = "MultiMedia1 Output Channel Map",
  4584. .info = msm_pcm_channel_output_map_info,
  4585. .get = msm_pcm_channel_output_map_get,
  4586. .put = msm_pcm_channel_output_map_put,
  4587. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4588. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4589. },
  4590. {
  4591. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4592. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4593. .name = "MultiMedia2 Output Channel Map",
  4594. .info = msm_pcm_channel_output_map_info,
  4595. .get = msm_pcm_channel_output_map_get,
  4596. .put = msm_pcm_channel_output_map_put,
  4597. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4598. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4599. },
  4600. {
  4601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4602. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4603. .name = "MultiMedia3 Output Channel Map",
  4604. .info = msm_pcm_channel_output_map_info,
  4605. .get = msm_pcm_channel_output_map_get,
  4606. .put = msm_pcm_channel_output_map_put,
  4607. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4608. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4609. },
  4610. {
  4611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4613. .name = "MultiMedia4 Output Channel Map",
  4614. .info = msm_pcm_channel_output_map_info,
  4615. .get = msm_pcm_channel_output_map_get,
  4616. .put = msm_pcm_channel_output_map_put,
  4617. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4618. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4619. },
  4620. {
  4621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4623. .name = "MultiMedia5 Output Channel Map",
  4624. .info = msm_pcm_channel_output_map_info,
  4625. .get = msm_pcm_channel_output_map_get,
  4626. .put = msm_pcm_channel_output_map_put,
  4627. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4628. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia6 Output Channel Map",
  4634. .info = msm_pcm_channel_output_map_info,
  4635. .get = msm_pcm_channel_output_map_get,
  4636. .put = msm_pcm_channel_output_map_put,
  4637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia18 Output Channel Map",
  4644. .info = msm_pcm_channel_output_map_info,
  4645. .get = msm_pcm_channel_output_map_get,
  4646. .put = msm_pcm_channel_output_map_put,
  4647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia19 Output Channel Map",
  4654. .info = msm_pcm_channel_output_map_info,
  4655. .get = msm_pcm_channel_output_map_get,
  4656. .put = msm_pcm_channel_output_map_put,
  4657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia28 Output Channel Map",
  4664. .info = msm_pcm_channel_output_map_info,
  4665. .get = msm_pcm_channel_output_map_get,
  4666. .put = msm_pcm_channel_output_map_put,
  4667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia29 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_MULTIMEDIA29,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia30 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_MULTIMEDIA30,}
  4689. },
  4690. };
  4691. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4692. struct snd_ctl_elem_value *ucontrol)
  4693. {
  4694. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4695. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4696. ucontrol->value.integer.value[0]);
  4697. return 0;
  4698. }
  4699. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4700. struct snd_ctl_elem_value *ucontrol)
  4701. {
  4702. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4703. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4704. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4705. return 0;
  4706. }
  4707. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4708. struct snd_ctl_elem_value *ucontrol)
  4709. {
  4710. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4711. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4712. ucontrol->value.integer.value[0]);
  4713. return 0;
  4714. }
  4715. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4716. struct snd_ctl_elem_value *ucontrol)
  4717. {
  4718. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4719. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4720. __func__, msm_ec_ref_ch_downmixed);
  4721. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4722. return 0;
  4723. }
  4724. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4725. struct snd_ctl_elem_value *ucontrol)
  4726. {
  4727. int i = 0, ret = 0;
  4728. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4729. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4730. kcontrol->private_value)->shift;
  4731. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4732. weights[i] = ucontrol->value.integer.value[i];
  4733. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4734. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4735. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4736. return ret;
  4737. }
  4738. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4739. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4740. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4741. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4742. struct snd_ctl_elem_value *ucontrol)
  4743. {
  4744. switch (msm_ec_ref_bit_format) {
  4745. case SNDRV_PCM_FORMAT_S24_LE:
  4746. ucontrol->value.integer.value[0] = 2;
  4747. break;
  4748. case SNDRV_PCM_FORMAT_S16_LE:
  4749. ucontrol->value.integer.value[0] = 1;
  4750. break;
  4751. default:
  4752. ucontrol->value.integer.value[0] = 0;
  4753. break;
  4754. }
  4755. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4756. __func__, ucontrol->value.integer.value[0]);
  4757. return 0;
  4758. }
  4759. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4760. struct snd_ctl_elem_value *ucontrol)
  4761. {
  4762. u16 bit_width = 0;
  4763. switch (ucontrol->value.integer.value[0]) {
  4764. case 2:
  4765. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4766. break;
  4767. case 1:
  4768. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4769. break;
  4770. default:
  4771. msm_ec_ref_bit_format = 0;
  4772. break;
  4773. }
  4774. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4775. bit_width = 16;
  4776. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4777. bit_width = 24;
  4778. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4779. __func__, msm_ec_ref_bit_format);
  4780. adm_ec_ref_rx_bit_width(bit_width);
  4781. return 0;
  4782. }
  4783. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4784. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4785. struct snd_ctl_elem_value *ucontrol)
  4786. {
  4787. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4788. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4789. __func__, ucontrol->value.integer.value[0]);
  4790. return 0;
  4791. }
  4792. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4793. struct snd_ctl_elem_value *ucontrol)
  4794. {
  4795. switch (ucontrol->value.integer.value[0]) {
  4796. case 0:
  4797. msm_ec_ref_sampling_rate = 0;
  4798. break;
  4799. case 1:
  4800. msm_ec_ref_sampling_rate = 8000;
  4801. break;
  4802. case 2:
  4803. msm_ec_ref_sampling_rate = 16000;
  4804. break;
  4805. case 3:
  4806. msm_ec_ref_sampling_rate = 32000;
  4807. break;
  4808. case 4:
  4809. msm_ec_ref_sampling_rate = 44100;
  4810. break;
  4811. case 5:
  4812. msm_ec_ref_sampling_rate = 48000;
  4813. break;
  4814. case 6:
  4815. msm_ec_ref_sampling_rate = 96000;
  4816. break;
  4817. case 7:
  4818. msm_ec_ref_sampling_rate = 192000;
  4819. break;
  4820. case 8:
  4821. msm_ec_ref_sampling_rate = 384000;
  4822. break;
  4823. default:
  4824. msm_ec_ref_sampling_rate = 48000;
  4825. break;
  4826. }
  4827. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4828. __func__, msm_ec_ref_sampling_rate);
  4829. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4830. return 0;
  4831. }
  4832. static int get_ec_ref_port_id(int value, int *index)
  4833. {
  4834. int port_id;
  4835. switch (value) {
  4836. case 0:
  4837. *index = 0;
  4838. port_id = AFE_PORT_INVALID;
  4839. break;
  4840. case 1:
  4841. *index = 1;
  4842. port_id = SLIMBUS_0_RX;
  4843. break;
  4844. case 2:
  4845. *index = 2;
  4846. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4847. break;
  4848. case 3:
  4849. *index = 3;
  4850. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4851. break;
  4852. case 4:
  4853. *index = 4;
  4854. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4855. break;
  4856. case 5:
  4857. *index = 5;
  4858. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4859. break;
  4860. case 6:
  4861. *index = 6;
  4862. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4863. break;
  4864. case 7:
  4865. *index = 7;
  4866. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4867. break;
  4868. case 9:
  4869. *index = 9;
  4870. port_id = SLIMBUS_5_RX;
  4871. break;
  4872. case 10:
  4873. *index = 10;
  4874. port_id = SLIMBUS_1_TX;
  4875. break;
  4876. case 11:
  4877. *index = 11;
  4878. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4879. break;
  4880. case 12:
  4881. *index = 12;
  4882. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4883. break;
  4884. case 13:
  4885. *index = 13;
  4886. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4887. break;
  4888. case 14:
  4889. *index = 14;
  4890. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4891. break;
  4892. case 15:
  4893. *index = 15;
  4894. port_id = SLIMBUS_6_RX;
  4895. break;
  4896. case 16:
  4897. *index = 16;
  4898. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4899. break;
  4900. case 17:
  4901. *index = 17;
  4902. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4903. break;
  4904. case 18:
  4905. *index = 18;
  4906. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4907. break;
  4908. case 19:
  4909. *index = 19;
  4910. port_id = AFE_PORT_ID_USB_RX;
  4911. break;
  4912. case 20:
  4913. *index = 20;
  4914. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4915. break;
  4916. case 21:
  4917. *index = 21;
  4918. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4919. break;
  4920. case 22:
  4921. *index = 22;
  4922. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4923. break;
  4924. case 23:
  4925. *index = 23;
  4926. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4927. break;
  4928. case 24:
  4929. *index = 24;
  4930. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4931. break;
  4932. case 25:
  4933. *index = 25;
  4934. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4935. break;
  4936. case 26:
  4937. *index = 26;
  4938. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4939. break;
  4940. case 27:
  4941. *index = 27;
  4942. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4943. break;
  4944. case 28:
  4945. *index = 28;
  4946. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4947. break;
  4948. case 29:
  4949. *index = 29;
  4950. port_id = SLIMBUS_7_RX;
  4951. break;
  4952. case 30:
  4953. *index = 30;
  4954. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4955. break;
  4956. case 31:
  4957. *index = 31;
  4958. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4959. break;
  4960. case 32:
  4961. *index = 32;
  4962. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4963. break;
  4964. case 33:
  4965. *index = 33;
  4966. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4967. break;
  4968. case 34:
  4969. *index = 34;
  4970. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  4971. break;
  4972. case 35:
  4973. *index = 35;
  4974. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  4975. break;
  4976. case 36:
  4977. *index = 36;
  4978. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4979. break;
  4980. default:
  4981. *index = 0; /* NONE */
  4982. pr_err("%s: Invalid value %d\n", __func__, value);
  4983. port_id = AFE_PORT_INVALID;
  4984. break;
  4985. }
  4986. return port_id;
  4987. }
  4988. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  4989. struct snd_ctl_elem_value *ucontrol)
  4990. {
  4991. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  4992. mutex_lock(&routing_lock);
  4993. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  4994. mutex_unlock(&routing_lock);
  4995. return 0;
  4996. }
  4997. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  4998. struct snd_ctl_elem_value *ucontrol)
  4999. {
  5000. int value = ucontrol->value.integer.value[0];
  5001. mutex_lock(&routing_lock);
  5002. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5003. &afe_loopback_tx_port_index);
  5004. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5005. __func__, afe_loopback_tx_port_index);
  5006. mutex_unlock(&routing_lock);
  5007. return 0;
  5008. }
  5009. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5010. "32000", "44100", "48000", "96000", "192000", "384000"};
  5011. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5012. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  5013. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  5014. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  5015. };
  5016. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5017. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5018. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5019. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5020. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5021. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5022. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5023. "DISPLAY_PORT1",
  5024. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5025. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5026. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5027. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5028. };
  5029. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5030. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5031. };
  5032. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5033. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5034. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5035. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5036. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5037. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5038. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5039. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5040. msm_route_ec_ref_params_enum[0],
  5041. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5042. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5043. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5044. msm_ec_ref_chmixer_weights_put),
  5045. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5046. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5047. msm_ec_ref_chmixer_weights_put),
  5048. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5049. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5050. msm_ec_ref_chmixer_weights_put),
  5051. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5052. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5053. msm_ec_ref_chmixer_weights_put),
  5054. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5055. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5056. msm_ec_ref_chmixer_weights_put),
  5057. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5058. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5059. msm_ec_ref_chmixer_weights_put),
  5060. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5061. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5062. };
  5063. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5064. struct snd_ctl_elem_value *ucontrol)
  5065. {
  5066. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5067. mutex_lock(&routing_lock);
  5068. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5069. mutex_unlock(&routing_lock);
  5070. return 0;
  5071. }
  5072. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5073. struct snd_ctl_elem_value *ucontrol)
  5074. {
  5075. int value = ucontrol->value.integer.value[0];
  5076. struct snd_soc_dapm_widget *widget =
  5077. snd_soc_dapm_kcontrol_widget(kcontrol);
  5078. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5079. struct snd_soc_dapm_update *update = NULL;
  5080. mutex_lock(&routing_lock);
  5081. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5082. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5083. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5084. __func__, msm_route_ec_ref_rx);
  5085. mutex_unlock(&routing_lock);
  5086. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5087. msm_route_ec_ref_rx, e, update);
  5088. return 0;
  5089. }
  5090. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5091. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5092. msm_route_ec_ref_rx_enum[0],
  5093. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5094. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5095. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5096. msm_route_ec_ref_rx_enum[0],
  5097. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5098. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5099. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5100. msm_route_ec_ref_rx_enum[0],
  5101. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5102. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5103. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5104. msm_route_ec_ref_rx_enum[0],
  5105. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5106. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5107. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5108. msm_route_ec_ref_rx_enum[0],
  5109. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5110. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5111. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5112. msm_route_ec_ref_rx_enum[0],
  5113. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5114. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5115. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5116. msm_route_ec_ref_rx_enum[0],
  5117. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5118. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5119. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5120. msm_route_ec_ref_rx_enum[0],
  5121. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5122. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5123. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5124. msm_route_ec_ref_rx_enum[0],
  5125. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5126. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5127. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5128. msm_route_ec_ref_rx_enum[0],
  5129. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5130. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5131. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5132. msm_route_ec_ref_rx_enum[0],
  5133. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5134. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5135. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5136. msm_route_ec_ref_rx_enum[0],
  5137. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5138. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5139. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5140. msm_route_ec_ref_rx_enum[0],
  5141. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5142. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5143. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5144. msm_route_ec_ref_rx_enum[0],
  5145. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5146. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5147. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5148. msm_route_ec_ref_rx_enum[0],
  5149. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5150. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5151. struct snd_ctl_elem_value *ucontrol)
  5152. {
  5153. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5154. mutex_lock(&routing_lock);
  5155. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5156. mutex_unlock(&routing_lock);
  5157. return 0;
  5158. }
  5159. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5160. struct snd_ctl_elem_value *ucontrol)
  5161. {
  5162. struct snd_soc_dapm_widget *widget =
  5163. snd_soc_dapm_kcontrol_widget(kcontrol);
  5164. int mux = ucontrol->value.enumerated.item[0];
  5165. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5166. int ret = 1;
  5167. bool state = true;
  5168. uint16_t ext_ec_ref_port_id;
  5169. struct snd_soc_dapm_update *update = NULL;
  5170. if (mux >= e->items) {
  5171. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5172. return -EINVAL;
  5173. }
  5174. mutex_lock(&routing_lock);
  5175. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5176. switch (msm_route_ext_ec_ref) {
  5177. case EXT_EC_REF_PRI_MI2S_TX:
  5178. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5179. break;
  5180. case EXT_EC_REF_SEC_MI2S_TX:
  5181. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5182. break;
  5183. case EXT_EC_REF_TERT_MI2S_TX:
  5184. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5185. break;
  5186. case EXT_EC_REF_QUAT_MI2S_TX:
  5187. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5188. break;
  5189. case EXT_EC_REF_QUIN_MI2S_TX:
  5190. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5191. break;
  5192. case EXT_EC_REF_SLIM_1_TX:
  5193. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5194. break;
  5195. case EXT_EC_REF_SEC_TDM_TX:
  5196. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5197. break;
  5198. case EXT_EC_REF_NONE:
  5199. default:
  5200. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5201. state = false;
  5202. break;
  5203. }
  5204. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5205. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5206. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5207. mutex_unlock(&routing_lock);
  5208. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5209. update);
  5210. } else {
  5211. ret = -EINVAL;
  5212. mutex_unlock(&routing_lock);
  5213. }
  5214. return ret;
  5215. }
  5216. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5217. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5218. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5219. "SLIM_1_TX", "SEC_TDM_TX"};
  5220. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5221. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5222. };
  5223. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5224. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5225. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5226. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_PRI_I2S_RX,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_PRI_I2S_RX,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_PRI_I2S_RX,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5240. MSM_BACKEND_DAI_PRI_I2S_RX,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5244. MSM_BACKEND_DAI_PRI_I2S_RX,
  5245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5246. msm_routing_put_audio_mixer),
  5247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5248. MSM_BACKEND_DAI_PRI_I2S_RX,
  5249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5250. msm_routing_put_audio_mixer),
  5251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5252. MSM_BACKEND_DAI_PRI_I2S_RX,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5256. MSM_BACKEND_DAI_PRI_I2S_RX,
  5257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5258. msm_routing_put_audio_mixer),
  5259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5260. MSM_BACKEND_DAI_PRI_I2S_RX,
  5261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5262. msm_routing_put_audio_mixer),
  5263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5264. MSM_BACKEND_DAI_PRI_I2S_RX,
  5265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5266. msm_routing_put_audio_mixer),
  5267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5268. MSM_BACKEND_DAI_PRI_I2S_RX,
  5269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5270. msm_routing_put_audio_mixer),
  5271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5272. MSM_BACKEND_DAI_PRI_I2S_RX,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5276. MSM_BACKEND_DAI_PRI_I2S_RX,
  5277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5278. msm_routing_put_audio_mixer),
  5279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5280. MSM_BACKEND_DAI_PRI_I2S_RX,
  5281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5282. msm_routing_put_audio_mixer),
  5283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5284. MSM_BACKEND_DAI_PRI_I2S_RX,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5288. MSM_BACKEND_DAI_PRI_I2S_RX,
  5289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5290. msm_routing_put_audio_mixer),
  5291. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5292. MSM_BACKEND_DAI_PRI_I2S_RX,
  5293. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5294. msm_routing_put_audio_mixer),
  5295. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5296. MSM_BACKEND_DAI_PRI_I2S_RX,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_PRI_I2S_RX,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_PRI_I2S_RX,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_PRI_I2S_RX,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_PRI_I2S_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_PRI_I2S_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. };
  5320. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5321. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5322. MSM_BACKEND_DAI_SEC_I2S_RX,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5326. MSM_BACKEND_DAI_SEC_I2S_RX,
  5327. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5328. msm_routing_put_audio_mixer),
  5329. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5330. MSM_BACKEND_DAI_SEC_I2S_RX,
  5331. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5332. msm_routing_put_audio_mixer),
  5333. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5334. MSM_BACKEND_DAI_SEC_I2S_RX,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5338. MSM_BACKEND_DAI_SEC_I2S_RX,
  5339. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5340. msm_routing_put_audio_mixer),
  5341. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5342. MSM_BACKEND_DAI_SEC_I2S_RX,
  5343. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5344. msm_routing_put_audio_mixer),
  5345. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5346. MSM_BACKEND_DAI_SEC_I2S_RX,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5350. MSM_BACKEND_DAI_SEC_I2S_RX,
  5351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5352. msm_routing_put_audio_mixer),
  5353. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5354. MSM_BACKEND_DAI_SEC_I2S_RX,
  5355. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5356. msm_routing_put_audio_mixer),
  5357. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5358. MSM_BACKEND_DAI_SEC_I2S_RX,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5362. MSM_BACKEND_DAI_SEC_I2S_RX,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5366. MSM_BACKEND_DAI_SEC_I2S_RX,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_SEC_I2S_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_SEC_I2S_RX,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_SEC_I2S_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_SEC_I2S_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_SEC_I2S_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_SEC_I2S_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_SEC_I2S_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_SEC_I2S_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_SEC_I2S_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_SEC_I2S_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_SEC_I2S_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. };
  5414. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5415. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5416. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5418. msm_routing_put_audio_mixer),
  5419. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5420. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5421. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5422. msm_routing_put_audio_mixer),
  5423. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5424. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5428. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5432. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5433. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5434. msm_routing_put_audio_mixer),
  5435. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5436. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5440. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5444. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5445. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5446. msm_routing_put_audio_mixer),
  5447. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5448. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5452. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. };
  5508. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5509. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. };
  5602. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5603. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. };
  5672. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5673. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. };
  5766. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5767. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. };
  5860. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5861. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_MI2S_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_MI2S_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_MI2S_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_MI2S_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_MI2S_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_MI2S_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_MI2S_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_MI2S_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_MI2S_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_MI2S_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_MI2S_RX,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_MI2S_RX,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_MI2S_RX,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_MI2S_RX,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_MI2S_RX,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_MI2S_RX,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_MI2S_RX,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_MI2S_RX,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_MI2S_RX,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_MI2S_RX,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_MI2S_RX,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5946. MSM_BACKEND_DAI_MI2S_RX,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5950. MSM_BACKEND_DAI_MI2S_RX,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. };
  5954. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5955. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6012. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6016. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6020. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. };
  6048. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6049. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6078. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6082. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6086. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6090. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. };
  6142. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6143. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. };
  6232. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6233. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. };
  6318. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6319. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. };
  6324. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6325. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6326. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6330. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6342. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6346. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6350. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6354. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. };
  6418. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6419. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6420. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6424. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6428. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6432. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6436. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6440. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6441. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6442. msm_routing_put_audio_mixer),
  6443. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6448. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. };
  6512. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. };
  6578. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6579. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. };
  6644. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6645. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_HDMI_RX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_HDMI_RX,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_HDMI_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_HDMI_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_HDMI_RX,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_HDMI_RX,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_HDMI_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_HDMI_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_HDMI_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_HDMI_RX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_HDMI_RX,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_HDMI_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_HDMI_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_HDMI_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_HDMI_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_HDMI_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_HDMI_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_HDMI_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_HDMI_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_HDMI_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_HDMI_RX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_HDMI_RX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_HDMI_RX,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. };
  6738. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6739. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. };
  6808. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  6809. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. };
  6878. /* incall music delivery mixer */
  6879. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  6880. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA5, 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_VOICE_PLAYBACK_TX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. };
  6897. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  6898. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. };
  6915. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  6916. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. };
  6933. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  6934. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. };
  7003. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7004. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. };
  7073. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7074. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7111. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7115. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7119. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7123. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7124. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7125. msm_routing_put_audio_mixer),
  7126. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7127. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7131. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7135. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7136. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7137. msm_routing_put_audio_mixer),
  7138. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7139. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7140. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7141. msm_routing_put_audio_mixer),
  7142. };
  7143. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7144. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7157. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7181. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7185. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7189. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7193. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7194. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7195. msm_routing_put_audio_mixer),
  7196. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7197. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7201. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7202. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7203. msm_routing_put_audio_mixer),
  7204. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7205. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7206. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7207. msm_routing_put_audio_mixer),
  7208. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7210. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7211. msm_routing_put_audio_mixer),
  7212. };
  7213. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7214. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7259. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7263. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7264. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7265. msm_routing_put_audio_mixer),
  7266. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7267. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7271. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7276. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7277. msm_routing_put_audio_mixer),
  7278. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7279. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7280. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7281. msm_routing_put_audio_mixer),
  7282. };
  7283. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7284. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7338. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7339. msm_routing_put_audio_mixer),
  7340. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7342. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7343. msm_routing_put_audio_mixer),
  7344. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7346. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7347. msm_routing_put_audio_mixer),
  7348. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7350. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7351. msm_routing_put_audio_mixer),
  7352. };
  7353. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7354. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7387. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7391. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7403. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7407. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7408. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7409. msm_routing_put_audio_mixer),
  7410. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7411. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7412. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7413. msm_routing_put_audio_mixer),
  7414. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7415. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7416. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7417. msm_routing_put_audio_mixer),
  7418. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7419. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7420. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7421. msm_routing_put_audio_mixer),
  7422. };
  7423. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7424. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7457. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7461. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7465. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7466. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7467. msm_routing_put_audio_mixer),
  7468. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7469. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7470. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7471. msm_routing_put_audio_mixer),
  7472. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7473. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7477. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7478. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7479. msm_routing_put_audio_mixer),
  7480. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7481. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7482. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7483. msm_routing_put_audio_mixer),
  7484. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7485. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7486. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7487. msm_routing_put_audio_mixer),
  7488. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7489. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7490. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7491. msm_routing_put_audio_mixer),
  7492. };
  7493. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7494. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7528. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7529. msm_routing_put_audio_mixer),
  7530. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7531. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7532. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7533. msm_routing_put_audio_mixer),
  7534. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7535. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7536. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7537. msm_routing_put_audio_mixer),
  7538. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7540. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7541. msm_routing_put_audio_mixer),
  7542. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7544. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7545. msm_routing_put_audio_mixer),
  7546. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7548. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7549. msm_routing_put_audio_mixer),
  7550. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7552. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7553. msm_routing_put_audio_mixer),
  7554. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7556. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7557. msm_routing_put_audio_mixer),
  7558. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7560. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7561. msm_routing_put_audio_mixer),
  7562. };
  7563. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7564. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7594. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7595. msm_routing_put_audio_mixer),
  7596. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7598. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7599. msm_routing_put_audio_mixer),
  7600. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7601. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7602. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7603. msm_routing_put_audio_mixer),
  7604. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7606. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7607. msm_routing_put_audio_mixer),
  7608. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7610. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7611. msm_routing_put_audio_mixer),
  7612. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7614. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7615. msm_routing_put_audio_mixer),
  7616. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7618. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7619. msm_routing_put_audio_mixer),
  7620. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7622. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7623. msm_routing_put_audio_mixer),
  7624. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7626. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7627. msm_routing_put_audio_mixer),
  7628. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7630. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7631. msm_routing_put_audio_mixer),
  7632. };
  7633. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7634. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7668. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7669. msm_routing_put_audio_mixer),
  7670. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7673. msm_routing_put_audio_mixer),
  7674. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7676. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7677. msm_routing_put_audio_mixer),
  7678. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7680. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7681. msm_routing_put_audio_mixer),
  7682. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7683. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7684. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7685. msm_routing_put_audio_mixer),
  7686. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7687. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7688. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7689. msm_routing_put_audio_mixer),
  7690. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7691. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7692. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7693. msm_routing_put_audio_mixer),
  7694. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7695. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7696. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7697. msm_routing_put_audio_mixer),
  7698. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7699. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7700. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7701. msm_routing_put_audio_mixer),
  7702. };
  7703. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7704. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7737. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7738. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7739. msm_routing_put_audio_mixer),
  7740. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7741. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7742. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7743. msm_routing_put_audio_mixer),
  7744. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7745. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7746. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7747. msm_routing_put_audio_mixer),
  7748. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7749. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7750. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7751. msm_routing_put_audio_mixer),
  7752. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7753. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7754. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7755. msm_routing_put_audio_mixer),
  7756. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7757. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7758. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7759. msm_routing_put_audio_mixer),
  7760. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7761. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7762. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7763. msm_routing_put_audio_mixer),
  7764. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7765. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7766. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7767. msm_routing_put_audio_mixer),
  7768. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7769. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7770. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7771. msm_routing_put_audio_mixer),
  7772. };
  7773. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7803. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7805. msm_routing_put_audio_mixer),
  7806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7807. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7809. msm_routing_put_audio_mixer),
  7810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7811. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7813. msm_routing_put_audio_mixer),
  7814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7815. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7817. msm_routing_put_audio_mixer),
  7818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7819. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7821. msm_routing_put_audio_mixer),
  7822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7823. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7825. msm_routing_put_audio_mixer),
  7826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7827. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7829. msm_routing_put_audio_mixer),
  7830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7831. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7833. msm_routing_put_audio_mixer),
  7834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7835. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7837. msm_routing_put_audio_mixer),
  7838. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7839. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7840. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7841. msm_routing_put_audio_mixer),
  7842. };
  7843. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  7844. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_USB_RX,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_USB_RX,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_USB_RX,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_USB_RX,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_USB_RX,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_USB_RX,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_USB_RX,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_USB_RX,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7877. MSM_BACKEND_DAI_USB_RX,
  7878. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7879. msm_routing_put_audio_mixer),
  7880. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7881. MSM_BACKEND_DAI_USB_RX,
  7882. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7883. msm_routing_put_audio_mixer),
  7884. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7885. MSM_BACKEND_DAI_USB_RX,
  7886. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7887. msm_routing_put_audio_mixer),
  7888. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7889. MSM_BACKEND_DAI_USB_RX,
  7890. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7891. msm_routing_put_audio_mixer),
  7892. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7893. MSM_BACKEND_DAI_USB_RX,
  7894. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7895. msm_routing_put_audio_mixer),
  7896. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7897. MSM_BACKEND_DAI_USB_RX,
  7898. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7899. msm_routing_put_audio_mixer),
  7900. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7901. MSM_BACKEND_DAI_USB_RX,
  7902. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7903. msm_routing_put_audio_mixer),
  7904. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7905. MSM_BACKEND_DAI_USB_RX,
  7906. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7907. msm_routing_put_audio_mixer),
  7908. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7909. MSM_BACKEND_DAI_USB_RX,
  7910. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7911. msm_routing_put_audio_mixer),
  7912. };
  7913. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  7914. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7943. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7944. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7945. msm_routing_put_audio_mixer),
  7946. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7947. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7948. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7949. msm_routing_put_audio_mixer),
  7950. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7951. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7952. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7953. msm_routing_put_audio_mixer),
  7954. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7955. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7956. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7957. msm_routing_put_audio_mixer),
  7958. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7959. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7960. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7961. msm_routing_put_audio_mixer),
  7962. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7963. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7964. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7965. msm_routing_put_audio_mixer),
  7966. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7967. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7968. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7969. msm_routing_put_audio_mixer),
  7970. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7971. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7972. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7973. msm_routing_put_audio_mixer),
  7974. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7975. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7976. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7977. msm_routing_put_audio_mixer),
  7978. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7979. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7980. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7981. msm_routing_put_audio_mixer),
  7982. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7983. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7984. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7985. msm_routing_put_audio_mixer),
  7986. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7987. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7988. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7989. msm_routing_put_audio_mixer),
  7990. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7991. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7992. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7993. msm_routing_put_audio_mixer),
  7994. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7995. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7996. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7997. msm_routing_put_audio_mixer),
  7998. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7999. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8000. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8001. msm_routing_put_audio_mixer),
  8002. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8003. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8004. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8005. msm_routing_put_audio_mixer),
  8006. };
  8007. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8008. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8017. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8018. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8019. msm_routing_put_audio_mixer),
  8020. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8021. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8022. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8023. msm_routing_put_audio_mixer),
  8024. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8025. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8026. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8027. msm_routing_put_audio_mixer),
  8028. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8029. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8031. msm_routing_put_audio_mixer),
  8032. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8033. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8034. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8035. msm_routing_put_audio_mixer),
  8036. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8037. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8038. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8039. msm_routing_put_audio_mixer),
  8040. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8041. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8042. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8043. msm_routing_put_audio_mixer),
  8044. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8045. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8046. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8047. msm_routing_put_audio_mixer),
  8048. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8049. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8050. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8051. msm_routing_put_audio_mixer),
  8052. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8053. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8054. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8055. msm_routing_put_audio_mixer),
  8056. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8061. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8062. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8063. msm_routing_put_audio_mixer),
  8064. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8065. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8066. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8067. msm_routing_put_audio_mixer),
  8068. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8069. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8070. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8071. msm_routing_put_audio_mixer),
  8072. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8073. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8074. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8075. msm_routing_put_audio_mixer),
  8076. };
  8077. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8078. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_INT_FM_RX,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_INT_FM_RX,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_INT_FM_RX,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_INT_FM_RX,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8095. MSM_BACKEND_DAI_INT_FM_RX,
  8096. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8097. msm_routing_put_audio_mixer),
  8098. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8099. MSM_BACKEND_DAI_INT_FM_RX,
  8100. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8101. msm_routing_put_audio_mixer),
  8102. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8103. MSM_BACKEND_DAI_INT_FM_RX,
  8104. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8105. msm_routing_put_audio_mixer),
  8106. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8107. MSM_BACKEND_DAI_INT_FM_RX,
  8108. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8109. msm_routing_put_audio_mixer),
  8110. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8111. MSM_BACKEND_DAI_INT_FM_RX,
  8112. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8113. msm_routing_put_audio_mixer),
  8114. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8115. MSM_BACKEND_DAI_INT_FM_RX,
  8116. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8117. msm_routing_put_audio_mixer),
  8118. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8119. MSM_BACKEND_DAI_INT_FM_RX,
  8120. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8121. msm_routing_put_audio_mixer),
  8122. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8123. MSM_BACKEND_DAI_INT_FM_RX,
  8124. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8125. msm_routing_put_audio_mixer),
  8126. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_INT_FM_RX,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_INT_FM_RX,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_INT_FM_RX,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_INT_FM_RX,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_INT_FM_RX,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_INT_FM_RX,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_INT_FM_RX,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_INT_FM_RX,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_INT_FM_RX,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_INT_FM_RX,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_INT_FM_RX,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. };
  8171. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8172. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8173. MSM_BACKEND_DAI_AFE_PCM_RX,
  8174. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8175. msm_routing_put_audio_mixer),
  8176. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8177. MSM_BACKEND_DAI_AFE_PCM_RX,
  8178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8179. msm_routing_put_audio_mixer),
  8180. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8181. MSM_BACKEND_DAI_AFE_PCM_RX,
  8182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8183. msm_routing_put_audio_mixer),
  8184. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8185. MSM_BACKEND_DAI_AFE_PCM_RX,
  8186. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8187. msm_routing_put_audio_mixer),
  8188. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8189. MSM_BACKEND_DAI_AFE_PCM_RX,
  8190. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8191. msm_routing_put_audio_mixer),
  8192. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8193. MSM_BACKEND_DAI_AFE_PCM_RX,
  8194. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8195. msm_routing_put_audio_mixer),
  8196. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_AFE_PCM_RX,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_AFE_PCM_RX,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_AFE_PCM_RX,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_AFE_PCM_RX,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_AFE_PCM_RX,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_AFE_PCM_RX,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_AFE_PCM_RX,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_AFE_PCM_RX,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_AFE_PCM_RX,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_AFE_PCM_RX,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_AFE_PCM_RX,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_AFE_PCM_RX,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_AFE_PCM_RX,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_AFE_PCM_RX,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_AFE_PCM_RX,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_AFE_PCM_RX,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_AFE_PCM_RX,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. };
  8265. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_AUXPCM_RX,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_AUXPCM_RX,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_AUXPCM_RX,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_AUXPCM_RX,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_AUXPCM_RX,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_AUXPCM_RX,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_AUXPCM_RX,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_AUXPCM_RX,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_AUXPCM_RX,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_AUXPCM_RX,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_AUXPCM_RX,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_AUXPCM_RX,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_AUXPCM_RX,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_AUXPCM_RX,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_AUXPCM_RX,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_AUXPCM_RX,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_AUXPCM_RX,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_AUXPCM_RX,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_AUXPCM_RX,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_AUXPCM_RX,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_AUXPCM_RX,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_AUXPCM_RX,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_AUXPCM_RX,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_AUXPCM_RX,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. };
  8363. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8364. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8373. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8375. msm_routing_put_audio_mixer),
  8376. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. };
  8461. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8462. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8491. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8492. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8493. msm_routing_put_audio_mixer),
  8494. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8495. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8496. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8497. msm_routing_put_audio_mixer),
  8498. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8499. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8500. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8501. msm_routing_put_audio_mixer),
  8502. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8503. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8504. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8505. msm_routing_put_audio_mixer),
  8506. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8507. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8508. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8509. msm_routing_put_audio_mixer),
  8510. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8523. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8524. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8525. msm_routing_put_audio_mixer),
  8526. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8527. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8528. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8529. msm_routing_put_audio_mixer),
  8530. };
  8531. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8532. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. };
  8601. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8623. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8625. msm_routing_put_audio_mixer),
  8626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8627. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8629. msm_routing_put_audio_mixer),
  8630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8631. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8633. msm_routing_put_audio_mixer),
  8634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8635. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8637. msm_routing_put_audio_mixer),
  8638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8639. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8641. msm_routing_put_audio_mixer),
  8642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8643. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8645. msm_routing_put_audio_mixer),
  8646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8647. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8649. msm_routing_put_audio_mixer),
  8650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8651. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8653. msm_routing_put_audio_mixer),
  8654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8655. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8657. msm_routing_put_audio_mixer),
  8658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8659. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8661. msm_routing_put_audio_mixer),
  8662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8663. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8665. msm_routing_put_audio_mixer),
  8666. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. };
  8671. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8672. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8697. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8698. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8699. msm_routing_put_audio_mixer),
  8700. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8701. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8703. msm_routing_put_audio_mixer),
  8704. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8705. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8707. msm_routing_put_audio_mixer),
  8708. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8709. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8710. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8711. msm_routing_put_audio_mixer),
  8712. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8713. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8714. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8715. msm_routing_put_audio_mixer),
  8716. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8717. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8718. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8719. msm_routing_put_audio_mixer),
  8720. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8721. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8722. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8723. msm_routing_put_audio_mixer),
  8724. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8725. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8726. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8727. msm_routing_put_audio_mixer),
  8728. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8729. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8730. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8731. msm_routing_put_audio_mixer),
  8732. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8733. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8734. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8735. msm_routing_put_audio_mixer),
  8736. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8737. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8738. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8739. msm_routing_put_audio_mixer),
  8740. };
  8741. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8742. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8775. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8776. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8777. msm_routing_put_audio_mixer),
  8778. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8779. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8780. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8781. msm_routing_put_audio_mixer),
  8782. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8783. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8784. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8785. msm_routing_put_audio_mixer),
  8786. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8787. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8788. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8789. msm_routing_put_audio_mixer),
  8790. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8791. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8792. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8793. msm_routing_put_audio_mixer),
  8794. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8795. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8796. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8797. msm_routing_put_audio_mixer),
  8798. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8799. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8800. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8801. msm_routing_put_audio_mixer),
  8802. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8803. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8804. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8805. msm_routing_put_audio_mixer),
  8806. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8807. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8808. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8809. msm_routing_put_audio_mixer),
  8810. };
  8811. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  8812. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8853. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8854. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8855. msm_routing_put_audio_mixer),
  8856. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8857. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8858. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8859. msm_routing_put_audio_mixer),
  8860. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8861. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8862. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8863. msm_routing_put_audio_mixer),
  8864. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8865. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8866. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8867. msm_routing_put_audio_mixer),
  8868. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8869. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8870. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8871. msm_routing_put_audio_mixer),
  8872. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8873. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8874. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8875. msm_routing_put_audio_mixer),
  8876. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8877. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8878. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8879. msm_routing_put_audio_mixer),
  8880. };
  8881. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  8882. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. };
  8951. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  8952. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8993. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8994. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8995. msm_routing_put_audio_mixer),
  8996. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8997. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8998. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8999. msm_routing_put_audio_mixer),
  9000. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9001. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9002. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9003. msm_routing_put_audio_mixer),
  9004. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9005. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9006. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9007. msm_routing_put_audio_mixer),
  9008. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9009. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9010. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9011. msm_routing_put_audio_mixer),
  9012. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9013. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9015. msm_routing_put_audio_mixer),
  9016. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9017. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9018. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9019. msm_routing_put_audio_mixer),
  9020. };
  9021. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9022. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. };
  9087. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. };
  9157. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9158. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9159. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9161. msm_routing_put_audio_mixer),
  9162. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9163. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9165. msm_routing_put_audio_mixer),
  9166. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9219. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9220. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9221. msm_routing_put_audio_mixer),
  9222. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9223. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9224. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9225. msm_routing_put_audio_mixer),
  9226. };
  9227. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. };
  9297. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9298. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. };
  9367. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9368. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9369. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9370. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9371. msm_routing_put_audio_mixer),
  9372. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9373. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9374. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9375. msm_routing_put_audio_mixer),
  9376. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9377. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9378. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9379. msm_routing_put_audio_mixer),
  9380. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9381. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9382. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9383. msm_routing_put_audio_mixer),
  9384. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9385. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9386. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9387. msm_routing_put_audio_mixer),
  9388. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. };
  9433. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9434. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9435. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9436. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9437. msm_routing_put_audio_mixer),
  9438. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. };
  9503. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9504. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. };
  9569. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9570. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9587. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9588. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9589. msm_routing_put_audio_mixer),
  9590. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9591. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9593. msm_routing_put_audio_mixer),
  9594. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9595. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9596. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9597. msm_routing_put_audio_mixer),
  9598. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9599. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9600. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9601. msm_routing_put_audio_mixer),
  9602. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9603. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9604. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9605. msm_routing_put_audio_mixer),
  9606. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9607. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9608. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9609. msm_routing_put_audio_mixer),
  9610. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9611. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9612. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9613. msm_routing_put_audio_mixer),
  9614. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9615. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9616. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9617. msm_routing_put_audio_mixer),
  9618. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9619. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9620. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9621. msm_routing_put_audio_mixer),
  9622. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9623. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9624. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9625. msm_routing_put_audio_mixer),
  9626. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9627. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9628. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9629. msm_routing_put_audio_mixer),
  9630. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9631. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9632. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9633. msm_routing_put_audio_mixer),
  9634. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9635. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9636. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9637. msm_routing_put_audio_mixer),
  9638. };
  9639. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9640. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9653. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9655. msm_routing_put_audio_mixer),
  9656. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9657. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9659. msm_routing_put_audio_mixer),
  9660. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9661. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9662. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9663. msm_routing_put_audio_mixer),
  9664. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9665. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9666. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9667. msm_routing_put_audio_mixer),
  9668. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9669. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9670. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9671. msm_routing_put_audio_mixer),
  9672. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9673. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9674. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9675. msm_routing_put_audio_mixer),
  9676. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9677. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9678. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9679. msm_routing_put_audio_mixer),
  9680. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9681. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9682. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9683. msm_routing_put_audio_mixer),
  9684. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9685. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9686. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9687. msm_routing_put_audio_mixer),
  9688. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9689. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9690. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9691. msm_routing_put_audio_mixer),
  9692. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9693. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9694. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9695. msm_routing_put_audio_mixer),
  9696. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9697. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9698. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9699. msm_routing_put_audio_mixer),
  9700. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9701. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9702. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9703. msm_routing_put_audio_mixer),
  9704. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9705. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9706. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9707. msm_routing_put_audio_mixer),
  9708. };
  9709. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9710. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. };
  9779. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  9780. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9814. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9815. msm_routing_put_audio_mixer),
  9816. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9817. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9818. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9819. msm_routing_put_audio_mixer),
  9820. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9822. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9823. msm_routing_put_audio_mixer),
  9824. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9825. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9826. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9827. msm_routing_put_audio_mixer),
  9828. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9829. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9830. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9831. msm_routing_put_audio_mixer),
  9832. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9833. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9834. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9835. msm_routing_put_audio_mixer),
  9836. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9837. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9838. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9839. msm_routing_put_audio_mixer),
  9840. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9841. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9842. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9843. msm_routing_put_audio_mixer),
  9844. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9845. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9846. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9847. msm_routing_put_audio_mixer),
  9848. };
  9849. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  9850. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9899. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9900. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9901. msm_routing_put_audio_mixer),
  9902. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9904. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9905. msm_routing_put_audio_mixer),
  9906. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9908. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9909. msm_routing_put_audio_mixer),
  9910. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9912. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9913. msm_routing_put_audio_mixer),
  9914. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9916. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9917. msm_routing_put_audio_mixer),
  9918. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9920. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9921. msm_routing_put_audio_mixer),
  9922. };
  9923. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  9924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. };
  9989. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  9990. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9991. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9993. msm_routing_put_audio_mixer),
  9994. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9995. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9996. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9997. msm_routing_put_audio_mixer),
  9998. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10000. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10001. msm_routing_put_audio_mixer),
  10002. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10004. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10005. msm_routing_put_audio_mixer),
  10006. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10044. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10045. msm_routing_put_audio_mixer),
  10046. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10048. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10049. msm_routing_put_audio_mixer),
  10050. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10052. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10053. msm_routing_put_audio_mixer),
  10054. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10056. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10057. msm_routing_put_audio_mixer),
  10058. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. };
  10063. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10064. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10085. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10087. msm_routing_put_audio_mixer),
  10088. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10089. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10090. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10091. msm_routing_put_audio_mixer),
  10092. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. };
  10137. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10138. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10140. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10141. msm_routing_put_audio_mixer),
  10142. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. };
  10211. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10212. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10213. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10214. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10215. msm_routing_put_audio_mixer),
  10216. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10217. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10219. msm_routing_put_audio_mixer),
  10220. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10221. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10222. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10223. msm_routing_put_audio_mixer),
  10224. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10225. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10226. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10227. msm_routing_put_audio_mixer),
  10228. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10229. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10230. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10231. msm_routing_put_audio_mixer),
  10232. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10242. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10243. msm_routing_put_audio_mixer),
  10244. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10246. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10247. msm_routing_put_audio_mixer),
  10248. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10251. msm_routing_put_audio_mixer),
  10252. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10254. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10255. msm_routing_put_audio_mixer),
  10256. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. };
  10285. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10286. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10287. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10288. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10289. msm_routing_put_audio_mixer),
  10290. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10291. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10292. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10293. msm_routing_put_audio_mixer),
  10294. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10295. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10297. msm_routing_put_audio_mixer),
  10298. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10299. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10300. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10301. msm_routing_put_audio_mixer),
  10302. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10303. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10304. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10305. msm_routing_put_audio_mixer),
  10306. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10307. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10308. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10309. msm_routing_put_audio_mixer),
  10310. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10311. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10312. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10313. msm_routing_put_audio_mixer),
  10314. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10316. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10317. msm_routing_put_audio_mixer),
  10318. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10320. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10321. msm_routing_put_audio_mixer),
  10322. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10325. msm_routing_put_audio_mixer),
  10326. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10327. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10328. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10329. msm_routing_put_audio_mixer),
  10330. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10331. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10332. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10333. msm_routing_put_audio_mixer),
  10334. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10336. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10337. msm_routing_put_audio_mixer),
  10338. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10340. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10341. msm_routing_put_audio_mixer),
  10342. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. };
  10351. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10352. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10353. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10355. msm_routing_put_audio_mixer),
  10356. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10357. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10359. msm_routing_put_audio_mixer),
  10360. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10362. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10363. msm_routing_put_audio_mixer),
  10364. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10367. msm_routing_put_audio_mixer),
  10368. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10371. msm_routing_put_audio_mixer),
  10372. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10374. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10375. msm_routing_put_audio_mixer),
  10376. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10377. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10379. msm_routing_put_audio_mixer),
  10380. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10381. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10383. msm_routing_put_audio_mixer),
  10384. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10385. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10386. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10387. msm_routing_put_audio_mixer),
  10388. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10390. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10391. msm_routing_put_audio_mixer),
  10392. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10393. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10394. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10395. msm_routing_put_audio_mixer),
  10396. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10398. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10399. msm_routing_put_audio_mixer),
  10400. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10419. msm_routing_put_audio_mixer),
  10420. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. };
  10425. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10426. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10427. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10428. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10429. msm_routing_put_audio_mixer),
  10430. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10431. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10432. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10433. msm_routing_put_audio_mixer),
  10434. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10435. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10437. msm_routing_put_audio_mixer),
  10438. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10439. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10440. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10441. msm_routing_put_audio_mixer),
  10442. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10443. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10444. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10445. msm_routing_put_audio_mixer),
  10446. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10448. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10452. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10457. msm_routing_put_audio_mixer),
  10458. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10459. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10460. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10461. msm_routing_put_audio_mixer),
  10462. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10464. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10465. msm_routing_put_audio_mixer),
  10466. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10467. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10468. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10469. msm_routing_put_audio_mixer),
  10470. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10471. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10472. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10473. msm_routing_put_audio_mixer),
  10474. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10476. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10477. msm_routing_put_audio_mixer),
  10478. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10479. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10480. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10481. msm_routing_put_audio_mixer),
  10482. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10483. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10484. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10485. msm_routing_put_audio_mixer),
  10486. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10488. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10489. msm_routing_put_audio_mixer),
  10490. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10492. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10493. msm_routing_put_audio_mixer),
  10494. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10496. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10497. msm_routing_put_audio_mixer),
  10498. };
  10499. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10500. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10518. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10519. msm_routing_put_audio_mixer),
  10520. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10522. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10523. msm_routing_put_audio_mixer),
  10524. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10551. msm_routing_put_audio_mixer),
  10552. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10553. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10554. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10555. msm_routing_put_audio_mixer),
  10556. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10557. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10558. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10571. msm_routing_put_audio_mixer),
  10572. };
  10573. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10574. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10575. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10576. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10577. msm_routing_put_audio_mixer),
  10578. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10579. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10581. msm_routing_put_audio_mixer),
  10582. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10583. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10584. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10585. msm_routing_put_audio_mixer),
  10586. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10587. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10588. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10589. msm_routing_put_audio_mixer),
  10590. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10591. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10592. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10593. msm_routing_put_audio_mixer),
  10594. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10596. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10597. msm_routing_put_audio_mixer),
  10598. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10600. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10601. msm_routing_put_audio_mixer),
  10602. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10604. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10605. msm_routing_put_audio_mixer),
  10606. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10608. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10609. msm_routing_put_audio_mixer),
  10610. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10611. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10612. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10613. msm_routing_put_audio_mixer),
  10614. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10615. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10616. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10617. msm_routing_put_audio_mixer),
  10618. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10619. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10620. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10621. msm_routing_put_audio_mixer),
  10622. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10623. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10624. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10625. msm_routing_put_audio_mixer),
  10626. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10628. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10629. msm_routing_put_audio_mixer),
  10630. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10631. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10632. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10633. msm_routing_put_audio_mixer),
  10634. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10636. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10637. msm_routing_put_audio_mixer),
  10638. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10640. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10641. msm_routing_put_audio_mixer),
  10642. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10644. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10645. msm_routing_put_audio_mixer),
  10646. };
  10647. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10648. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10651. msm_routing_put_audio_mixer),
  10652. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10653. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10654. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10655. msm_routing_put_audio_mixer),
  10656. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10657. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10658. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10659. msm_routing_put_audio_mixer),
  10660. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10661. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10663. msm_routing_put_audio_mixer),
  10664. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10665. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10666. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10667. msm_routing_put_audio_mixer),
  10668. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10671. msm_routing_put_audio_mixer),
  10672. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10673. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10674. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10675. msm_routing_put_audio_mixer),
  10676. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10677. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10678. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10679. msm_routing_put_audio_mixer),
  10680. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10681. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10682. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10683. msm_routing_put_audio_mixer),
  10684. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10685. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10686. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10687. msm_routing_put_audio_mixer),
  10688. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10689. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10690. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10691. msm_routing_put_audio_mixer),
  10692. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10693. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10694. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10695. msm_routing_put_audio_mixer),
  10696. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10697. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10698. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10699. msm_routing_put_audio_mixer),
  10700. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10701. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10702. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10703. msm_routing_put_audio_mixer),
  10704. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10705. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10706. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10707. msm_routing_put_audio_mixer),
  10708. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10709. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10710. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10711. msm_routing_put_audio_mixer),
  10712. };
  10713. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  10714. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10751. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10752. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10753. msm_routing_put_audio_mixer),
  10754. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10761. msm_routing_put_audio_mixer),
  10762. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10763. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10764. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10765. msm_routing_put_audio_mixer),
  10766. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10768. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10769. msm_routing_put_audio_mixer),
  10770. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10771. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10772. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10773. msm_routing_put_audio_mixer),
  10774. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10775. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10776. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10777. msm_routing_put_audio_mixer),
  10778. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10780. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10781. msm_routing_put_audio_mixer),
  10782. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10784. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10785. msm_routing_put_audio_mixer),
  10786. };
  10787. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  10788. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10806. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10807. msm_routing_put_audio_mixer),
  10808. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10810. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10811. msm_routing_put_audio_mixer),
  10812. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10813. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10814. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10815. msm_routing_put_audio_mixer),
  10816. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10818. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10819. msm_routing_put_audio_mixer),
  10820. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10821. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10822. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10823. msm_routing_put_audio_mixer),
  10824. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10826. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10833. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10834. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10835. msm_routing_put_audio_mixer),
  10836. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10837. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10838. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10839. msm_routing_put_audio_mixer),
  10840. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10841. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10842. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10843. msm_routing_put_audio_mixer),
  10844. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10845. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10846. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10847. msm_routing_put_audio_mixer),
  10848. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10850. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10854. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10855. msm_routing_put_audio_mixer),
  10856. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10858. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10859. msm_routing_put_audio_mixer),
  10860. };
  10861. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  10862. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10929. msm_routing_put_audio_mixer),
  10930. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10931. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10932. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10933. msm_routing_put_audio_mixer),
  10934. };
  10935. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  10936. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_PRI_I2S_TX,
  10938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10939. msm_routing_put_audio_mixer),
  10940. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_MI2S_TX,
  10942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10943. msm_routing_put_audio_mixer),
  10944. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10947. msm_routing_put_audio_mixer),
  10948. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_AUXPCM_TX,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_INT_FM_TX,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_AFE_PCM_TX,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11015. msm_routing_put_audio_mixer),
  11016. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11017. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11018. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11019. msm_routing_put_audio_mixer),
  11020. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11021. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11022. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11023. msm_routing_put_audio_mixer),
  11024. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11025. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11026. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11027. msm_routing_put_audio_mixer),
  11028. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11031. msm_routing_put_audio_mixer),
  11032. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11033. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11034. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11035. msm_routing_put_audio_mixer),
  11036. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11037. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11038. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11039. msm_routing_put_audio_mixer),
  11040. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11041. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11042. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11043. msm_routing_put_audio_mixer),
  11044. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11045. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11046. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11047. msm_routing_put_audio_mixer),
  11048. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11049. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11051. msm_routing_put_audio_mixer),
  11052. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11053. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11055. msm_routing_put_audio_mixer),
  11056. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11058. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11059. msm_routing_put_audio_mixer),
  11060. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11063. msm_routing_put_audio_mixer),
  11064. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11065. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11067. msm_routing_put_audio_mixer),
  11068. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11069. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11070. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11071. msm_routing_put_audio_mixer),
  11072. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11073. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11074. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11075. msm_routing_put_audio_mixer),
  11076. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11077. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11079. msm_routing_put_audio_mixer),
  11080. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11081. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11082. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11083. msm_routing_put_audio_mixer),
  11084. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11086. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11087. msm_routing_put_audio_mixer),
  11088. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11091. msm_routing_put_audio_mixer),
  11092. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11094. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11095. msm_routing_put_audio_mixer),
  11096. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11097. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11098. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11099. msm_routing_put_audio_mixer),
  11100. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11102. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11103. msm_routing_put_audio_mixer),
  11104. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11105. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11106. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11122. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11123. msm_routing_put_audio_mixer),
  11124. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_USB_TX,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11150. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11151. msm_routing_put_audio_mixer),
  11152. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11154. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11155. msm_routing_put_audio_mixer),
  11156. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11157. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11158. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11159. msm_routing_put_audio_mixer),
  11160. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11162. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11163. msm_routing_put_audio_mixer),
  11164. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11165. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11166. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11167. msm_routing_put_audio_mixer),
  11168. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11169. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11170. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11171. msm_routing_put_audio_mixer),
  11172. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11173. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11174. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11175. msm_routing_put_audio_mixer),
  11176. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11177. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11178. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11179. msm_routing_put_audio_mixer),
  11180. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11181. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11182. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11183. msm_routing_put_audio_mixer),
  11184. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11186. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11187. msm_routing_put_audio_mixer),
  11188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11190. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11191. msm_routing_put_audio_mixer),
  11192. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11193. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11194. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11195. msm_routing_put_audio_mixer),
  11196. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11197. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11198. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11199. msm_routing_put_audio_mixer),
  11200. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11201. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11202. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11203. msm_routing_put_audio_mixer),
  11204. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11205. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11206. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11207. msm_routing_put_audio_mixer),
  11208. };
  11209. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11210. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_INT_FM_TX,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_MI2S_TX,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11240. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11241. msm_routing_put_audio_mixer),
  11242. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11244. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11245. msm_routing_put_audio_mixer),
  11246. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11248. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11249. msm_routing_put_audio_mixer),
  11250. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11252. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11253. msm_routing_put_audio_mixer),
  11254. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11256. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11257. msm_routing_put_audio_mixer),
  11258. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11259. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11260. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11261. msm_routing_put_audio_mixer),
  11262. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11263. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11264. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11265. msm_routing_put_audio_mixer),
  11266. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11267. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11268. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11269. msm_routing_put_audio_mixer),
  11270. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11271. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11273. msm_routing_put_audio_mixer),
  11274. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11275. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11276. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11277. msm_routing_put_audio_mixer),
  11278. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11279. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11280. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11281. msm_routing_put_audio_mixer),
  11282. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11283. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11284. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11285. msm_routing_put_audio_mixer),
  11286. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11287. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11289. msm_routing_put_audio_mixer),
  11290. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11291. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11292. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11293. msm_routing_put_audio_mixer),
  11294. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11295. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11296. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11297. msm_routing_put_audio_mixer),
  11298. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11299. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11300. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11301. msm_routing_put_audio_mixer),
  11302. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11303. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11304. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11305. msm_routing_put_audio_mixer),
  11306. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11307. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11308. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11309. msm_routing_put_audio_mixer),
  11310. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11311. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11313. msm_routing_put_audio_mixer),
  11314. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11315. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11316. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11317. msm_routing_put_audio_mixer),
  11318. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11319. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11321. msm_routing_put_audio_mixer),
  11322. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11324. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11325. msm_routing_put_audio_mixer),
  11326. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11328. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11329. msm_routing_put_audio_mixer),
  11330. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11332. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11333. msm_routing_put_audio_mixer),
  11334. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11336. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11337. msm_routing_put_audio_mixer),
  11338. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11340. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11341. msm_routing_put_audio_mixer),
  11342. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11344. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11345. msm_routing_put_audio_mixer),
  11346. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11347. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11348. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11349. msm_routing_put_audio_mixer),
  11350. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11351. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11352. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11353. msm_routing_put_audio_mixer),
  11354. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11355. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11356. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11357. msm_routing_put_audio_mixer),
  11358. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11359. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11360. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11361. msm_routing_put_audio_mixer),
  11362. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_USB_TX,
  11364. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11365. msm_routing_put_audio_mixer),
  11366. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11368. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11369. msm_routing_put_audio_mixer),
  11370. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11377. msm_routing_put_audio_mixer),
  11378. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11381. msm_routing_put_audio_mixer),
  11382. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11388. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11389. msm_routing_put_audio_mixer),
  11390. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11391. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11392. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11393. msm_routing_put_audio_mixer),
  11394. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11400. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11401. msm_routing_put_audio_mixer),
  11402. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11403. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11404. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11405. msm_routing_put_audio_mixer),
  11406. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11407. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11408. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11409. msm_routing_put_audio_mixer),
  11410. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11411. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11412. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11413. msm_routing_put_audio_mixer),
  11414. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11415. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11416. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11417. msm_routing_put_audio_mixer),
  11418. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11420. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11421. msm_routing_put_audio_mixer),
  11422. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11424. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11425. msm_routing_put_audio_mixer),
  11426. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11428. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11429. msm_routing_put_audio_mixer),
  11430. };
  11431. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11432. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_INT_FM_TX,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_MI2S_TX,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_AFE_PCM_TX,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_AUXPCM_TX,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11470. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11471. msm_routing_put_audio_mixer),
  11472. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11473. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11474. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11475. msm_routing_put_audio_mixer),
  11476. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11477. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11478. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11479. msm_routing_put_audio_mixer),
  11480. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11482. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11483. msm_routing_put_audio_mixer),
  11484. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11486. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11491. msm_routing_put_audio_mixer),
  11492. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11494. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11495. msm_routing_put_audio_mixer),
  11496. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11497. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11498. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11499. msm_routing_put_audio_mixer),
  11500. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11502. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11503. msm_routing_put_audio_mixer),
  11504. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11506. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11507. msm_routing_put_audio_mixer),
  11508. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11513. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11514. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11515. msm_routing_put_audio_mixer),
  11516. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11517. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11518. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11519. msm_routing_put_audio_mixer),
  11520. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11522. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11523. msm_routing_put_audio_mixer),
  11524. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11526. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11527. msm_routing_put_audio_mixer),
  11528. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11530. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11531. msm_routing_put_audio_mixer),
  11532. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11535. msm_routing_put_audio_mixer),
  11536. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11538. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11539. msm_routing_put_audio_mixer),
  11540. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11542. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11543. msm_routing_put_audio_mixer),
  11544. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11545. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11546. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11547. msm_routing_put_audio_mixer),
  11548. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11549. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11550. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11551. msm_routing_put_audio_mixer),
  11552. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11553. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11554. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11555. msm_routing_put_audio_mixer),
  11556. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11558. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11559. msm_routing_put_audio_mixer),
  11560. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11562. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11567. msm_routing_put_audio_mixer),
  11568. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11569. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11570. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11571. msm_routing_put_audio_mixer),
  11572. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11573. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11574. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11575. msm_routing_put_audio_mixer),
  11576. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11577. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11578. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11579. msm_routing_put_audio_mixer),
  11580. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11583. msm_routing_put_audio_mixer),
  11584. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11586. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11591. msm_routing_put_audio_mixer),
  11592. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11595. msm_routing_put_audio_mixer),
  11596. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11599. msm_routing_put_audio_mixer),
  11600. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11602. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11603. msm_routing_put_audio_mixer),
  11604. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11618. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11619. msm_routing_put_audio_mixer),
  11620. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11622. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11623. msm_routing_put_audio_mixer),
  11624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11626. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11627. msm_routing_put_audio_mixer),
  11628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11631. msm_routing_put_audio_mixer),
  11632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11634. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11635. msm_routing_put_audio_mixer),
  11636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11639. msm_routing_put_audio_mixer),
  11640. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11642. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11643. msm_routing_put_audio_mixer),
  11644. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11646. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11647. msm_routing_put_audio_mixer),
  11648. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11650. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11651. msm_routing_put_audio_mixer),
  11652. };
  11653. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11654. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11655. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11657. msm_routing_put_audio_mixer),
  11658. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11660. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11661. msm_routing_put_audio_mixer),
  11662. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11664. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11665. msm_routing_put_audio_mixer),
  11666. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_INT_FM_TX,
  11668. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11669. msm_routing_put_audio_mixer),
  11670. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11672. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11673. msm_routing_put_audio_mixer),
  11674. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_AFE_PCM_TX,
  11676. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11677. msm_routing_put_audio_mixer),
  11678. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11680. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11681. msm_routing_put_audio_mixer),
  11682. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11684. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11685. msm_routing_put_audio_mixer),
  11686. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11688. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11689. msm_routing_put_audio_mixer),
  11690. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11691. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11693. msm_routing_put_audio_mixer),
  11694. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11696. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11697. msm_routing_put_audio_mixer),
  11698. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11699. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11700. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11701. msm_routing_put_audio_mixer),
  11702. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11703. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11704. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11705. msm_routing_put_audio_mixer),
  11706. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11709. msm_routing_put_audio_mixer),
  11710. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11713. msm_routing_put_audio_mixer),
  11714. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11717. msm_routing_put_audio_mixer),
  11718. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11721. msm_routing_put_audio_mixer),
  11722. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11725. msm_routing_put_audio_mixer),
  11726. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11727. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11728. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11729. msm_routing_put_audio_mixer),
  11730. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11731. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11732. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11733. msm_routing_put_audio_mixer),
  11734. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11735. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11736. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11737. msm_routing_put_audio_mixer),
  11738. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11739. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11740. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11741. msm_routing_put_audio_mixer),
  11742. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11743. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11744. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11745. msm_routing_put_audio_mixer),
  11746. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11747. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11749. msm_routing_put_audio_mixer),
  11750. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11752. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11753. msm_routing_put_audio_mixer),
  11754. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11756. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11757. msm_routing_put_audio_mixer),
  11758. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11760. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11761. msm_routing_put_audio_mixer),
  11762. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11763. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11765. msm_routing_put_audio_mixer),
  11766. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11768. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11769. msm_routing_put_audio_mixer),
  11770. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11772. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11773. msm_routing_put_audio_mixer),
  11774. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11776. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11777. msm_routing_put_audio_mixer),
  11778. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11779. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11780. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11781. msm_routing_put_audio_mixer),
  11782. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11783. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11784. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11785. msm_routing_put_audio_mixer),
  11786. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11789. msm_routing_put_audio_mixer),
  11790. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11792. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11793. msm_routing_put_audio_mixer),
  11794. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11796. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11797. msm_routing_put_audio_mixer),
  11798. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11800. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11801. msm_routing_put_audio_mixer),
  11802. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_USB_TX,
  11804. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11805. msm_routing_put_audio_mixer),
  11806. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11808. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11809. msm_routing_put_audio_mixer),
  11810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11812. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11813. msm_routing_put_audio_mixer),
  11814. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11816. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11817. msm_routing_put_audio_mixer),
  11818. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11819. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11820. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11821. msm_routing_put_audio_mixer),
  11822. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11823. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11824. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11825. msm_routing_put_audio_mixer),
  11826. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11828. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11829. msm_routing_put_audio_mixer),
  11830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11832. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11833. msm_routing_put_audio_mixer),
  11834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11836. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11837. msm_routing_put_audio_mixer),
  11838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11840. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11841. msm_routing_put_audio_mixer),
  11842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11844. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11845. msm_routing_put_audio_mixer),
  11846. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11848. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11849. msm_routing_put_audio_mixer),
  11850. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11852. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11853. msm_routing_put_audio_mixer),
  11854. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11856. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11857. msm_routing_put_audio_mixer),
  11858. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11859. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11861. msm_routing_put_audio_mixer),
  11862. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11864. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11865. msm_routing_put_audio_mixer),
  11866. };
  11867. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  11868. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11870. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11871. msm_routing_put_audio_mixer),
  11872. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11875. msm_routing_put_audio_mixer),
  11876. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_INT_FM_TX,
  11878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11879. msm_routing_put_audio_mixer),
  11880. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_MI2S_TX,
  11882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11883. msm_routing_put_audio_mixer),
  11884. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11885. MSM_BACKEND_DAI_AFE_PCM_TX,
  11886. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11887. msm_routing_put_audio_mixer),
  11888. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11889. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11890. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11891. msm_routing_put_audio_mixer),
  11892. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_AUXPCM_TX,
  11894. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11895. msm_routing_put_audio_mixer),
  11896. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11898. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11899. msm_routing_put_audio_mixer),
  11900. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11902. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11903. msm_routing_put_audio_mixer),
  11904. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11906. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11907. msm_routing_put_audio_mixer),
  11908. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11910. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11911. msm_routing_put_audio_mixer),
  11912. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11915. msm_routing_put_audio_mixer),
  11916. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11919. msm_routing_put_audio_mixer),
  11920. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11922. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11923. msm_routing_put_audio_mixer),
  11924. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11926. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11927. msm_routing_put_audio_mixer),
  11928. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11931. msm_routing_put_audio_mixer),
  11932. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11934. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11935. msm_routing_put_audio_mixer),
  11936. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11937. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11938. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11939. msm_routing_put_audio_mixer),
  11940. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11941. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11943. msm_routing_put_audio_mixer),
  11944. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11946. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11947. msm_routing_put_audio_mixer),
  11948. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11950. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11951. msm_routing_put_audio_mixer),
  11952. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11955. msm_routing_put_audio_mixer),
  11956. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11958. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11959. msm_routing_put_audio_mixer),
  11960. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11963. msm_routing_put_audio_mixer),
  11964. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11967. msm_routing_put_audio_mixer),
  11968. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11971. msm_routing_put_audio_mixer),
  11972. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11973. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11974. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11975. msm_routing_put_audio_mixer),
  11976. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11977. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11978. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11979. msm_routing_put_audio_mixer),
  11980. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11981. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11982. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11983. msm_routing_put_audio_mixer),
  11984. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11985. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11986. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11987. msm_routing_put_audio_mixer),
  11988. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11990. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11991. msm_routing_put_audio_mixer),
  11992. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11993. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11994. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11995. msm_routing_put_audio_mixer),
  11996. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11998. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11999. msm_routing_put_audio_mixer),
  12000. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12002. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12003. msm_routing_put_audio_mixer),
  12004. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12006. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12007. msm_routing_put_audio_mixer),
  12008. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12010. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12011. msm_routing_put_audio_mixer),
  12012. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12013. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12014. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12015. msm_routing_put_audio_mixer),
  12016. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12017. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12018. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12019. msm_routing_put_audio_mixer),
  12020. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12021. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12022. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12023. msm_routing_put_audio_mixer),
  12024. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12025. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12026. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12027. msm_routing_put_audio_mixer),
  12028. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12029. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12030. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12031. msm_routing_put_audio_mixer),
  12032. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12033. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12034. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12035. msm_routing_put_audio_mixer),
  12036. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12037. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12038. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12039. msm_routing_put_audio_mixer),
  12040. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12042. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12043. msm_routing_put_audio_mixer),
  12044. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_USB_TX,
  12046. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12047. msm_routing_put_audio_mixer),
  12048. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12050. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12051. msm_routing_put_audio_mixer),
  12052. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12053. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12054. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12055. msm_routing_put_audio_mixer),
  12056. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12058. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12059. msm_routing_put_audio_mixer),
  12060. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12062. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12063. msm_routing_put_audio_mixer),
  12064. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12065. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12066. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12067. msm_routing_put_audio_mixer),
  12068. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12069. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12070. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12071. msm_routing_put_audio_mixer),
  12072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12074. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12075. msm_routing_put_audio_mixer),
  12076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12078. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12079. msm_routing_put_audio_mixer),
  12080. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12083. msm_routing_put_audio_mixer),
  12084. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12086. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12087. msm_routing_put_audio_mixer),
  12088. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12090. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12091. msm_routing_put_audio_mixer),
  12092. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12094. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12095. msm_routing_put_audio_mixer),
  12096. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12098. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12099. msm_routing_put_audio_mixer),
  12100. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12102. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12103. msm_routing_put_audio_mixer),
  12104. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12105. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12107. msm_routing_put_audio_mixer),
  12108. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12109. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12110. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12111. msm_routing_put_audio_mixer),
  12112. };
  12113. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12114. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_INT_FM_TX,
  12116. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12117. msm_routing_put_audio_mixer),
  12118. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12120. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12121. msm_routing_put_audio_mixer),
  12122. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12124. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12125. msm_routing_put_audio_mixer),
  12126. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12128. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12129. msm_routing_put_audio_mixer),
  12130. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12132. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12133. msm_routing_put_audio_mixer),
  12134. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12135. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12136. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12137. msm_routing_put_audio_mixer),
  12138. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12141. msm_routing_put_audio_mixer),
  12142. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12145. msm_routing_put_audio_mixer),
  12146. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12148. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12149. msm_routing_put_audio_mixer),
  12150. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12152. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12153. msm_routing_put_audio_mixer),
  12154. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12157. msm_routing_put_audio_mixer),
  12158. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_AUXPCM_TX,
  12160. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12161. msm_routing_put_audio_mixer),
  12162. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12165. msm_routing_put_audio_mixer),
  12166. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12168. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12169. msm_routing_put_audio_mixer),
  12170. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12172. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12173. msm_routing_put_audio_mixer),
  12174. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12177. msm_routing_put_audio_mixer),
  12178. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12180. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12184. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12185. msm_routing_put_audio_mixer),
  12186. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12188. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12189. msm_routing_put_audio_mixer),
  12190. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12192. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12193. msm_routing_put_audio_mixer),
  12194. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12196. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12197. msm_routing_put_audio_mixer),
  12198. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12200. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12201. msm_routing_put_audio_mixer),
  12202. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12205. msm_routing_put_audio_mixer),
  12206. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12207. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12208. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12209. msm_routing_put_audio_mixer),
  12210. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12211. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12212. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12213. msm_routing_put_audio_mixer),
  12214. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12215. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12216. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12217. msm_routing_put_audio_mixer),
  12218. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12220. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12221. msm_routing_put_audio_mixer),
  12222. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12224. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12225. msm_routing_put_audio_mixer),
  12226. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12228. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12229. msm_routing_put_audio_mixer),
  12230. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12232. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12233. msm_routing_put_audio_mixer),
  12234. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12236. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12237. msm_routing_put_audio_mixer),
  12238. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12240. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12241. msm_routing_put_audio_mixer),
  12242. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12243. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12244. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12245. msm_routing_put_audio_mixer),
  12246. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12247. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12248. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12249. msm_routing_put_audio_mixer),
  12250. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12251. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12252. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12253. msm_routing_put_audio_mixer),
  12254. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12256. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12257. msm_routing_put_audio_mixer),
  12258. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12260. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12261. msm_routing_put_audio_mixer),
  12262. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12263. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12264. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12265. msm_routing_put_audio_mixer),
  12266. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12268. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12269. msm_routing_put_audio_mixer),
  12270. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_USB_TX,
  12272. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12273. msm_routing_put_audio_mixer),
  12274. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12276. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12277. msm_routing_put_audio_mixer),
  12278. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12280. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12281. msm_routing_put_audio_mixer),
  12282. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12283. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12284. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12285. msm_routing_put_audio_mixer),
  12286. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12287. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12289. msm_routing_put_audio_mixer),
  12290. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12291. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12292. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12293. msm_routing_put_audio_mixer),
  12294. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12295. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12296. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12297. msm_routing_put_audio_mixer),
  12298. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12299. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12300. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12301. msm_routing_put_audio_mixer),
  12302. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12303. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12304. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12305. msm_routing_put_audio_mixer),
  12306. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12307. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12308. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12309. msm_routing_put_audio_mixer),
  12310. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12312. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12313. msm_routing_put_audio_mixer),
  12314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12316. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12317. msm_routing_put_audio_mixer),
  12318. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12319. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12321. msm_routing_put_audio_mixer),
  12322. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12323. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12324. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12325. msm_routing_put_audio_mixer),
  12326. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12328. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12329. msm_routing_put_audio_mixer),
  12330. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12331. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12332. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12333. msm_routing_put_audio_mixer),
  12334. };
  12335. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12336. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12338. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12339. msm_routing_put_audio_mixer),
  12340. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12342. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12343. msm_routing_put_audio_mixer),
  12344. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12346. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12347. msm_routing_put_audio_mixer),
  12348. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12350. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12351. msm_routing_put_audio_mixer),
  12352. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12354. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12355. msm_routing_put_audio_mixer),
  12356. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12358. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12359. msm_routing_put_audio_mixer),
  12360. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12362. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12363. msm_routing_put_audio_mixer),
  12364. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12366. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12367. msm_routing_put_audio_mixer),
  12368. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_INT_FM_TX,
  12370. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12371. msm_routing_put_audio_mixer),
  12372. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12374. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12375. msm_routing_put_audio_mixer),
  12376. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_AFE_PCM_TX,
  12378. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12379. msm_routing_put_audio_mixer),
  12380. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12383. msm_routing_put_audio_mixer),
  12384. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12385. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12386. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12387. msm_routing_put_audio_mixer),
  12388. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12391. msm_routing_put_audio_mixer),
  12392. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12395. msm_routing_put_audio_mixer),
  12396. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12398. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12399. msm_routing_put_audio_mixer),
  12400. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12402. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12403. msm_routing_put_audio_mixer),
  12404. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12405. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12406. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12407. msm_routing_put_audio_mixer),
  12408. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12410. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12411. msm_routing_put_audio_mixer),
  12412. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12414. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12415. msm_routing_put_audio_mixer),
  12416. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12419. msm_routing_put_audio_mixer),
  12420. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12423. msm_routing_put_audio_mixer),
  12424. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12426. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12427. msm_routing_put_audio_mixer),
  12428. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12429. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12431. msm_routing_put_audio_mixer),
  12432. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12434. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12435. msm_routing_put_audio_mixer),
  12436. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12438. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12439. msm_routing_put_audio_mixer),
  12440. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12441. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12442. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12443. msm_routing_put_audio_mixer),
  12444. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12446. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12447. msm_routing_put_audio_mixer),
  12448. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12449. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12450. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12451. msm_routing_put_audio_mixer),
  12452. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12454. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12455. msm_routing_put_audio_mixer),
  12456. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12458. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12459. msm_routing_put_audio_mixer),
  12460. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12462. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12463. msm_routing_put_audio_mixer),
  12464. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12466. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12467. msm_routing_put_audio_mixer),
  12468. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12471. msm_routing_put_audio_mixer),
  12472. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12474. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12475. msm_routing_put_audio_mixer),
  12476. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12477. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12478. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12479. msm_routing_put_audio_mixer),
  12480. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12481. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12482. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12483. msm_routing_put_audio_mixer),
  12484. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12486. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12487. msm_routing_put_audio_mixer),
  12488. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12490. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12491. msm_routing_put_audio_mixer),
  12492. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_USB_TX,
  12494. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12495. msm_routing_put_audio_mixer),
  12496. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12497. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12498. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12499. msm_routing_put_audio_mixer),
  12500. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12502. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12503. msm_routing_put_audio_mixer),
  12504. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12506. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12507. msm_routing_put_audio_mixer),
  12508. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12510. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12511. msm_routing_put_audio_mixer),
  12512. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12514. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12515. msm_routing_put_audio_mixer),
  12516. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12518. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12519. msm_routing_put_audio_mixer),
  12520. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12521. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12522. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12523. msm_routing_put_audio_mixer),
  12524. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12526. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12527. msm_routing_put_audio_mixer),
  12528. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12530. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12531. msm_routing_put_audio_mixer),
  12532. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12533. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12534. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12535. msm_routing_put_audio_mixer),
  12536. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12538. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12539. msm_routing_put_audio_mixer),
  12540. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12542. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12543. msm_routing_put_audio_mixer),
  12544. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12546. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12547. msm_routing_put_audio_mixer),
  12548. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12550. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12551. msm_routing_put_audio_mixer),
  12552. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12553. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12555. msm_routing_put_audio_mixer),
  12556. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12557. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12558. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12559. msm_routing_put_audio_mixer),
  12560. };
  12561. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12562. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12564. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12565. msm_routing_put_audio_mixer),
  12566. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12568. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12569. msm_routing_put_audio_mixer),
  12570. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12572. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12573. msm_routing_put_audio_mixer),
  12574. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12577. msm_routing_put_audio_mixer),
  12578. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12580. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12581. msm_routing_put_audio_mixer),
  12582. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12584. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12585. msm_routing_put_audio_mixer),
  12586. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12589. msm_routing_put_audio_mixer),
  12590. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12592. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12593. msm_routing_put_audio_mixer),
  12594. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_INT_FM_TX,
  12596. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12597. msm_routing_put_audio_mixer),
  12598. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12600. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12601. msm_routing_put_audio_mixer),
  12602. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_AFE_PCM_TX,
  12604. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12605. msm_routing_put_audio_mixer),
  12606. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12608. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12609. msm_routing_put_audio_mixer),
  12610. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12612. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12613. msm_routing_put_audio_mixer),
  12614. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12616. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12617. msm_routing_put_audio_mixer),
  12618. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12620. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12621. msm_routing_put_audio_mixer),
  12622. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12625. msm_routing_put_audio_mixer),
  12626. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12628. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12629. msm_routing_put_audio_mixer),
  12630. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12632. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12633. msm_routing_put_audio_mixer),
  12634. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12635. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12636. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12637. msm_routing_put_audio_mixer),
  12638. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12640. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12641. msm_routing_put_audio_mixer),
  12642. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12644. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12645. msm_routing_put_audio_mixer),
  12646. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12648. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12649. msm_routing_put_audio_mixer),
  12650. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12652. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12653. msm_routing_put_audio_mixer),
  12654. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12656. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12657. msm_routing_put_audio_mixer),
  12658. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12660. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12661. msm_routing_put_audio_mixer),
  12662. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12665. msm_routing_put_audio_mixer),
  12666. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12668. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12669. msm_routing_put_audio_mixer),
  12670. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12672. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12673. msm_routing_put_audio_mixer),
  12674. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12676. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12677. msm_routing_put_audio_mixer),
  12678. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12680. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12681. msm_routing_put_audio_mixer),
  12682. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12684. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12685. msm_routing_put_audio_mixer),
  12686. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_USB_TX,
  12688. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12689. msm_routing_put_audio_mixer),
  12690. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12691. MSM_BACKEND_DAI_MI2S_TX,
  12692. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12693. msm_routing_put_audio_mixer),
  12694. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12695. MSM_BACKEND_DAI_AUXPCM_TX,
  12696. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12697. msm_routing_put_audio_mixer),
  12698. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12700. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12701. msm_routing_put_audio_mixer),
  12702. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12705. msm_routing_put_audio_mixer),
  12706. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12707. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12708. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12709. msm_routing_put_audio_mixer),
  12710. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12711. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12712. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12713. msm_routing_put_audio_mixer),
  12714. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12715. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12716. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12717. msm_routing_put_audio_mixer),
  12718. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12719. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12720. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12721. msm_routing_put_audio_mixer),
  12722. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12723. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12724. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12725. msm_routing_put_audio_mixer),
  12726. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12727. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12728. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12729. msm_routing_put_audio_mixer),
  12730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12732. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12733. msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12738. msm_routing_get_audio_mixer,
  12739. msm_routing_put_audio_mixer),
  12740. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12742. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12743. msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12748. msm_routing_get_audio_mixer,
  12749. msm_routing_put_audio_mixer),
  12750. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12751. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12752. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12753. msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12758. msm_routing_get_audio_mixer,
  12759. msm_routing_put_audio_mixer),
  12760. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12762. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12763. msm_routing_put_audio_mixer),
  12764. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12766. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12767. msm_routing_put_audio_mixer),
  12768. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12770. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12771. msm_routing_put_audio_mixer),
  12772. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12774. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12775. msm_routing_put_audio_mixer),
  12776. };
  12777. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  12778. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12779. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12780. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12781. msm_routing_put_audio_mixer),
  12782. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12783. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12784. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12785. msm_routing_put_audio_mixer),
  12786. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12787. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12788. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12789. msm_routing_put_audio_mixer),
  12790. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_INT_FM_TX,
  12792. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12793. msm_routing_put_audio_mixer),
  12794. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12796. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12797. msm_routing_put_audio_mixer),
  12798. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12799. MSM_BACKEND_DAI_AFE_PCM_TX,
  12800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12801. msm_routing_put_audio_mixer),
  12802. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12803. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12804. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12805. msm_routing_put_audio_mixer),
  12806. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12807. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12809. msm_routing_put_audio_mixer),
  12810. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12812. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12813. msm_routing_put_audio_mixer),
  12814. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12815. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12816. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12817. msm_routing_put_audio_mixer),
  12818. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12819. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12820. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12821. msm_routing_put_audio_mixer),
  12822. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12823. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12824. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12825. msm_routing_put_audio_mixer),
  12826. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12827. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12828. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12829. msm_routing_put_audio_mixer),
  12830. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12832. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12833. msm_routing_put_audio_mixer),
  12834. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12835. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12836. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12837. msm_routing_put_audio_mixer),
  12838. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12839. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12840. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12841. msm_routing_put_audio_mixer),
  12842. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12844. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12845. msm_routing_put_audio_mixer),
  12846. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12847. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12848. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12849. msm_routing_put_audio_mixer),
  12850. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12852. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12853. msm_routing_put_audio_mixer),
  12854. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12855. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12856. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12857. msm_routing_put_audio_mixer),
  12858. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12859. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12860. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12861. msm_routing_put_audio_mixer),
  12862. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12864. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12865. msm_routing_put_audio_mixer),
  12866. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12867. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12868. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12869. msm_routing_put_audio_mixer),
  12870. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12872. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12873. msm_routing_put_audio_mixer),
  12874. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12876. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12877. msm_routing_put_audio_mixer),
  12878. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12881. msm_routing_put_audio_mixer),
  12882. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12884. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12885. msm_routing_put_audio_mixer),
  12886. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12888. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12889. msm_routing_put_audio_mixer),
  12890. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12892. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12893. msm_routing_put_audio_mixer),
  12894. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12895. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12896. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12897. msm_routing_put_audio_mixer),
  12898. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12901. msm_routing_put_audio_mixer),
  12902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12904. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12905. msm_routing_put_audio_mixer),
  12906. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12909. msm_routing_put_audio_mixer),
  12910. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12913. msm_routing_put_audio_mixer),
  12914. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12916. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12917. msm_routing_put_audio_mixer),
  12918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12920. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12921. msm_routing_put_audio_mixer),
  12922. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12924. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12925. msm_routing_put_audio_mixer),
  12926. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12928. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12929. msm_routing_put_audio_mixer),
  12930. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12931. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12932. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12933. msm_routing_put_audio_mixer),
  12934. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12935. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12936. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12937. msm_routing_put_audio_mixer),
  12938. };
  12939. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  12940. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12942. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12943. msm_routing_put_audio_mixer),
  12944. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12946. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12947. msm_routing_put_audio_mixer),
  12948. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12951. msm_routing_put_audio_mixer),
  12952. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_INT_FM_TX,
  12954. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12955. msm_routing_put_audio_mixer),
  12956. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12958. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12959. msm_routing_put_audio_mixer),
  12960. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12961. MSM_BACKEND_DAI_AFE_PCM_TX,
  12962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12963. msm_routing_put_audio_mixer),
  12964. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12966. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12967. msm_routing_put_audio_mixer),
  12968. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12970. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12971. msm_routing_put_audio_mixer),
  12972. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12975. msm_routing_put_audio_mixer),
  12976. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12977. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12978. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12979. msm_routing_put_audio_mixer),
  12980. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12981. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12982. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12983. msm_routing_put_audio_mixer),
  12984. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12987. msm_routing_put_audio_mixer),
  12988. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12990. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12991. msm_routing_put_audio_mixer),
  12992. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12994. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12995. msm_routing_put_audio_mixer),
  12996. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12997. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12998. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12999. msm_routing_put_audio_mixer),
  13000. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13001. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13002. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13003. msm_routing_put_audio_mixer),
  13004. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13005. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13006. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13007. msm_routing_put_audio_mixer),
  13008. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13010. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13011. msm_routing_put_audio_mixer),
  13012. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_USB_TX,
  13014. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13015. msm_routing_put_audio_mixer),
  13016. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13017. MSM_BACKEND_DAI_MI2S_TX,
  13018. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13019. msm_routing_put_audio_mixer),
  13020. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13021. MSM_BACKEND_DAI_AUXPCM_TX,
  13022. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13023. msm_routing_put_audio_mixer),
  13024. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13025. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13026. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13027. msm_routing_put_audio_mixer),
  13028. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13029. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13030. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13031. msm_routing_put_audio_mixer),
  13032. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13034. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13035. msm_routing_put_audio_mixer),
  13036. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13037. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13038. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13039. msm_routing_put_audio_mixer),
  13040. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13041. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13042. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13043. msm_routing_put_audio_mixer),
  13044. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13046. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13047. msm_routing_put_audio_mixer),
  13048. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13050. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13051. msm_routing_put_audio_mixer),
  13052. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13054. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13055. msm_routing_put_audio_mixer),
  13056. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13058. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13059. msm_routing_put_audio_mixer),
  13060. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13061. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13062. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13063. msm_routing_put_audio_mixer),
  13064. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13066. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13067. msm_routing_put_audio_mixer),
  13068. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13070. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13071. msm_routing_put_audio_mixer),
  13072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13074. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13075. msm_routing_get_audio_mixer,
  13076. msm_routing_put_audio_mixer),
  13077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13079. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13080. msm_routing_get_audio_mixer,
  13081. msm_routing_put_audio_mixer),
  13082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13084. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13085. msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13090. msm_routing_get_audio_mixer,
  13091. msm_routing_put_audio_mixer),
  13092. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13093. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13094. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13095. msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13100. msm_routing_get_audio_mixer,
  13101. msm_routing_put_audio_mixer),
  13102. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13104. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13105. msm_routing_put_audio_mixer),
  13106. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13108. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13109. msm_routing_put_audio_mixer),
  13110. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13112. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13113. msm_routing_put_audio_mixer),
  13114. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13116. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13117. msm_routing_put_audio_mixer),
  13118. };
  13119. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13120. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13122. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13123. msm_routing_put_audio_mixer),
  13124. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13126. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13127. msm_routing_put_audio_mixer),
  13128. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13130. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13131. msm_routing_put_audio_mixer),
  13132. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13134. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13135. msm_routing_put_audio_mixer),
  13136. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_INT_FM_TX,
  13138. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13139. msm_routing_put_audio_mixer),
  13140. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13142. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13143. msm_routing_put_audio_mixer),
  13144. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_AFE_PCM_TX,
  13146. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13147. msm_routing_put_audio_mixer),
  13148. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13150. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13151. msm_routing_put_audio_mixer),
  13152. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13154. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13155. msm_routing_put_audio_mixer),
  13156. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13158. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13159. msm_routing_put_audio_mixer),
  13160. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13162. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13163. msm_routing_put_audio_mixer),
  13164. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13166. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13167. msm_routing_put_audio_mixer),
  13168. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13170. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13171. msm_routing_put_audio_mixer),
  13172. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13174. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13175. msm_routing_put_audio_mixer),
  13176. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13178. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13179. msm_routing_put_audio_mixer),
  13180. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13182. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13183. msm_routing_put_audio_mixer),
  13184. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13186. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13187. msm_routing_put_audio_mixer),
  13188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13190. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13191. msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13196. msm_routing_get_audio_mixer,
  13197. msm_routing_put_audio_mixer),
  13198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13200. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13201. msm_routing_get_audio_mixer,
  13202. msm_routing_put_audio_mixer),
  13203. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13205. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13206. msm_routing_get_audio_mixer,
  13207. msm_routing_put_audio_mixer),
  13208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13210. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13211. msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13216. msm_routing_get_audio_mixer,
  13217. msm_routing_put_audio_mixer),
  13218. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13220. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13221. msm_routing_put_audio_mixer),
  13222. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13224. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13225. msm_routing_put_audio_mixer),
  13226. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13228. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13229. msm_routing_put_audio_mixer),
  13230. };
  13231. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13232. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13234. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13235. msm_routing_put_audio_mixer),
  13236. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13238. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13239. msm_routing_put_audio_mixer),
  13240. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13242. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13243. msm_routing_put_audio_mixer),
  13244. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13246. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13247. msm_routing_put_audio_mixer),
  13248. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13250. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13251. msm_routing_put_audio_mixer),
  13252. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13254. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13255. msm_routing_put_audio_mixer),
  13256. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13258. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13259. msm_routing_put_audio_mixer),
  13260. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_INT_FM_TX,
  13262. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13263. msm_routing_put_audio_mixer),
  13264. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13266. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13267. msm_routing_put_audio_mixer),
  13268. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_AFE_PCM_TX,
  13270. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13271. msm_routing_put_audio_mixer),
  13272. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13274. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13275. msm_routing_put_audio_mixer),
  13276. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13278. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13279. msm_routing_put_audio_mixer),
  13280. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13282. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13283. msm_routing_put_audio_mixer),
  13284. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13286. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13287. msm_routing_put_audio_mixer),
  13288. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13290. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13291. msm_routing_put_audio_mixer),
  13292. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13294. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13295. msm_routing_put_audio_mixer),
  13296. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13298. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13299. msm_routing_put_audio_mixer),
  13300. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13302. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13303. msm_routing_put_audio_mixer),
  13304. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13306. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13307. msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13312. msm_routing_get_audio_mixer,
  13313. msm_routing_put_audio_mixer),
  13314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13316. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13317. msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13322. msm_routing_get_audio_mixer,
  13323. msm_routing_put_audio_mixer),
  13324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13326. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13327. msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13332. msm_routing_get_audio_mixer,
  13333. msm_routing_put_audio_mixer),
  13334. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13336. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13337. msm_routing_put_audio_mixer),
  13338. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13339. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13340. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13341. msm_routing_put_audio_mixer),
  13342. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13343. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13344. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13345. msm_routing_put_audio_mixer),
  13346. };
  13347. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13348. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13350. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13351. msm_routing_put_audio_mixer),
  13352. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13354. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13355. msm_routing_put_audio_mixer),
  13356. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13358. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13359. msm_routing_put_audio_mixer),
  13360. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13362. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13363. msm_routing_put_audio_mixer),
  13364. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_INT_FM_TX,
  13366. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13367. msm_routing_put_audio_mixer),
  13368. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13370. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13371. msm_routing_put_audio_mixer),
  13372. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_AFE_PCM_TX,
  13374. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13375. msm_routing_put_audio_mixer),
  13376. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13377. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13378. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13379. msm_routing_put_audio_mixer),
  13380. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13382. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13383. msm_routing_put_audio_mixer),
  13384. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13386. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13387. msm_routing_put_audio_mixer),
  13388. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13390. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13391. msm_routing_put_audio_mixer),
  13392. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13394. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13395. msm_routing_put_audio_mixer),
  13396. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13398. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13399. msm_routing_put_audio_mixer),
  13400. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13402. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13403. msm_routing_put_audio_mixer),
  13404. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13406. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13407. msm_routing_put_audio_mixer),
  13408. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13410. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13411. msm_routing_put_audio_mixer),
  13412. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13414. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13415. msm_routing_put_audio_mixer),
  13416. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13418. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13419. msm_routing_put_audio_mixer),
  13420. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13422. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13423. msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13427. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13428. msm_routing_get_audio_mixer,
  13429. msm_routing_put_audio_mixer),
  13430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13432. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13433. msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13438. msm_routing_get_audio_mixer,
  13439. msm_routing_put_audio_mixer),
  13440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13442. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13443. msm_routing_get_audio_mixer,
  13444. msm_routing_put_audio_mixer),
  13445. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13447. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13448. msm_routing_get_audio_mixer,
  13449. msm_routing_put_audio_mixer),
  13450. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13452. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13453. msm_routing_put_audio_mixer),
  13454. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13456. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13457. msm_routing_put_audio_mixer),
  13458. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13460. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13461. msm_routing_put_audio_mixer),
  13462. };
  13463. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13464. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13465. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13466. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13467. msm_routing_put_audio_mixer),
  13468. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13469. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13470. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13471. msm_routing_put_audio_mixer),
  13472. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13474. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13475. msm_routing_put_audio_mixer),
  13476. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13478. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13479. msm_routing_put_audio_mixer),
  13480. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13481. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13482. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13483. msm_routing_put_audio_mixer),
  13484. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13485. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13486. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13487. msm_routing_put_audio_mixer),
  13488. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13490. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13491. msm_routing_put_audio_mixer),
  13492. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13494. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13495. msm_routing_put_audio_mixer),
  13496. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13498. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13499. msm_routing_put_audio_mixer),
  13500. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13502. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13503. msm_routing_put_audio_mixer),
  13504. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13506. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13507. msm_routing_put_audio_mixer),
  13508. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13510. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13511. msm_routing_put_audio_mixer),
  13512. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13514. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13515. msm_routing_put_audio_mixer),
  13516. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13517. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13518. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13519. msm_routing_put_audio_mixer),
  13520. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13521. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13522. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13523. msm_routing_put_audio_mixer),
  13524. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13526. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13527. msm_routing_put_audio_mixer),
  13528. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13529. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13530. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13531. msm_routing_put_audio_mixer),
  13532. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13533. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13534. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13535. msm_routing_put_audio_mixer),
  13536. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13537. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13538. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13539. msm_routing_put_audio_mixer),
  13540. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13541. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13542. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13543. msm_routing_put_audio_mixer),
  13544. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13546. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13547. msm_routing_put_audio_mixer),
  13548. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13549. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13550. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13551. msm_routing_put_audio_mixer),
  13552. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13553. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13554. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13555. msm_routing_put_audio_mixer),
  13556. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13558. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13559. msm_routing_put_audio_mixer),
  13560. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13561. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13562. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13563. msm_routing_put_audio_mixer),
  13564. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13566. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13567. msm_routing_put_audio_mixer),
  13568. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13570. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13571. msm_routing_put_audio_mixer),
  13572. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13574. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13575. msm_routing_put_audio_mixer),
  13576. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13578. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13579. msm_routing_put_audio_mixer),
  13580. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13582. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13583. msm_routing_put_audio_mixer),
  13584. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13586. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13587. msm_routing_put_audio_mixer),
  13588. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13590. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13591. msm_routing_put_audio_mixer),
  13592. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13594. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13595. msm_routing_put_audio_mixer),
  13596. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13598. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13599. msm_routing_put_audio_mixer),
  13600. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13602. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13603. msm_routing_put_audio_mixer),
  13604. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13606. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13607. msm_routing_put_audio_mixer),
  13608. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13610. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13611. msm_routing_put_audio_mixer),
  13612. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13614. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13615. msm_routing_put_audio_mixer),
  13616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13618. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13619. msm_routing_put_audio_mixer),
  13620. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13622. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13623. msm_routing_put_audio_mixer),
  13624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13626. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13627. msm_routing_put_audio_mixer),
  13628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13630. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13631. msm_routing_put_audio_mixer),
  13632. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13634. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13635. msm_routing_put_audio_mixer),
  13636. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13638. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13639. msm_routing_put_audio_mixer),
  13640. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13642. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13643. msm_routing_put_audio_mixer),
  13644. };
  13645. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13646. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13647. MSM_BACKEND_DAI_AUXPCM_TX,
  13648. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13649. msm_routing_put_audio_mixer),
  13650. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13651. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13652. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13653. msm_routing_put_audio_mixer),
  13654. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13655. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13656. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13657. msm_routing_put_audio_mixer),
  13658. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13660. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13661. msm_routing_put_audio_mixer),
  13662. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13664. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13665. msm_routing_put_audio_mixer),
  13666. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13668. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13669. msm_routing_put_audio_mixer),
  13670. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13672. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13673. msm_routing_put_audio_mixer),
  13674. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13676. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13677. msm_routing_put_audio_mixer),
  13678. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13680. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13681. msm_routing_put_audio_mixer),
  13682. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13684. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13685. msm_routing_put_audio_mixer),
  13686. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13688. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13689. msm_routing_put_audio_mixer),
  13690. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13692. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13693. msm_routing_put_audio_mixer),
  13694. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13696. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13697. msm_routing_put_audio_mixer),
  13698. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13700. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13701. msm_routing_put_audio_mixer),
  13702. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13704. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13705. msm_routing_put_audio_mixer),
  13706. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13708. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13709. msm_routing_put_audio_mixer),
  13710. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13711. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13712. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13713. msm_routing_put_audio_mixer),
  13714. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13715. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13716. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13717. msm_routing_put_audio_mixer),
  13718. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13719. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13720. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13721. msm_routing_put_audio_mixer),
  13722. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13724. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13725. msm_routing_put_audio_mixer),
  13726. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13727. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13728. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13729. msm_routing_put_audio_mixer),
  13730. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13731. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13732. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13733. msm_routing_put_audio_mixer),
  13734. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13736. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13737. msm_routing_put_audio_mixer),
  13738. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13740. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13741. msm_routing_put_audio_mixer),
  13742. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13744. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13745. msm_routing_put_audio_mixer),
  13746. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13748. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13749. msm_routing_put_audio_mixer),
  13750. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13752. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13753. msm_routing_put_audio_mixer),
  13754. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13756. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13757. msm_routing_put_audio_mixer),
  13758. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13760. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13761. msm_routing_put_audio_mixer),
  13762. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13764. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13765. msm_routing_put_audio_mixer),
  13766. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13768. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13769. msm_routing_put_audio_mixer),
  13770. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13771. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13772. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13773. msm_routing_put_audio_mixer),
  13774. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13776. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13777. msm_routing_put_audio_mixer),
  13778. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13780. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13781. msm_routing_put_audio_mixer),
  13782. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13784. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13785. msm_routing_put_audio_mixer),
  13786. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13788. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13789. msm_routing_put_audio_mixer),
  13790. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13792. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13793. msm_routing_put_audio_mixer),
  13794. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13796. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13797. msm_routing_put_audio_mixer),
  13798. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13799. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13800. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13801. msm_routing_put_audio_mixer),
  13802. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13803. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13804. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13805. msm_routing_put_audio_mixer),
  13806. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13807. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13808. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13809. msm_routing_put_audio_mixer),
  13810. };
  13811. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  13812. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13814. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13815. msm_routing_put_audio_mixer),
  13816. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13818. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13819. msm_routing_put_audio_mixer),
  13820. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13822. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13823. msm_routing_put_audio_mixer),
  13824. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13826. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13827. msm_routing_put_audio_mixer),
  13828. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13830. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13831. msm_routing_put_audio_mixer),
  13832. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13834. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13835. msm_routing_put_audio_mixer),
  13836. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13838. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13839. msm_routing_put_audio_mixer),
  13840. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13842. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13843. msm_routing_put_audio_mixer),
  13844. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13846. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13847. msm_routing_put_audio_mixer),
  13848. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13850. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13851. msm_routing_put_audio_mixer),
  13852. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13854. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13855. msm_routing_put_audio_mixer),
  13856. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13858. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13859. msm_routing_put_audio_mixer),
  13860. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13862. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13863. msm_routing_put_audio_mixer),
  13864. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13866. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13867. msm_routing_put_audio_mixer),
  13868. };
  13869. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  13870. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13872. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13873. msm_routing_put_audio_mixer),
  13874. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13876. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13877. msm_routing_put_audio_mixer),
  13878. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13880. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13881. msm_routing_put_audio_mixer),
  13882. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13884. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13885. msm_routing_put_audio_mixer),
  13886. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13887. MSM_BACKEND_DAI_INT_FM_TX,
  13888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13889. msm_routing_put_audio_mixer),
  13890. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13891. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13892. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13893. msm_routing_put_audio_mixer),
  13894. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13895. MSM_BACKEND_DAI_AFE_PCM_TX,
  13896. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13897. msm_routing_put_audio_mixer),
  13898. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13899. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13900. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13901. msm_routing_put_audio_mixer),
  13902. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13903. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13904. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13905. msm_routing_put_audio_mixer),
  13906. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13908. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13909. msm_routing_put_audio_mixer),
  13910. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13912. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13913. msm_routing_put_audio_mixer),
  13914. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13916. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13917. msm_routing_put_audio_mixer),
  13918. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13920. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13921. msm_routing_put_audio_mixer),
  13922. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13924. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13925. msm_routing_put_audio_mixer),
  13926. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13928. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13929. msm_routing_put_audio_mixer),
  13930. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13932. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13933. msm_routing_put_audio_mixer),
  13934. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13936. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13937. msm_routing_put_audio_mixer),
  13938. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13940. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13941. msm_routing_put_audio_mixer),
  13942. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13944. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13945. msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13950. msm_routing_get_audio_mixer,
  13951. msm_routing_put_audio_mixer),
  13952. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13954. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13955. msm_routing_get_audio_mixer,
  13956. msm_routing_put_audio_mixer),
  13957. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13959. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13960. msm_routing_get_audio_mixer,
  13961. msm_routing_put_audio_mixer),
  13962. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13964. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13965. msm_routing_get_audio_mixer,
  13966. msm_routing_put_audio_mixer),
  13967. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13969. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13970. msm_routing_get_audio_mixer,
  13971. msm_routing_put_audio_mixer),
  13972. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13974. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13975. msm_routing_put_audio_mixer),
  13976. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13978. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13979. msm_routing_put_audio_mixer),
  13980. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13982. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13983. msm_routing_put_audio_mixer),
  13984. };
  13985. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  13986. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13988. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13989. msm_routing_put_audio_mixer),
  13990. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13992. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13993. msm_routing_put_audio_mixer),
  13994. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13996. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13997. msm_routing_put_audio_mixer),
  13998. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14000. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14001. msm_routing_put_audio_mixer),
  14002. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_INT_FM_TX,
  14004. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14005. msm_routing_put_audio_mixer),
  14006. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14008. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14009. msm_routing_put_audio_mixer),
  14010. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_AFE_PCM_TX,
  14012. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14013. msm_routing_put_audio_mixer),
  14014. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14016. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14017. msm_routing_put_audio_mixer),
  14018. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14020. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14021. msm_routing_put_audio_mixer),
  14022. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14024. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14025. msm_routing_put_audio_mixer),
  14026. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14028. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14029. msm_routing_put_audio_mixer),
  14030. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14032. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14033. msm_routing_put_audio_mixer),
  14034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14036. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14037. msm_routing_put_audio_mixer),
  14038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14040. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14041. msm_routing_put_audio_mixer),
  14042. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14043. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14044. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14045. msm_routing_put_audio_mixer),
  14046. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14047. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14048. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14049. msm_routing_put_audio_mixer),
  14050. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14052. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14053. msm_routing_put_audio_mixer),
  14054. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14056. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14057. msm_routing_put_audio_mixer),
  14058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14060. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14061. msm_routing_get_audio_mixer,
  14062. msm_routing_put_audio_mixer),
  14063. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14065. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14066. msm_routing_get_audio_mixer,
  14067. msm_routing_put_audio_mixer),
  14068. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14070. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14071. msm_routing_get_audio_mixer,
  14072. msm_routing_put_audio_mixer),
  14073. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14075. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14076. msm_routing_get_audio_mixer,
  14077. msm_routing_put_audio_mixer),
  14078. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14080. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14081. msm_routing_get_audio_mixer,
  14082. msm_routing_put_audio_mixer),
  14083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14085. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14086. msm_routing_get_audio_mixer,
  14087. msm_routing_put_audio_mixer),
  14088. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14089. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14090. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14091. msm_routing_put_audio_mixer),
  14092. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14093. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14094. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14095. msm_routing_put_audio_mixer),
  14096. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14097. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14098. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14099. msm_routing_put_audio_mixer),
  14100. };
  14101. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14102. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14104. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14105. msm_routing_put_audio_mixer),
  14106. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14108. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14109. msm_routing_put_audio_mixer),
  14110. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14112. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14113. msm_routing_put_audio_mixer),
  14114. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14116. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14117. msm_routing_put_audio_mixer),
  14118. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_INT_FM_TX,
  14120. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14121. msm_routing_put_audio_mixer),
  14122. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14124. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14125. msm_routing_put_audio_mixer),
  14126. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_AFE_PCM_TX,
  14128. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14129. msm_routing_put_audio_mixer),
  14130. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14132. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14133. msm_routing_put_audio_mixer),
  14134. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14136. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14137. msm_routing_put_audio_mixer),
  14138. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14140. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14141. msm_routing_put_audio_mixer),
  14142. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14144. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14145. msm_routing_put_audio_mixer),
  14146. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14148. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14149. msm_routing_put_audio_mixer),
  14150. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14152. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14153. msm_routing_put_audio_mixer),
  14154. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14156. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14157. msm_routing_put_audio_mixer),
  14158. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14160. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14161. msm_routing_put_audio_mixer),
  14162. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14164. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14165. msm_routing_put_audio_mixer),
  14166. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14168. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14169. msm_routing_put_audio_mixer),
  14170. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14172. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14173. msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14178. msm_routing_get_audio_mixer,
  14179. msm_routing_put_audio_mixer),
  14180. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14181. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14182. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14183. msm_routing_get_audio_mixer,
  14184. msm_routing_put_audio_mixer),
  14185. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14187. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14188. msm_routing_get_audio_mixer,
  14189. msm_routing_put_audio_mixer),
  14190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14192. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14193. msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14197. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14198. msm_routing_get_audio_mixer,
  14199. msm_routing_put_audio_mixer),
  14200. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14202. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14203. msm_routing_put_audio_mixer),
  14204. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14205. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14206. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14207. msm_routing_put_audio_mixer),
  14208. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14210. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14211. msm_routing_put_audio_mixer),
  14212. };
  14213. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14214. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14215. MSM_BACKEND_DAI_PRI_I2S_RX,
  14216. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14217. msm_routing_put_voice_mixer),
  14218. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14219. MSM_BACKEND_DAI_PRI_I2S_RX,
  14220. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14221. msm_routing_put_voice_mixer),
  14222. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14223. MSM_BACKEND_DAI_PRI_I2S_RX,
  14224. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14225. msm_routing_put_voice_mixer),
  14226. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14227. MSM_BACKEND_DAI_PRI_I2S_RX,
  14228. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14229. msm_routing_put_voice_mixer),
  14230. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_PRI_I2S_RX,
  14232. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14233. msm_routing_put_voice_mixer),
  14234. };
  14235. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14236. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14237. MSM_BACKEND_DAI_SEC_I2S_RX,
  14238. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14239. msm_routing_put_voice_mixer),
  14240. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_SEC_I2S_RX,
  14242. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14243. msm_routing_put_voice_mixer),
  14244. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14245. MSM_BACKEND_DAI_SEC_I2S_RX,
  14246. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14247. msm_routing_put_voice_mixer),
  14248. };
  14249. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14250. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14251. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14252. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14253. msm_routing_put_voice_mixer),
  14254. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14256. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14257. msm_routing_put_voice_mixer),
  14258. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14260. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14261. msm_routing_put_voice_mixer),
  14262. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14263. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14264. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14265. msm_routing_put_voice_mixer),
  14266. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14267. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14268. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14269. msm_routing_put_voice_mixer),
  14270. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14271. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14272. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14273. msm_routing_put_voice_mixer),
  14274. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14275. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14276. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14277. msm_routing_put_voice_mixer),
  14278. };
  14279. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14280. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14282. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14283. msm_routing_put_voice_mixer),
  14284. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14286. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14287. msm_routing_put_voice_mixer),
  14288. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14290. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14291. msm_routing_put_voice_mixer),
  14292. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14294. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14295. msm_routing_put_voice_mixer),
  14296. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14298. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14299. msm_routing_put_voice_mixer),
  14300. };
  14301. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14302. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14303. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14304. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14305. msm_routing_put_voice_mixer),
  14306. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14307. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14308. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14309. msm_routing_put_voice_mixer),
  14310. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14311. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14312. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14313. msm_routing_put_voice_mixer),
  14314. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14315. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14316. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14317. msm_routing_put_voice_mixer),
  14318. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14319. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14320. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14321. msm_routing_put_voice_mixer),
  14322. };
  14323. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14324. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_USB_RX,
  14326. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14327. msm_routing_put_voice_mixer),
  14328. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14329. MSM_BACKEND_DAI_USB_RX,
  14330. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14331. msm_routing_put_voice_mixer),
  14332. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_USB_RX,
  14334. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14335. msm_routing_put_voice_mixer),
  14336. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_USB_RX,
  14338. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14339. msm_routing_put_voice_mixer),
  14340. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_USB_RX,
  14342. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14343. msm_routing_put_voice_mixer),
  14344. };
  14345. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14346. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14348. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14349. msm_routing_put_voice_mixer),
  14350. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14352. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14353. msm_routing_put_voice_mixer),
  14354. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14356. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14357. msm_routing_put_voice_mixer),
  14358. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14359. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14360. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14361. msm_routing_put_voice_mixer),
  14362. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14363. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14364. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14365. msm_routing_put_voice_mixer),
  14366. };
  14367. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14368. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14369. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14370. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14371. msm_routing_put_voice_mixer),
  14372. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14373. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14374. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14375. msm_routing_put_voice_mixer),
  14376. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14377. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14378. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14379. msm_routing_put_voice_mixer),
  14380. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14382. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14383. msm_routing_put_voice_mixer),
  14384. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14385. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14386. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14387. msm_routing_put_voice_mixer),
  14388. };
  14389. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14390. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14392. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14393. msm_routing_put_voice_mixer),
  14394. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14396. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14397. msm_routing_put_voice_mixer),
  14398. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14399. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14400. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14401. msm_routing_put_voice_mixer),
  14402. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14404. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14405. msm_routing_put_voice_mixer),
  14406. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14407. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14408. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14409. msm_routing_put_voice_mixer),
  14410. };
  14411. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14412. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_MI2S_RX,
  14414. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14415. msm_routing_put_voice_mixer),
  14416. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_MI2S_RX,
  14418. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14419. msm_routing_put_voice_mixer),
  14420. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_MI2S_RX,
  14422. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14423. msm_routing_put_voice_mixer),
  14424. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_MI2S_RX,
  14426. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14427. msm_routing_put_voice_mixer),
  14428. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_MI2S_RX,
  14430. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14431. msm_routing_put_voice_mixer),
  14432. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_MI2S_RX,
  14434. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14435. msm_routing_put_voice_mixer),
  14436. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_MI2S_RX,
  14438. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14439. msm_routing_put_voice_mixer),
  14440. };
  14441. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14442. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14443. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14444. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14445. msm_routing_put_voice_mixer),
  14446. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14447. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14448. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14449. msm_routing_put_voice_mixer),
  14450. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14451. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14452. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14453. msm_routing_put_voice_mixer),
  14454. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14455. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14456. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14457. msm_routing_put_voice_mixer),
  14458. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14460. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14461. msm_routing_put_voice_mixer),
  14462. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14464. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14465. msm_routing_put_voice_mixer),
  14466. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14468. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14469. msm_routing_put_voice_mixer),
  14470. };
  14471. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14472. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14474. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14475. msm_routing_put_voice_mixer),
  14476. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14478. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14479. msm_routing_put_voice_mixer),
  14480. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14481. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14482. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14483. msm_routing_put_voice_mixer),
  14484. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14485. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14486. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14487. msm_routing_put_voice_mixer),
  14488. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14489. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14490. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14491. msm_routing_put_voice_mixer),
  14492. };
  14493. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14494. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14496. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14497. msm_routing_put_voice_mixer),
  14498. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14500. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14501. msm_routing_put_voice_mixer),
  14502. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14505. msm_routing_put_voice_mixer),
  14506. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14508. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14509. msm_routing_put_voice_mixer),
  14510. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14512. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14513. msm_routing_put_voice_mixer),
  14514. };
  14515. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14516. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14518. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14519. msm_routing_put_voice_mixer),
  14520. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14521. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14522. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14523. msm_routing_put_voice_mixer),
  14524. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14525. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14526. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14527. msm_routing_put_voice_mixer),
  14528. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14529. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14530. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14531. msm_routing_put_voice_mixer),
  14532. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14533. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14534. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14535. msm_routing_put_voice_mixer),
  14536. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14538. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14539. msm_routing_put_voice_mixer),
  14540. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14541. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14542. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14543. msm_routing_put_voice_mixer),
  14544. };
  14545. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14546. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14548. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14549. msm_routing_put_voice_mixer),
  14550. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14552. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14553. msm_routing_put_voice_mixer),
  14554. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14556. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14557. msm_routing_put_voice_mixer),
  14558. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14559. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14560. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14561. msm_routing_put_voice_mixer),
  14562. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14564. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14565. msm_routing_put_voice_mixer),
  14566. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14568. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14569. msm_routing_put_voice_mixer),
  14570. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14571. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14572. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14573. msm_routing_put_voice_mixer),
  14574. };
  14575. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14576. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14578. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14579. msm_routing_put_voice_mixer),
  14580. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14581. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14582. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14583. msm_routing_put_voice_stub_mixer),
  14584. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14586. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14587. msm_routing_put_voice_stub_mixer),
  14588. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14590. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14591. msm_routing_put_voice_mixer),
  14592. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14593. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14594. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14595. msm_routing_put_voice_mixer),
  14596. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14597. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14598. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14599. msm_routing_put_voice_mixer),
  14600. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14601. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14602. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14603. msm_routing_put_voice_mixer),
  14604. };
  14605. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  14606. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14609. msm_routing_put_voice_mixer),
  14610. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14611. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14612. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14613. msm_routing_put_voice_mixer),
  14614. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14615. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14616. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14617. msm_routing_put_voice_mixer),
  14618. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14620. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14621. msm_routing_put_voice_mixer),
  14622. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14624. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14625. msm_routing_put_voice_mixer),
  14626. };
  14627. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  14628. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_AFE_PCM_RX,
  14630. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14631. msm_routing_put_voice_mixer),
  14632. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14633. MSM_BACKEND_DAI_AFE_PCM_RX,
  14634. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14635. msm_routing_put_voice_mixer),
  14636. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_AFE_PCM_RX,
  14638. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14639. msm_routing_put_voice_mixer),
  14640. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_AFE_PCM_RX,
  14642. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14643. msm_routing_put_voice_mixer),
  14644. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_AFE_PCM_RX,
  14646. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14647. msm_routing_put_voice_mixer),
  14648. };
  14649. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  14650. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14651. MSM_BACKEND_DAI_AUXPCM_RX,
  14652. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14653. msm_routing_put_voice_mixer),
  14654. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14655. MSM_BACKEND_DAI_AUXPCM_RX,
  14656. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14657. msm_routing_put_voice_mixer),
  14658. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_AUXPCM_RX,
  14660. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14661. msm_routing_put_voice_mixer),
  14662. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14663. MSM_BACKEND_DAI_AUXPCM_RX,
  14664. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14665. msm_routing_put_voice_mixer),
  14666. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14667. MSM_BACKEND_DAI_AUXPCM_RX,
  14668. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14669. msm_routing_put_voice_mixer),
  14670. };
  14671. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  14672. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14673. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14674. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14675. msm_routing_put_voice_mixer),
  14676. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14678. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14679. msm_routing_put_voice_mixer),
  14680. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14682. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14683. msm_routing_put_voice_mixer),
  14684. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14686. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14687. msm_routing_put_voice_mixer),
  14688. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14690. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14691. msm_routing_put_voice_mixer),
  14692. };
  14693. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  14694. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14695. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14696. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14697. msm_routing_put_voice_mixer),
  14698. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14700. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14701. msm_routing_put_voice_mixer),
  14702. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14703. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14704. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14705. msm_routing_put_voice_mixer),
  14706. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14707. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14708. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14709. msm_routing_put_voice_mixer),
  14710. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14712. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14713. msm_routing_put_voice_mixer),
  14714. };
  14715. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  14716. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14717. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14718. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14719. msm_routing_put_voice_mixer),
  14720. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14722. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14723. msm_routing_put_voice_mixer),
  14724. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14725. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14726. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14727. msm_routing_put_voice_mixer),
  14728. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14729. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14730. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14731. msm_routing_put_voice_mixer),
  14732. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14733. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14735. msm_routing_put_voice_mixer),
  14736. };
  14737. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  14738. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14740. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14741. msm_routing_put_voice_mixer),
  14742. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14743. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14744. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14745. msm_routing_put_voice_mixer),
  14746. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14748. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14749. msm_routing_put_voice_mixer),
  14750. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14752. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14753. msm_routing_put_voice_mixer),
  14754. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14755. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14756. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14757. msm_routing_put_voice_mixer),
  14758. };
  14759. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  14760. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14761. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14762. msm_routing_put_voice_mixer),
  14763. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14764. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14765. msm_routing_put_voice_mixer),
  14766. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14767. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14768. msm_routing_put_voice_mixer),
  14769. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14770. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14771. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14772. msm_routing_put_voice_mixer),
  14773. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14775. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14776. msm_routing_put_voice_mixer),
  14777. };
  14778. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  14779. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_HDMI_RX,
  14781. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14782. msm_routing_put_voice_mixer),
  14783. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_HDMI_RX,
  14785. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14786. msm_routing_put_voice_mixer),
  14787. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_HDMI_RX,
  14789. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14790. msm_routing_put_voice_mixer),
  14791. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_HDMI_RX,
  14793. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14794. msm_routing_put_voice_mixer),
  14795. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_HDMI_RX,
  14797. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14798. msm_routing_put_voice_mixer),
  14799. };
  14800. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  14801. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14803. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14804. msm_routing_put_voice_mixer),
  14805. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14807. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14808. msm_routing_put_voice_mixer),
  14809. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14811. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14812. msm_routing_put_voice_mixer),
  14813. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14815. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14816. msm_routing_put_voice_mixer),
  14817. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14819. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14820. msm_routing_put_voice_mixer),
  14821. };
  14822. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  14823. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14825. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14826. msm_routing_put_voice_mixer),
  14827. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14829. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14830. msm_routing_put_voice_mixer),
  14831. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14833. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14834. msm_routing_put_voice_mixer),
  14835. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14837. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14838. msm_routing_put_voice_mixer),
  14839. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14841. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14842. msm_routing_put_voice_mixer),
  14843. };
  14844. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  14845. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14847. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14848. msm_routing_put_voice_mixer),
  14849. };
  14850. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  14851. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14853. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14854. msm_routing_put_voice_mixer),
  14855. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14857. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14858. msm_routing_put_voice_mixer),
  14859. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14860. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14862. msm_routing_put_voice_mixer),
  14863. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14865. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14866. msm_routing_put_voice_mixer),
  14867. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14869. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14870. msm_routing_put_voice_mixer),
  14871. };
  14872. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  14873. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14875. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14876. msm_routing_put_voice_mixer),
  14877. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14879. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14880. msm_routing_put_voice_mixer),
  14881. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14883. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14884. msm_routing_put_voice_mixer),
  14885. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14887. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14888. msm_routing_put_voice_mixer),
  14889. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14891. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14892. msm_routing_put_voice_mixer),
  14893. };
  14894. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  14895. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14897. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14898. msm_routing_put_voice_mixer),
  14899. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14901. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14902. msm_routing_put_voice_mixer),
  14903. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14905. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14906. msm_routing_put_voice_mixer),
  14907. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14909. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14910. msm_routing_put_voice_mixer),
  14911. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14913. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14914. msm_routing_put_voice_mixer),
  14915. };
  14916. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  14917. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14919. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14920. msm_routing_put_voice_mixer),
  14921. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14923. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14924. msm_routing_put_voice_mixer),
  14925. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14927. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14928. msm_routing_put_voice_mixer),
  14929. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14932. msm_routing_put_voice_mixer),
  14933. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14935. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14936. msm_routing_put_voice_mixer),
  14937. };
  14938. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  14939. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14941. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14942. msm_routing_put_voice_mixer),
  14943. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14945. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14946. msm_routing_put_voice_mixer),
  14947. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14949. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14950. msm_routing_put_voice_mixer),
  14951. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14953. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14954. msm_routing_put_voice_mixer),
  14955. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14957. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14958. msm_routing_put_voice_mixer),
  14959. };
  14960. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  14961. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14963. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14964. msm_routing_put_voice_mixer),
  14965. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14967. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14968. msm_routing_put_voice_mixer),
  14969. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14971. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14972. msm_routing_put_voice_mixer),
  14973. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14975. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14976. msm_routing_put_voice_mixer),
  14977. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14979. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14980. msm_routing_put_voice_mixer),
  14981. };
  14982. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  14983. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14985. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14986. msm_routing_put_voice_mixer),
  14987. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14989. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14990. msm_routing_put_voice_mixer),
  14991. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14993. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14994. msm_routing_put_voice_mixer),
  14995. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14997. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14998. msm_routing_put_voice_mixer),
  14999. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15001. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15002. msm_routing_put_voice_mixer),
  15003. };
  15004. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15005. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15006. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15007. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15008. msm_routing_put_voice_mixer),
  15009. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15011. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15012. msm_routing_put_voice_mixer),
  15013. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15015. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15016. msm_routing_put_voice_mixer),
  15017. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15019. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15020. msm_routing_put_voice_mixer),
  15021. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15023. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15024. msm_routing_put_voice_mixer),
  15025. };
  15026. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15027. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15029. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15030. msm_routing_put_voice_mixer),
  15031. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15033. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15034. msm_routing_put_voice_mixer),
  15035. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15037. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15038. msm_routing_put_voice_mixer),
  15039. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15041. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15042. msm_routing_put_voice_mixer),
  15043. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15045. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15046. msm_routing_put_voice_mixer),
  15047. };
  15048. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15049. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15051. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15052. msm_routing_put_voice_mixer),
  15053. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15055. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15056. msm_routing_put_voice_mixer),
  15057. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15059. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15060. msm_routing_put_voice_mixer),
  15061. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15063. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15064. msm_routing_put_voice_mixer),
  15065. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15067. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15068. msm_routing_put_voice_mixer),
  15069. };
  15070. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15071. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15074. msm_routing_put_voice_mixer),
  15075. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15077. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15078. msm_routing_put_voice_stub_mixer),
  15079. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15081. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15082. msm_routing_put_voice_stub_mixer),
  15083. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15085. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15086. msm_routing_put_voice_mixer),
  15087. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15089. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15090. msm_routing_put_voice_mixer),
  15091. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15093. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15094. msm_routing_put_voice_mixer),
  15095. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15097. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15098. msm_routing_put_voice_mixer),
  15099. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15101. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15102. msm_routing_put_voice_mixer),
  15103. };
  15104. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15105. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15107. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15108. msm_routing_put_voice_mixer),
  15109. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15111. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15112. msm_routing_put_voice_stub_mixer),
  15113. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15115. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15116. msm_routing_put_voice_stub_mixer),
  15117. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15119. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15120. msm_routing_put_voice_mixer),
  15121. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15123. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15124. msm_routing_put_voice_mixer),
  15125. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15127. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15128. msm_routing_put_voice_mixer),
  15129. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15131. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15132. msm_routing_put_voice_mixer),
  15133. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15135. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15136. msm_routing_put_voice_mixer),
  15137. };
  15138. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15139. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15141. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15142. msm_routing_put_voice_mixer),
  15143. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15145. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15146. msm_routing_put_voice_stub_mixer),
  15147. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15148. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15149. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15150. msm_routing_put_voice_stub_mixer),
  15151. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15153. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15154. msm_routing_put_voice_mixer),
  15155. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15157. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15158. msm_routing_put_voice_mixer),
  15159. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15161. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15162. msm_routing_put_voice_mixer),
  15163. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15165. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15166. msm_routing_put_voice_mixer),
  15167. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15169. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15170. msm_routing_put_voice_mixer),
  15171. };
  15172. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15173. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15175. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15176. msm_routing_put_voice_mixer),
  15177. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15179. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15180. msm_routing_put_voice_stub_mixer),
  15181. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15183. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15184. msm_routing_put_voice_stub_mixer),
  15185. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15187. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15188. msm_routing_put_voice_mixer),
  15189. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15191. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15192. msm_routing_put_voice_mixer),
  15193. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15195. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15196. msm_routing_put_voice_mixer),
  15197. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15198. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15199. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15200. msm_routing_put_voice_mixer),
  15201. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15203. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15204. msm_routing_put_voice_mixer),
  15205. };
  15206. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15207. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_EXTPROC_RX,
  15209. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15210. msm_routing_put_voice_mixer),
  15211. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_EXTPROC_RX,
  15213. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15214. msm_routing_put_voice_mixer),
  15215. };
  15216. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15217. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15218. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15219. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15220. msm_routing_put_voice_mixer),
  15221. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15223. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15224. msm_routing_put_voice_mixer),
  15225. };
  15226. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15227. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15229. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15230. msm_routing_put_voice_mixer),
  15231. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15233. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15234. msm_routing_put_voice_mixer),
  15235. };
  15236. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15237. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_PRI_I2S_TX,
  15239. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15240. msm_routing_put_voice_mixer),
  15241. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_MI2S_TX,
  15243. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15244. msm_routing_put_voice_mixer),
  15245. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15247. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15248. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15250. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15251. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15253. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15254. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15255. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15256. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15257. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15259. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15260. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15262. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15263. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15265. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15266. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15268. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15269. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15271. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15272. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15273. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15274. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15275. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15277. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15278. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15280. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15281. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15283. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15284. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15286. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15287. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15288. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15289. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15290. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_USB_TX,
  15292. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15293. msm_routing_put_voice_mixer),
  15294. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15295. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15296. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15297. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15299. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15300. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15302. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15303. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15305. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15306. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15308. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15309. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15311. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15312. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15313. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15314. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15315. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15317. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15318. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15319. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15320. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15321. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15323. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15324. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15326. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15327. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15329. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15330. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15331. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15332. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15333. };
  15334. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15335. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_PRI_I2S_TX,
  15337. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15338. msm_routing_put_voice_mixer),
  15339. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_MI2S_TX,
  15341. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15342. msm_routing_put_voice_mixer),
  15343. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15345. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15346. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15348. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15349. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15350. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15351. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15352. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15354. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15355. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15357. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15358. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15360. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15361. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15362. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15363. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15364. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15366. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15367. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15369. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15370. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15371. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15372. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15373. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15375. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15376. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15378. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15379. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15381. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15382. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15384. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15385. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15386. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15387. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15388. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15390. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15391. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15392. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15393. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15394. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15396. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15397. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15399. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15400. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15401. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15402. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15403. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15405. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15406. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15408. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15411. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15412. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15414. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15415. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15416. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15417. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15418. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15420. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15421. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15423. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15424. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15426. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15427. };
  15428. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15429. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_PRI_I2S_TX,
  15431. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15432. msm_routing_put_voice_mixer),
  15433. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_MI2S_TX,
  15435. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15436. msm_routing_put_voice_mixer),
  15437. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15439. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15440. msm_routing_put_voice_mixer),
  15441. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15443. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15444. msm_routing_put_voice_mixer),
  15445. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_AFE_PCM_TX,
  15447. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15448. msm_routing_put_voice_mixer),
  15449. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_AUXPCM_TX,
  15451. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15452. msm_routing_put_voice_mixer),
  15453. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15455. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15456. msm_routing_put_voice_mixer),
  15457. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15459. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15460. msm_routing_put_voice_mixer),
  15461. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15462. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15463. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15464. msm_routing_put_voice_mixer),
  15465. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15466. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15467. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15468. msm_routing_put_voice_mixer),
  15469. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15471. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15472. msm_routing_put_voice_mixer),
  15473. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15474. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15475. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15476. msm_routing_put_voice_mixer),
  15477. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  15478. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15479. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15480. msm_routing_put_voice_mixer),
  15481. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15482. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15483. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15484. msm_routing_put_voice_mixer),
  15485. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15487. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15488. msm_routing_put_voice_mixer),
  15489. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15491. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15492. msm_routing_put_voice_mixer),
  15493. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15494. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15495. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15496. msm_routing_put_voice_mixer),
  15497. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15498. MSM_BACKEND_DAI_USB_TX,
  15499. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15500. msm_routing_put_voice_mixer),
  15501. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15502. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15503. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15504. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15505. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15506. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15507. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15509. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15512. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15513. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15514. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15515. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15516. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15517. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15518. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15519. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15521. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15522. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15524. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15525. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15527. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15528. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15529. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15530. msm_routing_put_voice_mixer),
  15531. };
  15532. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15533. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15534. MSM_BACKEND_DAI_EXTPROC_TX,
  15535. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15536. msm_routing_put_voice_stub_mixer),
  15537. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15539. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15540. msm_routing_put_voice_stub_mixer),
  15541. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15543. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15544. msm_routing_put_voice_stub_mixer),
  15545. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15547. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15548. msm_routing_put_voice_stub_mixer),
  15549. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15550. MSM_BACKEND_DAI_MI2S_TX,
  15551. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15552. msm_routing_put_voice_stub_mixer),
  15553. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15554. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15555. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15556. msm_routing_put_voice_stub_mixer),
  15557. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15559. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15560. msm_routing_put_voice_stub_mixer),
  15561. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15563. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15564. msm_routing_put_voice_stub_mixer),
  15565. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15566. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15567. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15568. msm_routing_put_voice_stub_mixer),
  15569. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15570. MSM_BACKEND_DAI_AUXPCM_TX,
  15571. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15572. msm_routing_put_voice_stub_mixer),
  15573. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15575. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15576. msm_routing_put_voice_stub_mixer),
  15577. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15579. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15580. msm_routing_put_voice_stub_mixer),
  15581. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15583. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15584. msm_routing_put_voice_stub_mixer),
  15585. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15586. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15587. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15588. msm_routing_put_voice_stub_mixer),
  15589. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15590. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15591. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15592. msm_routing_put_voice_stub_mixer),
  15593. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15594. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15595. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15596. msm_routing_put_voice_stub_mixer),
  15597. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15598. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15599. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15600. msm_routing_put_voice_stub_mixer),
  15601. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_AFE_PCM_TX,
  15603. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15604. msm_routing_put_voice_stub_mixer),
  15605. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15606. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15607. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15608. msm_routing_put_voice_stub_mixer),
  15609. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15610. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15611. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15612. msm_routing_put_voice_stub_mixer),
  15613. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15614. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15615. 1, 0, msm_routing_get_voice_stub_mixer,
  15616. msm_routing_put_voice_stub_mixer),
  15617. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15619. 1, 0, msm_routing_get_voice_stub_mixer,
  15620. msm_routing_put_voice_stub_mixer),
  15621. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  15623. 1, 0, msm_routing_get_voice_stub_mixer,
  15624. msm_routing_put_voice_stub_mixer),
  15625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15627. 1, 0, msm_routing_get_voice_stub_mixer,
  15628. msm_routing_put_voice_stub_mixer),
  15629. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15631. 1, 0, msm_routing_get_voice_stub_mixer,
  15632. msm_routing_put_voice_stub_mixer),
  15633. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  15635. 1, 0, msm_routing_get_voice_stub_mixer,
  15636. msm_routing_put_voice_stub_mixer),
  15637. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  15639. 1, 0, msm_routing_get_voice_stub_mixer,
  15640. msm_routing_put_voice_stub_mixer),
  15641. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15642. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  15643. 1, 0, msm_routing_get_voice_stub_mixer,
  15644. msm_routing_put_voice_stub_mixer),
  15645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  15647. 1, 0, msm_routing_get_voice_stub_mixer,
  15648. msm_routing_put_voice_stub_mixer),
  15649. };
  15650. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  15651. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_EXTPROC_TX,
  15653. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15654. msm_routing_put_voice_stub_mixer),
  15655. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15657. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15658. msm_routing_put_voice_stub_mixer),
  15659. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15661. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15662. msm_routing_put_voice_stub_mixer),
  15663. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_AUXPCM_TX,
  15665. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15666. msm_routing_put_voice_stub_mixer),
  15667. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15669. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15670. msm_routing_put_voice_stub_mixer),
  15671. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15673. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15674. msm_routing_put_voice_stub_mixer),
  15675. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15677. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15678. msm_routing_put_voice_stub_mixer),
  15679. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15681. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15682. msm_routing_put_voice_stub_mixer),
  15683. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15685. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15686. msm_routing_put_voice_stub_mixer),
  15687. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15689. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15690. msm_routing_put_voice_stub_mixer),
  15691. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15692. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15693. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15694. msm_routing_put_voice_stub_mixer),
  15695. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_AFE_PCM_TX,
  15697. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15698. msm_routing_put_voice_stub_mixer),
  15699. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15701. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15702. msm_routing_put_voice_stub_mixer),
  15703. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15705. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15706. msm_routing_put_voice_stub_mixer),
  15707. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15709. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15710. msm_routing_put_voice_stub_mixer),
  15711. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15713. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15714. msm_routing_put_voice_stub_mixer),
  15715. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15717. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15718. msm_routing_put_voice_stub_mixer),
  15719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  15721. 1, 0, msm_routing_get_voice_stub_mixer,
  15722. msm_routing_put_voice_stub_mixer),
  15723. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  15725. 1, 0, msm_routing_get_voice_stub_mixer,
  15726. msm_routing_put_voice_stub_mixer),
  15727. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  15729. 1, 0, msm_routing_get_voice_stub_mixer,
  15730. msm_routing_put_voice_stub_mixer),
  15731. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  15733. 1, 0, msm_routing_get_voice_stub_mixer,
  15734. msm_routing_put_voice_stub_mixer),
  15735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  15737. 1, 0, msm_routing_get_voice_stub_mixer,
  15738. msm_routing_put_voice_stub_mixer),
  15739. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  15741. 1, 0, msm_routing_get_voice_stub_mixer,
  15742. msm_routing_put_voice_stub_mixer),
  15743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  15745. 1, 0, msm_routing_get_voice_stub_mixer,
  15746. msm_routing_put_voice_stub_mixer),
  15747. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  15749. 1, 0, msm_routing_get_voice_stub_mixer,
  15750. msm_routing_put_voice_stub_mixer),
  15751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  15753. 1, 0, msm_routing_get_voice_stub_mixer,
  15754. msm_routing_put_voice_stub_mixer),
  15755. };
  15756. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  15757. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15758. MSM_BACKEND_DAI_EXTPROC_TX,
  15759. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15760. msm_routing_put_voice_stub_mixer),
  15761. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15762. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15763. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15764. msm_routing_put_voice_stub_mixer),
  15765. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15767. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15768. msm_routing_put_voice_stub_mixer),
  15769. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15770. MSM_BACKEND_DAI_AUXPCM_TX,
  15771. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15772. msm_routing_put_voice_stub_mixer),
  15773. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15775. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15776. msm_routing_put_voice_stub_mixer),
  15777. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15779. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15780. msm_routing_put_voice_stub_mixer),
  15781. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15783. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15784. msm_routing_put_voice_stub_mixer),
  15785. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15787. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15788. msm_routing_put_voice_stub_mixer),
  15789. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15791. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15792. msm_routing_put_voice_stub_mixer),
  15793. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15795. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15796. msm_routing_put_voice_stub_mixer),
  15797. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15799. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15800. msm_routing_put_voice_stub_mixer),
  15801. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_AFE_PCM_TX,
  15803. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15804. msm_routing_put_voice_stub_mixer),
  15805. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15806. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15807. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15808. msm_routing_put_voice_stub_mixer),
  15809. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15810. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15811. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15812. msm_routing_put_voice_stub_mixer),
  15813. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15814. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15815. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15816. msm_routing_put_voice_stub_mixer),
  15817. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15818. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15819. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15820. msm_routing_put_voice_stub_mixer),
  15821. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15822. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  15823. 1, 0, msm_routing_get_voice_stub_mixer,
  15824. msm_routing_put_voice_stub_mixer),
  15825. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15826. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  15827. 1, 0, msm_routing_get_voice_stub_mixer,
  15828. msm_routing_put_voice_stub_mixer),
  15829. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  15831. 1, 0, msm_routing_get_voice_stub_mixer,
  15832. msm_routing_put_voice_stub_mixer),
  15833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  15835. 1, 0, msm_routing_get_voice_stub_mixer,
  15836. msm_routing_put_voice_stub_mixer),
  15837. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15838. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  15839. 1, 0, msm_routing_get_voice_stub_mixer,
  15840. msm_routing_put_voice_stub_mixer),
  15841. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  15843. 1, 0, msm_routing_get_voice_stub_mixer,
  15844. msm_routing_put_voice_stub_mixer),
  15845. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  15847. 1, 0, msm_routing_get_voice_stub_mixer,
  15848. msm_routing_put_voice_stub_mixer),
  15849. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15850. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  15851. 1, 0, msm_routing_get_voice_stub_mixer,
  15852. msm_routing_put_voice_stub_mixer),
  15853. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  15855. 1, 0, msm_routing_get_voice_stub_mixer,
  15856. msm_routing_put_voice_stub_mixer),
  15857. };
  15858. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  15859. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_PRI_I2S_TX,
  15861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15862. msm_routing_put_voice_mixer),
  15863. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15865. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15866. msm_routing_put_voice_mixer),
  15867. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  15868. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15869. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  15870. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15871. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_AFE_PCM_TX,
  15873. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15874. msm_routing_put_voice_mixer),
  15875. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15876. MSM_BACKEND_DAI_AUXPCM_TX,
  15877. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15878. msm_routing_put_voice_mixer),
  15879. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15882. msm_routing_put_voice_mixer),
  15883. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15884. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15885. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15886. msm_routing_put_voice_mixer),
  15887. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15889. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15890. msm_routing_put_voice_mixer),
  15891. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15892. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15894. msm_routing_put_voice_mixer),
  15895. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15896. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15897. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15898. msm_routing_put_voice_mixer),
  15899. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_MI2S_TX,
  15901. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15902. msm_routing_put_voice_mixer),
  15903. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15905. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15906. msm_routing_put_voice_mixer),
  15907. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15909. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15910. msm_routing_put_voice_mixer),
  15911. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15913. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15914. msm_routing_put_voice_mixer),
  15915. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15917. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15918. msm_routing_put_voice_mixer),
  15919. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15921. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15922. msm_routing_put_voice_mixer),
  15923. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_USB_TX,
  15925. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15926. msm_routing_put_voice_mixer),
  15927. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  15928. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  15929. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15930. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  15932. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15933. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  15935. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  15938. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15939. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  15941. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15942. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  15944. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15945. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  15947. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15948. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  15950. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  15953. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15954. };
  15955. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  15956. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15957. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15958. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15959. msm_routing_put_port_mixer),
  15960. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15961. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15962. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15963. msm_routing_put_port_mixer),
  15964. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15965. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15966. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15967. msm_routing_put_port_mixer),
  15968. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15970. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15971. msm_routing_put_port_mixer),
  15972. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15974. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15975. msm_routing_put_port_mixer),
  15976. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15978. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15979. msm_routing_put_port_mixer),
  15980. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15982. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15983. msm_routing_put_port_mixer),
  15984. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15986. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15987. msm_routing_put_port_mixer),
  15988. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15990. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15991. msm_routing_put_port_mixer),
  15992. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15994. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15995. msm_routing_put_port_mixer),
  15996. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15998. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15999. msm_routing_put_port_mixer),
  16000. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16002. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16003. msm_routing_put_port_mixer),
  16004. };
  16005. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16006. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16008. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16009. msm_routing_put_port_mixer),
  16010. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16012. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16013. msm_routing_put_port_mixer),
  16014. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16016. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16017. msm_routing_put_port_mixer),
  16018. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16020. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16021. msm_routing_put_port_mixer),
  16022. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16024. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16025. msm_routing_put_port_mixer),
  16026. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16028. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16029. msm_routing_put_port_mixer),
  16030. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16032. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16033. msm_routing_put_port_mixer),
  16034. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16035. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16036. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16037. msm_routing_put_port_mixer),
  16038. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16039. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16040. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16041. msm_routing_put_port_mixer),
  16042. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16044. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16045. msm_routing_put_port_mixer),
  16046. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16048. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16049. msm_routing_put_port_mixer),
  16050. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16052. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16053. msm_routing_put_port_mixer),
  16054. };
  16055. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16056. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16058. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16059. msm_routing_put_port_mixer),
  16060. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16063. msm_routing_put_port_mixer),
  16064. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16066. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16067. msm_routing_put_port_mixer),
  16068. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16070. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16071. msm_routing_put_port_mixer),
  16072. };
  16073. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16074. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16077. msm_routing_put_port_mixer),
  16078. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16080. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16081. msm_routing_put_port_mixer),
  16082. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16084. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16085. msm_routing_put_port_mixer),
  16086. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16087. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16088. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16089. msm_routing_put_port_mixer),
  16090. };
  16091. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16092. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16094. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16095. msm_routing_put_port_mixer),
  16096. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16098. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16099. msm_routing_put_port_mixer),
  16100. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16102. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16103. msm_routing_put_port_mixer),
  16104. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16106. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16107. msm_routing_put_port_mixer),
  16108. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16110. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16111. msm_routing_put_port_mixer),
  16112. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16114. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16115. msm_routing_put_port_mixer),
  16116. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16118. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16119. msm_routing_put_port_mixer),
  16120. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16122. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16123. msm_routing_put_port_mixer),
  16124. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16126. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16127. msm_routing_put_port_mixer),
  16128. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16130. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16131. msm_routing_put_port_mixer),
  16132. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16134. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16135. msm_routing_put_port_mixer),
  16136. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16138. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16139. msm_routing_put_port_mixer),
  16140. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16142. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16143. msm_routing_put_port_mixer),
  16144. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16146. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16147. msm_routing_put_port_mixer),
  16148. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16149. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16150. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16151. msm_routing_put_port_mixer),
  16152. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16153. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16154. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16155. msm_routing_put_port_mixer),
  16156. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16157. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16158. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16159. msm_routing_put_port_mixer),
  16160. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16161. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16162. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16163. msm_routing_put_port_mixer),
  16164. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16166. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16167. msm_routing_put_port_mixer),
  16168. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16169. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16170. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16171. msm_routing_put_port_mixer),
  16172. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16174. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16175. msm_routing_put_port_mixer),
  16176. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16178. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16179. msm_routing_put_port_mixer),
  16180. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16182. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16183. msm_routing_put_port_mixer),
  16184. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16186. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16187. msm_routing_put_port_mixer),
  16188. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16189. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16190. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16191. msm_routing_put_port_mixer),
  16192. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16194. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16195. msm_routing_put_port_mixer),
  16196. };
  16197. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16198. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_AUXPCM_RX,
  16200. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16201. msm_routing_put_port_mixer),
  16202. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_AUXPCM_RX,
  16204. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16205. msm_routing_put_port_mixer),
  16206. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_AUXPCM_RX,
  16208. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16209. msm_routing_put_port_mixer),
  16210. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_AUXPCM_RX,
  16212. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16213. msm_routing_put_port_mixer),
  16214. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_AUXPCM_RX,
  16216. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16217. msm_routing_put_port_mixer),
  16218. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_AUXPCM_RX,
  16220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16221. msm_routing_put_port_mixer),
  16222. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_AUXPCM_RX,
  16224. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16225. msm_routing_put_port_mixer),
  16226. };
  16227. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16228. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16229. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16230. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16231. msm_routing_put_port_mixer),
  16232. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16233. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16234. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16235. msm_routing_put_port_mixer),
  16236. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16238. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16239. msm_routing_put_port_mixer),
  16240. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16241. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16242. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16243. msm_routing_put_port_mixer),
  16244. };
  16245. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16246. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16248. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16249. msm_routing_put_port_mixer),
  16250. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16251. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16252. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16253. msm_routing_put_port_mixer),
  16254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16255. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16257. msm_routing_put_port_mixer),
  16258. };
  16259. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16260. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16262. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16263. msm_routing_put_port_mixer),
  16264. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16266. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16267. msm_routing_put_port_mixer),
  16268. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16270. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16271. msm_routing_put_port_mixer),
  16272. };
  16273. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16274. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16276. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16277. msm_routing_put_port_mixer),
  16278. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16279. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16280. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16281. msm_routing_put_port_mixer),
  16282. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16284. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16285. msm_routing_put_port_mixer),
  16286. };
  16287. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16288. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16290. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16291. msm_routing_put_port_mixer),
  16292. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16294. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16295. msm_routing_put_port_mixer),
  16296. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16298. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16299. msm_routing_put_port_mixer),
  16300. };
  16301. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16302. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16303. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16304. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16305. msm_routing_put_port_mixer),
  16306. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16308. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16309. msm_routing_put_port_mixer),
  16310. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16312. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16313. msm_routing_put_port_mixer),
  16314. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16316. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16317. msm_routing_put_port_mixer),
  16318. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16319. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16320. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16321. msm_routing_put_port_mixer),
  16322. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16324. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16325. msm_routing_put_port_mixer),
  16326. };
  16327. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16328. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16330. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16331. msm_routing_put_port_mixer),
  16332. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16334. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16335. msm_routing_put_port_mixer),
  16336. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16338. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16339. msm_routing_put_port_mixer),
  16340. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16342. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16343. msm_routing_put_port_mixer),
  16344. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16346. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16347. msm_routing_put_port_mixer),
  16348. };
  16349. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16350. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16352. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16353. msm_routing_put_port_mixer),
  16354. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16356. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16357. msm_routing_put_port_mixer),
  16358. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16360. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16361. msm_routing_put_port_mixer),
  16362. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16364. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16365. msm_routing_put_port_mixer),
  16366. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16368. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16369. msm_routing_put_port_mixer),
  16370. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16372. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16373. msm_routing_put_port_mixer),
  16374. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16375. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16376. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16377. msm_routing_put_port_mixer),
  16378. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16379. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16380. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16381. msm_routing_put_port_mixer),
  16382. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16383. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16384. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16385. msm_routing_put_port_mixer),
  16386. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16387. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16388. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16389. msm_routing_put_port_mixer),
  16390. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16391. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16392. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16393. msm_routing_put_port_mixer),
  16394. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16395. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16396. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16397. msm_routing_put_port_mixer),
  16398. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16399. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16400. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16401. msm_routing_put_port_mixer),
  16402. };
  16403. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16404. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16405. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16406. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16407. msm_routing_put_port_mixer),
  16408. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16409. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16410. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16411. msm_routing_put_port_mixer),
  16412. };
  16413. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16414. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16415. MSM_BACKEND_DAI_AFE_PCM_RX,
  16416. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16417. msm_routing_put_port_mixer),
  16418. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_AFE_PCM_RX,
  16420. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16421. msm_routing_put_port_mixer),
  16422. };
  16423. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16424. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16425. MSM_BACKEND_DAI_HDMI_RX,
  16426. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16427. msm_routing_put_port_mixer),
  16428. };
  16429. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16430. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16431. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16432. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16433. msm_routing_put_port_mixer),
  16434. };
  16435. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16436. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16437. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16438. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16439. msm_routing_put_port_mixer),
  16440. };
  16441. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16442. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16443. MSM_BACKEND_DAI_SEC_I2S_RX,
  16444. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16445. msm_routing_put_port_mixer),
  16446. };
  16447. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16448. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_MI2S_RX,
  16450. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16451. msm_routing_put_port_mixer),
  16452. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_MI2S_RX,
  16454. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16455. msm_routing_put_port_mixer),
  16456. };
  16457. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16458. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16460. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16461. msm_routing_put_port_mixer),
  16462. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16464. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16465. msm_routing_put_port_mixer),
  16466. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16468. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16469. msm_routing_put_port_mixer),
  16470. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16472. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16473. msm_routing_put_port_mixer),
  16474. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16476. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16477. msm_routing_put_port_mixer),
  16478. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16480. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16481. msm_routing_put_port_mixer),
  16482. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16484. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16485. msm_routing_put_port_mixer),
  16486. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16488. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16489. msm_routing_put_port_mixer),
  16490. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16492. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16493. msm_routing_put_port_mixer),
  16494. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16496. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16497. msm_routing_put_port_mixer),
  16498. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16500. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16501. msm_routing_put_port_mixer),
  16502. };
  16503. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16504. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16505. MSM_BACKEND_DAI_USB_RX,
  16506. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16507. msm_routing_put_port_mixer),
  16508. };
  16509. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16510. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16512. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16513. msm_routing_put_port_mixer),
  16514. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16515. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16516. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16517. msm_routing_put_port_mixer),
  16518. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16519. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16520. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16521. msm_routing_put_port_mixer),
  16522. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16524. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16525. msm_routing_put_port_mixer),
  16526. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16527. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16528. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16529. msm_routing_put_port_mixer),
  16530. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16531. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16532. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16533. msm_routing_put_port_mixer),
  16534. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16535. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16536. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16537. msm_routing_put_port_mixer),
  16538. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16539. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16540. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16541. msm_routing_put_port_mixer),
  16542. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16543. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16544. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16545. msm_routing_put_port_mixer),
  16546. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16548. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16549. msm_routing_put_port_mixer),
  16550. };
  16551. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16552. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16553. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16554. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16555. msm_routing_put_port_mixer),
  16556. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16557. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16558. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16559. msm_routing_put_port_mixer),
  16560. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16562. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16563. msm_routing_put_port_mixer),
  16564. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16565. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16566. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16567. msm_routing_put_port_mixer),
  16568. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16569. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16570. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16571. msm_routing_put_port_mixer),
  16572. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16574. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16575. msm_routing_put_port_mixer),
  16576. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16577. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16578. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16579. msm_routing_put_port_mixer),
  16580. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16581. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16582. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16583. msm_routing_put_port_mixer),
  16584. };
  16585. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16586. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16588. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16589. msm_routing_put_port_mixer),
  16590. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16592. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16593. msm_routing_put_port_mixer),
  16594. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16595. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16596. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16597. msm_routing_put_port_mixer),
  16598. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16599. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16600. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16601. msm_routing_put_port_mixer),
  16602. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16604. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16605. msm_routing_put_port_mixer),
  16606. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16607. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16608. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16609. msm_routing_put_port_mixer),
  16610. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16611. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16612. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16613. msm_routing_put_port_mixer),
  16614. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16615. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16616. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16617. msm_routing_put_port_mixer),
  16618. };
  16619. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  16620. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16622. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16623. msm_routing_get_port_mixer,
  16624. msm_routing_put_port_mixer),
  16625. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16627. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16628. msm_routing_get_port_mixer,
  16629. msm_routing_put_port_mixer),
  16630. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16631. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16632. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16633. msm_routing_get_port_mixer,
  16634. msm_routing_put_port_mixer),
  16635. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16637. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16638. msm_routing_get_port_mixer,
  16639. msm_routing_put_port_mixer),
  16640. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16641. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16642. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16643. msm_routing_get_port_mixer,
  16644. msm_routing_put_port_mixer),
  16645. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16646. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16647. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16648. msm_routing_get_port_mixer,
  16649. msm_routing_put_port_mixer),
  16650. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16651. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16652. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16653. msm_routing_get_port_mixer,
  16654. msm_routing_put_port_mixer),
  16655. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16656. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16657. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16658. msm_routing_get_port_mixer,
  16659. msm_routing_put_port_mixer),
  16660. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16662. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16663. msm_routing_get_port_mixer,
  16664. msm_routing_put_port_mixer),
  16665. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16666. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16667. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16668. msm_routing_get_port_mixer,
  16669. msm_routing_put_port_mixer),
  16670. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16671. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16672. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16673. msm_routing_get_port_mixer,
  16674. msm_routing_put_port_mixer),
  16675. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16677. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16678. msm_routing_get_port_mixer,
  16679. msm_routing_put_port_mixer),
  16680. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16681. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16682. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16683. msm_routing_get_port_mixer,
  16684. msm_routing_put_port_mixer),
  16685. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16687. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16688. msm_routing_get_port_mixer,
  16689. msm_routing_put_port_mixer),
  16690. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16691. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16692. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16693. msm_routing_get_port_mixer,
  16694. msm_routing_put_port_mixer),
  16695. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16696. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16697. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16698. msm_routing_get_port_mixer,
  16699. msm_routing_put_port_mixer),
  16700. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16701. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16702. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16703. msm_routing_get_port_mixer,
  16704. msm_routing_put_port_mixer),
  16705. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16707. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16708. msm_routing_get_port_mixer,
  16709. msm_routing_put_port_mixer),
  16710. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16711. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16712. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16713. msm_routing_get_port_mixer,
  16714. msm_routing_put_port_mixer),
  16715. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16717. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16718. msm_routing_get_port_mixer,
  16719. msm_routing_put_port_mixer),
  16720. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16721. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16722. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16723. msm_routing_get_port_mixer,
  16724. msm_routing_put_port_mixer),
  16725. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16726. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16727. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16728. msm_routing_get_port_mixer,
  16729. msm_routing_put_port_mixer),
  16730. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16731. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16732. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16733. msm_routing_get_port_mixer,
  16734. msm_routing_put_port_mixer),
  16735. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16737. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16738. msm_routing_get_port_mixer,
  16739. msm_routing_put_port_mixer),
  16740. };
  16741. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  16742. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16744. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16745. msm_routing_get_port_mixer,
  16746. msm_routing_put_port_mixer),
  16747. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16749. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16750. msm_routing_get_port_mixer,
  16751. msm_routing_put_port_mixer),
  16752. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16753. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16754. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16755. msm_routing_get_port_mixer,
  16756. msm_routing_put_port_mixer),
  16757. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16759. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16760. msm_routing_get_port_mixer,
  16761. msm_routing_put_port_mixer),
  16762. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16763. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16764. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16765. msm_routing_get_port_mixer,
  16766. msm_routing_put_port_mixer),
  16767. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16769. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16770. msm_routing_get_port_mixer,
  16771. msm_routing_put_port_mixer),
  16772. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16774. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16775. msm_routing_get_port_mixer,
  16776. msm_routing_put_port_mixer),
  16777. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16778. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16779. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16780. msm_routing_get_port_mixer,
  16781. msm_routing_put_port_mixer),
  16782. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16783. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16784. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16785. msm_routing_get_port_mixer,
  16786. msm_routing_put_port_mixer),
  16787. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16789. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16790. msm_routing_get_port_mixer,
  16791. msm_routing_put_port_mixer),
  16792. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16793. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16794. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16795. msm_routing_get_port_mixer,
  16796. msm_routing_put_port_mixer),
  16797. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16799. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16800. msm_routing_get_port_mixer,
  16801. msm_routing_put_port_mixer),
  16802. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16803. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16804. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16805. msm_routing_get_port_mixer,
  16806. msm_routing_put_port_mixer),
  16807. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16809. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16810. msm_routing_get_port_mixer,
  16811. msm_routing_put_port_mixer),
  16812. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16813. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16814. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16815. msm_routing_get_port_mixer,
  16816. msm_routing_put_port_mixer),
  16817. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16819. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16820. msm_routing_get_port_mixer,
  16821. msm_routing_put_port_mixer),
  16822. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16823. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16824. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16825. msm_routing_get_port_mixer,
  16826. msm_routing_put_port_mixer),
  16827. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16828. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16829. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16830. msm_routing_get_port_mixer,
  16831. msm_routing_put_port_mixer),
  16832. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16833. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16834. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16835. msm_routing_get_port_mixer,
  16836. msm_routing_put_port_mixer),
  16837. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16839. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16840. msm_routing_get_port_mixer,
  16841. msm_routing_put_port_mixer),
  16842. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16843. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16844. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16845. msm_routing_get_port_mixer,
  16846. msm_routing_put_port_mixer),
  16847. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16849. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16850. msm_routing_get_port_mixer,
  16851. msm_routing_put_port_mixer),
  16852. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16853. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16854. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16855. msm_routing_get_port_mixer,
  16856. msm_routing_put_port_mixer),
  16857. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16859. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16860. msm_routing_get_port_mixer,
  16861. msm_routing_put_port_mixer),
  16862. };
  16863. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  16864. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16865. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16866. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16867. msm_routing_get_port_mixer,
  16868. msm_routing_put_port_mixer),
  16869. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16871. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16872. msm_routing_get_port_mixer,
  16873. msm_routing_put_port_mixer),
  16874. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16875. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16876. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16877. msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16880. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16881. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16882. msm_routing_get_port_mixer,
  16883. msm_routing_put_port_mixer),
  16884. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16885. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16886. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16887. msm_routing_get_port_mixer,
  16888. msm_routing_put_port_mixer),
  16889. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16891. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16892. msm_routing_get_port_mixer,
  16893. msm_routing_put_port_mixer),
  16894. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16895. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16896. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16897. msm_routing_get_port_mixer,
  16898. msm_routing_put_port_mixer),
  16899. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16901. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16902. msm_routing_get_port_mixer,
  16903. msm_routing_put_port_mixer),
  16904. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16905. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16906. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16907. msm_routing_get_port_mixer,
  16908. msm_routing_put_port_mixer),
  16909. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16910. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16911. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16912. msm_routing_get_port_mixer,
  16913. msm_routing_put_port_mixer),
  16914. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16915. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16916. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16917. msm_routing_get_port_mixer,
  16918. msm_routing_put_port_mixer),
  16919. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16920. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16921. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16922. msm_routing_get_port_mixer,
  16923. msm_routing_put_port_mixer),
  16924. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16925. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16926. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16927. msm_routing_get_port_mixer,
  16928. msm_routing_put_port_mixer),
  16929. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16931. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16932. msm_routing_get_port_mixer,
  16933. msm_routing_put_port_mixer),
  16934. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16935. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16936. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16937. msm_routing_get_port_mixer,
  16938. msm_routing_put_port_mixer),
  16939. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16940. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16941. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16942. msm_routing_get_port_mixer,
  16943. msm_routing_put_port_mixer),
  16944. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16945. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16946. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16947. msm_routing_get_port_mixer,
  16948. msm_routing_put_port_mixer),
  16949. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16951. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16952. msm_routing_get_port_mixer,
  16953. msm_routing_put_port_mixer),
  16954. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16955. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16956. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16957. msm_routing_get_port_mixer,
  16958. msm_routing_put_port_mixer),
  16959. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16960. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16961. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16962. msm_routing_get_port_mixer,
  16963. msm_routing_put_port_mixer),
  16964. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16965. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16966. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16967. msm_routing_get_port_mixer,
  16968. msm_routing_put_port_mixer),
  16969. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16971. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16972. msm_routing_get_port_mixer,
  16973. msm_routing_put_port_mixer),
  16974. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16975. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16976. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16977. msm_routing_get_port_mixer,
  16978. msm_routing_put_port_mixer),
  16979. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16981. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16982. msm_routing_get_port_mixer,
  16983. msm_routing_put_port_mixer),
  16984. };
  16985. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  16986. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16987. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16988. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16989. msm_routing_get_port_mixer,
  16990. msm_routing_put_port_mixer),
  16991. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16993. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16994. msm_routing_get_port_mixer,
  16995. msm_routing_put_port_mixer),
  16996. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16998. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16999. msm_routing_get_port_mixer,
  17000. msm_routing_put_port_mixer),
  17001. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17002. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17003. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17004. msm_routing_get_port_mixer,
  17005. msm_routing_put_port_mixer),
  17006. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17007. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17008. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17009. msm_routing_get_port_mixer,
  17010. msm_routing_put_port_mixer),
  17011. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17013. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17014. msm_routing_get_port_mixer,
  17015. msm_routing_put_port_mixer),
  17016. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17017. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17018. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17019. msm_routing_get_port_mixer,
  17020. msm_routing_put_port_mixer),
  17021. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17022. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17023. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17024. msm_routing_get_port_mixer,
  17025. msm_routing_put_port_mixer),
  17026. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17027. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17028. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17029. msm_routing_get_port_mixer,
  17030. msm_routing_put_port_mixer),
  17031. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17032. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17033. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17034. msm_routing_get_port_mixer,
  17035. msm_routing_put_port_mixer),
  17036. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17037. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17038. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17039. msm_routing_get_port_mixer,
  17040. msm_routing_put_port_mixer),
  17041. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17042. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17043. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17044. msm_routing_get_port_mixer,
  17045. msm_routing_put_port_mixer),
  17046. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17047. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17048. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17049. msm_routing_get_port_mixer,
  17050. msm_routing_put_port_mixer),
  17051. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17052. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17053. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17054. msm_routing_get_port_mixer,
  17055. msm_routing_put_port_mixer),
  17056. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17057. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17058. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17059. msm_routing_get_port_mixer,
  17060. msm_routing_put_port_mixer),
  17061. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17062. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17063. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17064. msm_routing_get_port_mixer,
  17065. msm_routing_put_port_mixer),
  17066. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17067. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17068. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17069. msm_routing_get_port_mixer,
  17070. msm_routing_put_port_mixer),
  17071. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17073. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17074. msm_routing_get_port_mixer,
  17075. msm_routing_put_port_mixer),
  17076. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17077. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17078. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17079. msm_routing_get_port_mixer,
  17080. msm_routing_put_port_mixer),
  17081. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17082. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17083. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17084. msm_routing_get_port_mixer,
  17085. msm_routing_put_port_mixer),
  17086. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17087. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17088. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17089. msm_routing_get_port_mixer,
  17090. msm_routing_put_port_mixer),
  17091. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17093. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17094. msm_routing_get_port_mixer,
  17095. msm_routing_put_port_mixer),
  17096. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17097. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17098. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17099. msm_routing_get_port_mixer,
  17100. msm_routing_put_port_mixer),
  17101. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17102. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17103. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17104. msm_routing_get_port_mixer,
  17105. msm_routing_put_port_mixer),
  17106. };
  17107. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17108. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17109. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17110. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17111. msm_routing_get_port_mixer,
  17112. msm_routing_put_port_mixer),
  17113. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17114. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17115. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17116. msm_routing_get_port_mixer,
  17117. msm_routing_put_port_mixer),
  17118. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17119. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17120. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17121. msm_routing_get_port_mixer,
  17122. msm_routing_put_port_mixer),
  17123. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17124. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17125. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17126. msm_routing_get_port_mixer,
  17127. msm_routing_put_port_mixer),
  17128. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17129. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17130. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17131. msm_routing_get_port_mixer,
  17132. msm_routing_put_port_mixer),
  17133. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17135. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17136. msm_routing_get_port_mixer,
  17137. msm_routing_put_port_mixer),
  17138. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17139. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17140. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17141. msm_routing_get_port_mixer,
  17142. msm_routing_put_port_mixer),
  17143. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17144. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17145. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17146. msm_routing_get_port_mixer,
  17147. msm_routing_put_port_mixer),
  17148. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17149. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17150. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17151. msm_routing_get_port_mixer,
  17152. msm_routing_put_port_mixer),
  17153. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17154. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17155. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17156. msm_routing_get_port_mixer,
  17157. msm_routing_put_port_mixer),
  17158. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17159. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17160. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17161. msm_routing_get_port_mixer,
  17162. msm_routing_put_port_mixer),
  17163. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17164. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17165. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17166. msm_routing_get_port_mixer,
  17167. msm_routing_put_port_mixer),
  17168. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17169. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17170. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17171. msm_routing_get_port_mixer,
  17172. msm_routing_put_port_mixer),
  17173. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17174. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17175. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17176. msm_routing_get_port_mixer,
  17177. msm_routing_put_port_mixer),
  17178. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17179. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17180. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17181. msm_routing_get_port_mixer,
  17182. msm_routing_put_port_mixer),
  17183. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17185. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17186. msm_routing_get_port_mixer,
  17187. msm_routing_put_port_mixer),
  17188. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17189. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17190. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17191. msm_routing_get_port_mixer,
  17192. msm_routing_put_port_mixer),
  17193. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17194. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17195. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17196. msm_routing_get_port_mixer,
  17197. msm_routing_put_port_mixer),
  17198. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17199. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17200. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17201. msm_routing_get_port_mixer,
  17202. msm_routing_put_port_mixer),
  17203. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17204. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17205. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17206. msm_routing_get_port_mixer,
  17207. msm_routing_put_port_mixer),
  17208. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17209. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17210. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17211. msm_routing_get_port_mixer,
  17212. msm_routing_put_port_mixer),
  17213. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17214. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17215. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17216. msm_routing_get_port_mixer,
  17217. msm_routing_put_port_mixer),
  17218. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17219. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17220. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17221. msm_routing_get_port_mixer,
  17222. msm_routing_put_port_mixer),
  17223. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17224. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17225. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17226. msm_routing_get_port_mixer,
  17227. msm_routing_put_port_mixer),
  17228. };
  17229. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17230. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17231. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17232. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17233. msm_routing_get_port_mixer,
  17234. msm_routing_put_port_mixer),
  17235. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17237. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17238. msm_routing_get_port_mixer,
  17239. msm_routing_put_port_mixer),
  17240. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17241. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17242. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17243. msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17246. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17247. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17248. msm_routing_get_port_mixer,
  17249. msm_routing_put_port_mixer),
  17250. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17251. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17252. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17253. msm_routing_get_port_mixer,
  17254. msm_routing_put_port_mixer),
  17255. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17257. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17258. msm_routing_get_port_mixer,
  17259. msm_routing_put_port_mixer),
  17260. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17261. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17262. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17263. msm_routing_get_port_mixer,
  17264. msm_routing_put_port_mixer),
  17265. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17266. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17267. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17268. msm_routing_get_port_mixer,
  17269. msm_routing_put_port_mixer),
  17270. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17271. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17272. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17273. msm_routing_get_port_mixer,
  17274. msm_routing_put_port_mixer),
  17275. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17276. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17277. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17278. msm_routing_get_port_mixer,
  17279. msm_routing_put_port_mixer),
  17280. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17281. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17282. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17283. msm_routing_get_port_mixer,
  17284. msm_routing_put_port_mixer),
  17285. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17286. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17287. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17288. msm_routing_get_port_mixer,
  17289. msm_routing_put_port_mixer),
  17290. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17291. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17292. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17293. msm_routing_get_port_mixer,
  17294. msm_routing_put_port_mixer),
  17295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17296. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17297. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17298. msm_routing_get_port_mixer,
  17299. msm_routing_put_port_mixer),
  17300. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17301. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17302. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17303. msm_routing_get_port_mixer,
  17304. msm_routing_put_port_mixer),
  17305. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17306. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17307. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17308. msm_routing_get_port_mixer,
  17309. msm_routing_put_port_mixer),
  17310. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17311. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17312. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17313. msm_routing_get_port_mixer,
  17314. msm_routing_put_port_mixer),
  17315. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17316. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17317. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17318. msm_routing_get_port_mixer,
  17319. msm_routing_put_port_mixer),
  17320. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17321. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17322. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17323. msm_routing_get_port_mixer,
  17324. msm_routing_put_port_mixer),
  17325. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17326. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17327. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17328. msm_routing_get_port_mixer,
  17329. msm_routing_put_port_mixer),
  17330. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17331. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17332. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17333. msm_routing_get_port_mixer,
  17334. msm_routing_put_port_mixer),
  17335. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17336. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17337. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17338. msm_routing_get_port_mixer,
  17339. msm_routing_put_port_mixer),
  17340. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17341. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17342. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17343. msm_routing_get_port_mixer,
  17344. msm_routing_put_port_mixer),
  17345. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17346. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17347. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17348. msm_routing_get_port_mixer,
  17349. msm_routing_put_port_mixer),
  17350. };
  17351. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17352. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17353. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17354. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17355. msm_routing_get_port_mixer,
  17356. msm_routing_put_port_mixer),
  17357. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17360. msm_routing_get_port_mixer,
  17361. msm_routing_put_port_mixer),
  17362. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17363. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17364. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17365. msm_routing_get_port_mixer,
  17366. msm_routing_put_port_mixer),
  17367. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17368. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17369. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17370. msm_routing_get_port_mixer,
  17371. msm_routing_put_port_mixer),
  17372. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17373. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17374. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17375. msm_routing_get_port_mixer,
  17376. msm_routing_put_port_mixer),
  17377. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17378. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17379. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17380. msm_routing_get_port_mixer,
  17381. msm_routing_put_port_mixer),
  17382. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17383. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17385. msm_routing_get_port_mixer,
  17386. msm_routing_put_port_mixer),
  17387. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17388. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17389. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17390. msm_routing_get_port_mixer,
  17391. msm_routing_put_port_mixer),
  17392. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17393. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17394. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17395. msm_routing_get_port_mixer,
  17396. msm_routing_put_port_mixer),
  17397. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17398. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17399. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17400. msm_routing_get_port_mixer,
  17401. msm_routing_put_port_mixer),
  17402. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17403. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17404. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17405. msm_routing_get_port_mixer,
  17406. msm_routing_put_port_mixer),
  17407. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17408. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17409. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17410. msm_routing_get_port_mixer,
  17411. msm_routing_put_port_mixer),
  17412. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17413. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17414. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17415. msm_routing_get_port_mixer,
  17416. msm_routing_put_port_mixer),
  17417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17418. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17419. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17420. msm_routing_get_port_mixer,
  17421. msm_routing_put_port_mixer),
  17422. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17423. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17424. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17425. msm_routing_get_port_mixer,
  17426. msm_routing_put_port_mixer),
  17427. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17428. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17429. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17430. msm_routing_get_port_mixer,
  17431. msm_routing_put_port_mixer),
  17432. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17433. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17434. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17435. msm_routing_get_port_mixer,
  17436. msm_routing_put_port_mixer),
  17437. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17438. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17439. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17440. msm_routing_get_port_mixer,
  17441. msm_routing_put_port_mixer),
  17442. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17443. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17444. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17445. msm_routing_get_port_mixer,
  17446. msm_routing_put_port_mixer),
  17447. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17449. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17450. msm_routing_get_port_mixer,
  17451. msm_routing_put_port_mixer),
  17452. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17453. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17454. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17455. msm_routing_get_port_mixer,
  17456. msm_routing_put_port_mixer),
  17457. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17458. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17459. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17460. msm_routing_get_port_mixer,
  17461. msm_routing_put_port_mixer),
  17462. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17463. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17464. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17465. msm_routing_get_port_mixer,
  17466. msm_routing_put_port_mixer),
  17467. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17468. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17469. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17470. msm_routing_get_port_mixer,
  17471. msm_routing_put_port_mixer),
  17472. };
  17473. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17474. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17475. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17476. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17477. msm_routing_get_port_mixer,
  17478. msm_routing_put_port_mixer),
  17479. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17480. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17481. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17482. msm_routing_get_port_mixer,
  17483. msm_routing_put_port_mixer),
  17484. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17485. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17486. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17487. msm_routing_get_port_mixer,
  17488. msm_routing_put_port_mixer),
  17489. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17490. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17491. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17492. msm_routing_get_port_mixer,
  17493. msm_routing_put_port_mixer),
  17494. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17495. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17496. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17497. msm_routing_get_port_mixer,
  17498. msm_routing_put_port_mixer),
  17499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17500. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17501. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17502. msm_routing_get_port_mixer,
  17503. msm_routing_put_port_mixer),
  17504. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17505. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17506. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17507. msm_routing_get_port_mixer,
  17508. msm_routing_put_port_mixer),
  17509. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17510. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17511. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17512. msm_routing_get_port_mixer,
  17513. msm_routing_put_port_mixer),
  17514. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17515. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17516. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17517. msm_routing_get_port_mixer,
  17518. msm_routing_put_port_mixer),
  17519. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17520. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17521. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17522. msm_routing_get_port_mixer,
  17523. msm_routing_put_port_mixer),
  17524. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17525. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17526. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17527. msm_routing_get_port_mixer,
  17528. msm_routing_put_port_mixer),
  17529. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17530. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17531. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17532. msm_routing_get_port_mixer,
  17533. msm_routing_put_port_mixer),
  17534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17535. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17536. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17537. msm_routing_get_port_mixer,
  17538. msm_routing_put_port_mixer),
  17539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17540. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17541. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17542. msm_routing_get_port_mixer,
  17543. msm_routing_put_port_mixer),
  17544. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17545. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17546. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17547. msm_routing_get_port_mixer,
  17548. msm_routing_put_port_mixer),
  17549. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17550. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17551. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17552. msm_routing_get_port_mixer,
  17553. msm_routing_put_port_mixer),
  17554. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17555. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17556. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17557. msm_routing_get_port_mixer,
  17558. msm_routing_put_port_mixer),
  17559. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17560. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17561. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17562. msm_routing_get_port_mixer,
  17563. msm_routing_put_port_mixer),
  17564. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17565. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17566. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17567. msm_routing_get_port_mixer,
  17568. msm_routing_put_port_mixer),
  17569. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17570. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17571. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17572. msm_routing_get_port_mixer,
  17573. msm_routing_put_port_mixer),
  17574. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17575. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17576. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17577. msm_routing_get_port_mixer,
  17578. msm_routing_put_port_mixer),
  17579. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17581. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17582. msm_routing_get_port_mixer,
  17583. msm_routing_put_port_mixer),
  17584. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17585. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17586. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17587. msm_routing_get_port_mixer,
  17588. msm_routing_put_port_mixer),
  17589. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17590. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17591. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17592. msm_routing_get_port_mixer,
  17593. msm_routing_put_port_mixer),
  17594. };
  17595. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17596. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  17597. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  17598. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  17599. msm_routing_get_port_mixer,
  17600. msm_routing_put_port_mixer),
  17601. };
  17602. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  17603. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17604. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17605. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17606. msm_routing_get_port_mixer,
  17607. msm_routing_put_port_mixer),
  17608. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17609. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17610. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17611. msm_routing_get_port_mixer,
  17612. msm_routing_put_port_mixer),
  17613. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17614. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17615. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17616. msm_routing_get_port_mixer,
  17617. msm_routing_put_port_mixer),
  17618. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17619. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17620. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17621. msm_routing_get_port_mixer,
  17622. msm_routing_put_port_mixer),
  17623. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17624. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17625. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17626. msm_routing_get_port_mixer,
  17627. msm_routing_put_port_mixer),
  17628. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17629. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17630. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17631. msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17635. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17636. msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17639. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17640. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17641. msm_routing_get_port_mixer,
  17642. msm_routing_put_port_mixer),
  17643. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17644. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17645. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17646. msm_routing_get_port_mixer,
  17647. msm_routing_put_port_mixer),
  17648. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17649. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17650. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17651. msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17655. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17656. msm_routing_get_port_mixer,
  17657. msm_routing_put_port_mixer),
  17658. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17659. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17660. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17661. msm_routing_get_port_mixer,
  17662. msm_routing_put_port_mixer),
  17663. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17664. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17665. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17666. msm_routing_get_port_mixer,
  17667. msm_routing_put_port_mixer),
  17668. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17669. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17670. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17671. msm_routing_get_port_mixer,
  17672. msm_routing_put_port_mixer),
  17673. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17674. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17675. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17676. msm_routing_get_port_mixer,
  17677. msm_routing_put_port_mixer),
  17678. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17679. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17680. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17681. msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17685. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17686. msm_routing_get_port_mixer,
  17687. msm_routing_put_port_mixer),
  17688. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17689. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17690. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17691. msm_routing_get_port_mixer,
  17692. msm_routing_put_port_mixer),
  17693. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17694. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17695. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17696. msm_routing_get_port_mixer,
  17697. msm_routing_put_port_mixer),
  17698. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17699. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17700. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17701. msm_routing_get_port_mixer,
  17702. msm_routing_put_port_mixer),
  17703. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17704. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17705. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17706. msm_routing_get_port_mixer,
  17707. msm_routing_put_port_mixer),
  17708. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17709. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17710. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17711. msm_routing_get_port_mixer,
  17712. msm_routing_put_port_mixer),
  17713. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17714. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17715. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17716. msm_routing_get_port_mixer,
  17717. msm_routing_put_port_mixer),
  17718. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17719. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17720. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17721. msm_routing_get_port_mixer,
  17722. msm_routing_put_port_mixer),
  17723. };
  17724. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  17725. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17726. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17727. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17728. msm_routing_get_port_mixer,
  17729. msm_routing_put_port_mixer),
  17730. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17731. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17732. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17733. msm_routing_get_port_mixer,
  17734. msm_routing_put_port_mixer),
  17735. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17736. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17737. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17738. msm_routing_get_port_mixer,
  17739. msm_routing_put_port_mixer),
  17740. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17741. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17742. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17743. msm_routing_get_port_mixer,
  17744. msm_routing_put_port_mixer),
  17745. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17746. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17747. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17748. msm_routing_get_port_mixer,
  17749. msm_routing_put_port_mixer),
  17750. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17751. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17752. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17753. msm_routing_get_port_mixer,
  17754. msm_routing_put_port_mixer),
  17755. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17757. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17758. msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17761. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17762. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17763. msm_routing_get_port_mixer,
  17764. msm_routing_put_port_mixer),
  17765. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17766. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17767. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17768. msm_routing_get_port_mixer,
  17769. msm_routing_put_port_mixer),
  17770. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17771. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17772. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17773. msm_routing_get_port_mixer,
  17774. msm_routing_put_port_mixer),
  17775. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17776. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17777. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17778. msm_routing_get_port_mixer,
  17779. msm_routing_put_port_mixer),
  17780. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17781. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17782. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17783. msm_routing_get_port_mixer,
  17784. msm_routing_put_port_mixer),
  17785. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17786. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17787. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17788. msm_routing_get_port_mixer,
  17789. msm_routing_put_port_mixer),
  17790. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17791. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17792. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17793. msm_routing_get_port_mixer,
  17794. msm_routing_put_port_mixer),
  17795. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17796. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17797. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17798. msm_routing_get_port_mixer,
  17799. msm_routing_put_port_mixer),
  17800. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17801. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17802. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17803. msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17807. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17808. msm_routing_get_port_mixer,
  17809. msm_routing_put_port_mixer),
  17810. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17811. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17812. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17813. msm_routing_get_port_mixer,
  17814. msm_routing_put_port_mixer),
  17815. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17816. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17817. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17818. msm_routing_get_port_mixer,
  17819. msm_routing_put_port_mixer),
  17820. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17821. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17822. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17823. msm_routing_get_port_mixer,
  17824. msm_routing_put_port_mixer),
  17825. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17826. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17827. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17828. msm_routing_get_port_mixer,
  17829. msm_routing_put_port_mixer),
  17830. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17831. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17832. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17833. msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17837. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17838. msm_routing_get_port_mixer,
  17839. msm_routing_put_port_mixer),
  17840. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17841. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17842. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17843. msm_routing_get_port_mixer,
  17844. msm_routing_put_port_mixer),
  17845. };
  17846. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  17847. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17848. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17849. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17850. msm_routing_get_port_mixer,
  17851. msm_routing_put_port_mixer),
  17852. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17853. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17854. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17855. msm_routing_get_port_mixer,
  17856. msm_routing_put_port_mixer),
  17857. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17858. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17859. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17860. msm_routing_get_port_mixer,
  17861. msm_routing_put_port_mixer),
  17862. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17863. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17864. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17865. msm_routing_get_port_mixer,
  17866. msm_routing_put_port_mixer),
  17867. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17868. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17869. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17870. msm_routing_get_port_mixer,
  17871. msm_routing_put_port_mixer),
  17872. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17873. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17874. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17875. msm_routing_get_port_mixer,
  17876. msm_routing_put_port_mixer),
  17877. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17878. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17879. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17880. msm_routing_get_port_mixer,
  17881. msm_routing_put_port_mixer),
  17882. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17883. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17884. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17885. msm_routing_get_port_mixer,
  17886. msm_routing_put_port_mixer),
  17887. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17888. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17889. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17890. msm_routing_get_port_mixer,
  17891. msm_routing_put_port_mixer),
  17892. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17893. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17894. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17895. msm_routing_get_port_mixer,
  17896. msm_routing_put_port_mixer),
  17897. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17898. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17899. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17900. msm_routing_get_port_mixer,
  17901. msm_routing_put_port_mixer),
  17902. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17903. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17904. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17905. msm_routing_get_port_mixer,
  17906. msm_routing_put_port_mixer),
  17907. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17908. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17909. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17910. msm_routing_get_port_mixer,
  17911. msm_routing_put_port_mixer),
  17912. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17913. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17914. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17915. msm_routing_get_port_mixer,
  17916. msm_routing_put_port_mixer),
  17917. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17918. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17919. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17920. msm_routing_get_port_mixer,
  17921. msm_routing_put_port_mixer),
  17922. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17923. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17924. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17925. msm_routing_get_port_mixer,
  17926. msm_routing_put_port_mixer),
  17927. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17928. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17929. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17930. msm_routing_get_port_mixer,
  17931. msm_routing_put_port_mixer),
  17932. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17933. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17934. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17935. msm_routing_get_port_mixer,
  17936. msm_routing_put_port_mixer),
  17937. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17938. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17939. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17940. msm_routing_get_port_mixer,
  17941. msm_routing_put_port_mixer),
  17942. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17943. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17944. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17945. msm_routing_get_port_mixer,
  17946. msm_routing_put_port_mixer),
  17947. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17948. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17949. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17950. msm_routing_get_port_mixer,
  17951. msm_routing_put_port_mixer),
  17952. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17953. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17954. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17955. msm_routing_get_port_mixer,
  17956. msm_routing_put_port_mixer),
  17957. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17958. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17959. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17960. msm_routing_get_port_mixer,
  17961. msm_routing_put_port_mixer),
  17962. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17963. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17964. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17965. msm_routing_get_port_mixer,
  17966. msm_routing_put_port_mixer),
  17967. };
  17968. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  17969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17970. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17971. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17972. msm_routing_get_port_mixer,
  17973. msm_routing_put_port_mixer),
  17974. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17975. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17976. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17977. msm_routing_get_port_mixer,
  17978. msm_routing_put_port_mixer),
  17979. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17980. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17981. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17982. msm_routing_get_port_mixer,
  17983. msm_routing_put_port_mixer),
  17984. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17985. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17986. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17987. msm_routing_get_port_mixer,
  17988. msm_routing_put_port_mixer),
  17989. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17990. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17991. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17992. msm_routing_get_port_mixer,
  17993. msm_routing_put_port_mixer),
  17994. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17995. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17996. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17997. msm_routing_get_port_mixer,
  17998. msm_routing_put_port_mixer),
  17999. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18000. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18001. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18002. msm_routing_get_port_mixer,
  18003. msm_routing_put_port_mixer),
  18004. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18005. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18006. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18007. msm_routing_get_port_mixer,
  18008. msm_routing_put_port_mixer),
  18009. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18010. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18011. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18012. msm_routing_get_port_mixer,
  18013. msm_routing_put_port_mixer),
  18014. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18015. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18016. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18017. msm_routing_get_port_mixer,
  18018. msm_routing_put_port_mixer),
  18019. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18020. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18021. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18022. msm_routing_get_port_mixer,
  18023. msm_routing_put_port_mixer),
  18024. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18025. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18026. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18027. msm_routing_get_port_mixer,
  18028. msm_routing_put_port_mixer),
  18029. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18030. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18031. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18032. msm_routing_get_port_mixer,
  18033. msm_routing_put_port_mixer),
  18034. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18035. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18036. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18037. msm_routing_get_port_mixer,
  18038. msm_routing_put_port_mixer),
  18039. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18040. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18041. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18042. msm_routing_get_port_mixer,
  18043. msm_routing_put_port_mixer),
  18044. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18045. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18046. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18047. msm_routing_get_port_mixer,
  18048. msm_routing_put_port_mixer),
  18049. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18050. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18051. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18052. msm_routing_get_port_mixer,
  18053. msm_routing_put_port_mixer),
  18054. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18055. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18056. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18057. msm_routing_get_port_mixer,
  18058. msm_routing_put_port_mixer),
  18059. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18060. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18061. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18062. msm_routing_get_port_mixer,
  18063. msm_routing_put_port_mixer),
  18064. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18065. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18066. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18067. msm_routing_get_port_mixer,
  18068. msm_routing_put_port_mixer),
  18069. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18070. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18071. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18072. msm_routing_get_port_mixer,
  18073. msm_routing_put_port_mixer),
  18074. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18075. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18076. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18077. msm_routing_get_port_mixer,
  18078. msm_routing_put_port_mixer),
  18079. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18080. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18081. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18082. msm_routing_get_port_mixer,
  18083. msm_routing_put_port_mixer),
  18084. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18085. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18086. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18087. msm_routing_get_port_mixer,
  18088. msm_routing_put_port_mixer),
  18089. };
  18090. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18091. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18093. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18094. msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18097. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18098. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18099. msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18103. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18104. msm_routing_get_port_mixer,
  18105. msm_routing_put_port_mixer),
  18106. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18107. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18108. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18109. msm_routing_get_port_mixer,
  18110. msm_routing_put_port_mixer),
  18111. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18112. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18113. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18114. msm_routing_get_port_mixer,
  18115. msm_routing_put_port_mixer),
  18116. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18117. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18118. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18119. msm_routing_get_port_mixer,
  18120. msm_routing_put_port_mixer),
  18121. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18122. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18123. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18124. msm_routing_get_port_mixer,
  18125. msm_routing_put_port_mixer),
  18126. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18127. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18128. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18129. msm_routing_get_port_mixer,
  18130. msm_routing_put_port_mixer),
  18131. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18132. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18133. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18134. msm_routing_get_port_mixer,
  18135. msm_routing_put_port_mixer),
  18136. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18137. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18138. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18139. msm_routing_get_port_mixer,
  18140. msm_routing_put_port_mixer),
  18141. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18142. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18143. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18144. msm_routing_get_port_mixer,
  18145. msm_routing_put_port_mixer),
  18146. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18147. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18148. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18149. msm_routing_get_port_mixer,
  18150. msm_routing_put_port_mixer),
  18151. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18152. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18153. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18154. msm_routing_get_port_mixer,
  18155. msm_routing_put_port_mixer),
  18156. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18157. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18158. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18159. msm_routing_get_port_mixer,
  18160. msm_routing_put_port_mixer),
  18161. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18162. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18163. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18164. msm_routing_get_port_mixer,
  18165. msm_routing_put_port_mixer),
  18166. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18167. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18168. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18169. msm_routing_get_port_mixer,
  18170. msm_routing_put_port_mixer),
  18171. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18172. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18173. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18174. msm_routing_get_port_mixer,
  18175. msm_routing_put_port_mixer),
  18176. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18177. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18178. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18179. msm_routing_get_port_mixer,
  18180. msm_routing_put_port_mixer),
  18181. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18182. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18183. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18184. msm_routing_get_port_mixer,
  18185. msm_routing_put_port_mixer),
  18186. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18187. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18188. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18189. msm_routing_get_port_mixer,
  18190. msm_routing_put_port_mixer),
  18191. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18192. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18193. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18194. msm_routing_get_port_mixer,
  18195. msm_routing_put_port_mixer),
  18196. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18197. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18198. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18199. msm_routing_get_port_mixer,
  18200. msm_routing_put_port_mixer),
  18201. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18202. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18203. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18204. msm_routing_get_port_mixer,
  18205. msm_routing_put_port_mixer),
  18206. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18207. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18208. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18209. msm_routing_get_port_mixer,
  18210. msm_routing_put_port_mixer),
  18211. };
  18212. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18214. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18215. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18216. msm_routing_get_port_mixer,
  18217. msm_routing_put_port_mixer),
  18218. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18219. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18221. msm_routing_get_port_mixer,
  18222. msm_routing_put_port_mixer),
  18223. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18224. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18225. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18226. msm_routing_get_port_mixer,
  18227. msm_routing_put_port_mixer),
  18228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18229. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18231. msm_routing_get_port_mixer,
  18232. msm_routing_put_port_mixer),
  18233. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18234. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18236. msm_routing_get_port_mixer,
  18237. msm_routing_put_port_mixer),
  18238. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18239. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18240. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18241. msm_routing_get_port_mixer,
  18242. msm_routing_put_port_mixer),
  18243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18244. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18245. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18246. msm_routing_get_port_mixer,
  18247. msm_routing_put_port_mixer),
  18248. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18249. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18250. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18251. msm_routing_get_port_mixer,
  18252. msm_routing_put_port_mixer),
  18253. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18254. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18255. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18256. msm_routing_get_port_mixer,
  18257. msm_routing_put_port_mixer),
  18258. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18259. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18260. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18261. msm_routing_get_port_mixer,
  18262. msm_routing_put_port_mixer),
  18263. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18264. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18265. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18266. msm_routing_get_port_mixer,
  18267. msm_routing_put_port_mixer),
  18268. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18269. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18270. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18271. msm_routing_get_port_mixer,
  18272. msm_routing_put_port_mixer),
  18273. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18274. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18275. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18276. msm_routing_get_port_mixer,
  18277. msm_routing_put_port_mixer),
  18278. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18279. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18280. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18281. msm_routing_get_port_mixer,
  18282. msm_routing_put_port_mixer),
  18283. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18284. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18285. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18286. msm_routing_get_port_mixer,
  18287. msm_routing_put_port_mixer),
  18288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18289. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18290. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18291. msm_routing_get_port_mixer,
  18292. msm_routing_put_port_mixer),
  18293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18294. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18295. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18296. msm_routing_get_port_mixer,
  18297. msm_routing_put_port_mixer),
  18298. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18299. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18300. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18301. msm_routing_get_port_mixer,
  18302. msm_routing_put_port_mixer),
  18303. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18304. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18305. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18306. msm_routing_get_port_mixer,
  18307. msm_routing_put_port_mixer),
  18308. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18309. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18310. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18311. msm_routing_get_port_mixer,
  18312. msm_routing_put_port_mixer),
  18313. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18314. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18315. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18316. msm_routing_get_port_mixer,
  18317. msm_routing_put_port_mixer),
  18318. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18319. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18320. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18321. msm_routing_get_port_mixer,
  18322. msm_routing_put_port_mixer),
  18323. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18324. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18325. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18326. msm_routing_get_port_mixer,
  18327. msm_routing_put_port_mixer),
  18328. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18329. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18330. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18331. msm_routing_get_port_mixer,
  18332. msm_routing_put_port_mixer),
  18333. };
  18334. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18335. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18336. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18337. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18338. msm_routing_get_port_mixer,
  18339. msm_routing_put_port_mixer),
  18340. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18341. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18342. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18343. msm_routing_get_port_mixer,
  18344. msm_routing_put_port_mixer),
  18345. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18346. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18347. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18348. msm_routing_get_port_mixer,
  18349. msm_routing_put_port_mixer),
  18350. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18351. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18352. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18353. msm_routing_get_port_mixer,
  18354. msm_routing_put_port_mixer),
  18355. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18356. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18357. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18358. msm_routing_get_port_mixer,
  18359. msm_routing_put_port_mixer),
  18360. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18361. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18362. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18363. msm_routing_get_port_mixer,
  18364. msm_routing_put_port_mixer),
  18365. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18366. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18367. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18368. msm_routing_get_port_mixer,
  18369. msm_routing_put_port_mixer),
  18370. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18371. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18372. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18373. msm_routing_get_port_mixer,
  18374. msm_routing_put_port_mixer),
  18375. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18376. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18377. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18378. msm_routing_get_port_mixer,
  18379. msm_routing_put_port_mixer),
  18380. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18381. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18382. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18383. msm_routing_get_port_mixer,
  18384. msm_routing_put_port_mixer),
  18385. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18386. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18387. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18388. msm_routing_get_port_mixer,
  18389. msm_routing_put_port_mixer),
  18390. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18391. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18392. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18393. msm_routing_get_port_mixer,
  18394. msm_routing_put_port_mixer),
  18395. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18396. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18397. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18398. msm_routing_get_port_mixer,
  18399. msm_routing_put_port_mixer),
  18400. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18401. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18402. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18403. msm_routing_get_port_mixer,
  18404. msm_routing_put_port_mixer),
  18405. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18406. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18407. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18408. msm_routing_get_port_mixer,
  18409. msm_routing_put_port_mixer),
  18410. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18411. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18412. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18413. msm_routing_get_port_mixer,
  18414. msm_routing_put_port_mixer),
  18415. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18416. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18417. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18418. msm_routing_get_port_mixer,
  18419. msm_routing_put_port_mixer),
  18420. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18421. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18422. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18423. msm_routing_get_port_mixer,
  18424. msm_routing_put_port_mixer),
  18425. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18426. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18427. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18428. msm_routing_get_port_mixer,
  18429. msm_routing_put_port_mixer),
  18430. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18431. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18432. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18433. msm_routing_get_port_mixer,
  18434. msm_routing_put_port_mixer),
  18435. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18436. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18437. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18438. msm_routing_get_port_mixer,
  18439. msm_routing_put_port_mixer),
  18440. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18441. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18442. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18443. msm_routing_get_port_mixer,
  18444. msm_routing_put_port_mixer),
  18445. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18446. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18447. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18448. msm_routing_get_port_mixer,
  18449. msm_routing_put_port_mixer),
  18450. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18451. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18452. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18453. msm_routing_get_port_mixer,
  18454. msm_routing_put_port_mixer),
  18455. };
  18456. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18457. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18458. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18459. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18460. msm_routing_get_port_mixer,
  18461. msm_routing_put_port_mixer),
  18462. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18463. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18465. msm_routing_get_port_mixer,
  18466. msm_routing_put_port_mixer),
  18467. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18468. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18469. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18470. msm_routing_get_port_mixer,
  18471. msm_routing_put_port_mixer),
  18472. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18473. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18474. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18475. msm_routing_get_port_mixer,
  18476. msm_routing_put_port_mixer),
  18477. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18478. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18479. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18480. msm_routing_get_port_mixer,
  18481. msm_routing_put_port_mixer),
  18482. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18483. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18484. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18485. msm_routing_get_port_mixer,
  18486. msm_routing_put_port_mixer),
  18487. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18488. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18490. msm_routing_get_port_mixer,
  18491. msm_routing_put_port_mixer),
  18492. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18493. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18494. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18495. msm_routing_get_port_mixer,
  18496. msm_routing_put_port_mixer),
  18497. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18498. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18499. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18500. msm_routing_get_port_mixer,
  18501. msm_routing_put_port_mixer),
  18502. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18503. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18504. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18505. msm_routing_get_port_mixer,
  18506. msm_routing_put_port_mixer),
  18507. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18508. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18509. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18510. msm_routing_get_port_mixer,
  18511. msm_routing_put_port_mixer),
  18512. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18513. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18514. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18515. msm_routing_get_port_mixer,
  18516. msm_routing_put_port_mixer),
  18517. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18518. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18519. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18520. msm_routing_get_port_mixer,
  18521. msm_routing_put_port_mixer),
  18522. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18523. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18524. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18525. msm_routing_get_port_mixer,
  18526. msm_routing_put_port_mixer),
  18527. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18528. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18529. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18530. msm_routing_get_port_mixer,
  18531. msm_routing_put_port_mixer),
  18532. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18533. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18534. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18535. msm_routing_get_port_mixer,
  18536. msm_routing_put_port_mixer),
  18537. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18538. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18539. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18540. msm_routing_get_port_mixer,
  18541. msm_routing_put_port_mixer),
  18542. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18543. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18544. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18545. msm_routing_get_port_mixer,
  18546. msm_routing_put_port_mixer),
  18547. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18548. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18549. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18550. msm_routing_get_port_mixer,
  18551. msm_routing_put_port_mixer),
  18552. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18553. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18554. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18555. msm_routing_get_port_mixer,
  18556. msm_routing_put_port_mixer),
  18557. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18558. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18559. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18560. msm_routing_get_port_mixer,
  18561. msm_routing_put_port_mixer),
  18562. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18563. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18564. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18565. msm_routing_get_port_mixer,
  18566. msm_routing_put_port_mixer),
  18567. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18568. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18569. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18570. msm_routing_get_port_mixer,
  18571. msm_routing_put_port_mixer),
  18572. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18573. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18574. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18575. msm_routing_get_port_mixer,
  18576. msm_routing_put_port_mixer),
  18577. };
  18578. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18579. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18580. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18581. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18582. msm_routing_get_port_mixer,
  18583. msm_routing_put_port_mixer),
  18584. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  18585. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18586. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  18587. msm_routing_get_port_mixer,
  18588. msm_routing_put_port_mixer),
  18589. };
  18590. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18591. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18592. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18593. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18594. msm_routing_get_port_mixer,
  18595. msm_routing_put_port_mixer),
  18596. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18597. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18598. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18599. msm_routing_get_port_mixer,
  18600. msm_routing_put_port_mixer),
  18601. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18602. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18603. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18604. msm_routing_get_port_mixer,
  18605. msm_routing_put_port_mixer),
  18606. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18608. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18609. msm_routing_get_port_mixer,
  18610. msm_routing_put_port_mixer),
  18611. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18612. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18613. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18614. msm_routing_get_port_mixer,
  18615. msm_routing_put_port_mixer),
  18616. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18618. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18619. msm_routing_get_port_mixer,
  18620. msm_routing_put_port_mixer),
  18621. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18623. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18624. msm_routing_get_port_mixer,
  18625. msm_routing_put_port_mixer),
  18626. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18628. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18629. msm_routing_get_port_mixer,
  18630. msm_routing_put_port_mixer),
  18631. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18632. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18633. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18634. msm_routing_get_port_mixer,
  18635. msm_routing_put_port_mixer),
  18636. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18638. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18643. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18648. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18649. msm_routing_get_port_mixer,
  18650. msm_routing_put_port_mixer),
  18651. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18653. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18654. msm_routing_get_port_mixer,
  18655. msm_routing_put_port_mixer),
  18656. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18658. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18659. msm_routing_get_port_mixer,
  18660. msm_routing_put_port_mixer),
  18661. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18663. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18664. msm_routing_get_port_mixer,
  18665. msm_routing_put_port_mixer),
  18666. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18668. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18669. msm_routing_get_port_mixer,
  18670. msm_routing_put_port_mixer),
  18671. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18673. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18674. msm_routing_get_port_mixer,
  18675. msm_routing_put_port_mixer),
  18676. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18678. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18679. msm_routing_get_port_mixer,
  18680. msm_routing_put_port_mixer),
  18681. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18683. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18684. msm_routing_get_port_mixer,
  18685. msm_routing_put_port_mixer),
  18686. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18688. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18689. msm_routing_get_port_mixer,
  18690. msm_routing_put_port_mixer),
  18691. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18693. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18694. msm_routing_get_port_mixer,
  18695. msm_routing_put_port_mixer),
  18696. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18697. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18698. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18699. msm_routing_get_port_mixer,
  18700. msm_routing_put_port_mixer),
  18701. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18702. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18703. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18704. msm_routing_get_port_mixer,
  18705. msm_routing_put_port_mixer),
  18706. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18707. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18708. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18709. msm_routing_get_port_mixer,
  18710. msm_routing_put_port_mixer),
  18711. };
  18712. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  18713. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18714. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18715. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18716. msm_routing_get_port_mixer,
  18717. msm_routing_put_port_mixer),
  18718. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18719. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18720. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18721. msm_routing_get_port_mixer,
  18722. msm_routing_put_port_mixer),
  18723. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18724. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18725. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18726. msm_routing_get_port_mixer,
  18727. msm_routing_put_port_mixer),
  18728. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18730. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18731. msm_routing_get_port_mixer,
  18732. msm_routing_put_port_mixer),
  18733. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18735. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18736. msm_routing_get_port_mixer,
  18737. msm_routing_put_port_mixer),
  18738. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18740. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18741. msm_routing_get_port_mixer,
  18742. msm_routing_put_port_mixer),
  18743. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18744. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18745. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18746. msm_routing_get_port_mixer,
  18747. msm_routing_put_port_mixer),
  18748. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18750. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18751. msm_routing_get_port_mixer,
  18752. msm_routing_put_port_mixer),
  18753. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18755. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18756. msm_routing_get_port_mixer,
  18757. msm_routing_put_port_mixer),
  18758. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18760. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18765. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18770. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18771. msm_routing_get_port_mixer,
  18772. msm_routing_put_port_mixer),
  18773. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18775. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18776. msm_routing_get_port_mixer,
  18777. msm_routing_put_port_mixer),
  18778. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18780. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18781. msm_routing_get_port_mixer,
  18782. msm_routing_put_port_mixer),
  18783. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18784. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18785. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18786. msm_routing_get_port_mixer,
  18787. msm_routing_put_port_mixer),
  18788. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18789. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18790. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18791. msm_routing_get_port_mixer,
  18792. msm_routing_put_port_mixer),
  18793. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18795. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18796. msm_routing_get_port_mixer,
  18797. msm_routing_put_port_mixer),
  18798. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18800. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18801. msm_routing_get_port_mixer,
  18802. msm_routing_put_port_mixer),
  18803. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18804. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18805. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18806. msm_routing_get_port_mixer,
  18807. msm_routing_put_port_mixer),
  18808. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18809. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18810. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18811. msm_routing_get_port_mixer,
  18812. msm_routing_put_port_mixer),
  18813. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18815. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18816. msm_routing_get_port_mixer,
  18817. msm_routing_put_port_mixer),
  18818. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18820. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18821. msm_routing_get_port_mixer,
  18822. msm_routing_put_port_mixer),
  18823. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18824. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18825. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18826. msm_routing_get_port_mixer,
  18827. msm_routing_put_port_mixer),
  18828. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18829. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18830. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18831. msm_routing_get_port_mixer,
  18832. msm_routing_put_port_mixer),
  18833. };
  18834. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  18835. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18836. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18837. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18838. msm_routing_get_port_mixer,
  18839. msm_routing_put_port_mixer),
  18840. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18841. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18842. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18843. msm_routing_get_port_mixer,
  18844. msm_routing_put_port_mixer),
  18845. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18846. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18847. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18848. msm_routing_get_port_mixer,
  18849. msm_routing_put_port_mixer),
  18850. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18851. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18852. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18853. msm_routing_get_port_mixer,
  18854. msm_routing_put_port_mixer),
  18855. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18856. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18857. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18858. msm_routing_get_port_mixer,
  18859. msm_routing_put_port_mixer),
  18860. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18862. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18863. msm_routing_get_port_mixer,
  18864. msm_routing_put_port_mixer),
  18865. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18866. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18867. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18868. msm_routing_get_port_mixer,
  18869. msm_routing_put_port_mixer),
  18870. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18871. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18872. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18873. msm_routing_get_port_mixer,
  18874. msm_routing_put_port_mixer),
  18875. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18876. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18877. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18878. msm_routing_get_port_mixer,
  18879. msm_routing_put_port_mixer),
  18880. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18882. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18883. msm_routing_get_port_mixer,
  18884. msm_routing_put_port_mixer),
  18885. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18887. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18888. msm_routing_get_port_mixer,
  18889. msm_routing_put_port_mixer),
  18890. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18891. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18892. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18893. msm_routing_get_port_mixer,
  18894. msm_routing_put_port_mixer),
  18895. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18896. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18897. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18898. msm_routing_get_port_mixer,
  18899. msm_routing_put_port_mixer),
  18900. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18901. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18902. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18903. msm_routing_get_port_mixer,
  18904. msm_routing_put_port_mixer),
  18905. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18906. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18907. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18908. msm_routing_get_port_mixer,
  18909. msm_routing_put_port_mixer),
  18910. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18912. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18913. msm_routing_get_port_mixer,
  18914. msm_routing_put_port_mixer),
  18915. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18916. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18917. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18918. msm_routing_get_port_mixer,
  18919. msm_routing_put_port_mixer),
  18920. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18921. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18922. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18923. msm_routing_get_port_mixer,
  18924. msm_routing_put_port_mixer),
  18925. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18926. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18927. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18928. msm_routing_get_port_mixer,
  18929. msm_routing_put_port_mixer),
  18930. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18931. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18932. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18933. msm_routing_get_port_mixer,
  18934. msm_routing_put_port_mixer),
  18935. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18936. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18937. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18938. msm_routing_get_port_mixer,
  18939. msm_routing_put_port_mixer),
  18940. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18941. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18942. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18943. msm_routing_get_port_mixer,
  18944. msm_routing_put_port_mixer),
  18945. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18946. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18947. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18948. msm_routing_get_port_mixer,
  18949. msm_routing_put_port_mixer),
  18950. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18951. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18952. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18953. msm_routing_get_port_mixer,
  18954. msm_routing_put_port_mixer),
  18955. };
  18956. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  18957. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18958. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18959. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18960. msm_routing_get_port_mixer,
  18961. msm_routing_put_port_mixer),
  18962. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18963. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18964. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18965. msm_routing_get_port_mixer,
  18966. msm_routing_put_port_mixer),
  18967. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18968. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18969. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18970. msm_routing_get_port_mixer,
  18971. msm_routing_put_port_mixer),
  18972. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18973. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18974. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18975. msm_routing_get_port_mixer,
  18976. msm_routing_put_port_mixer),
  18977. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18978. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18979. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18980. msm_routing_get_port_mixer,
  18981. msm_routing_put_port_mixer),
  18982. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18983. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18984. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18985. msm_routing_get_port_mixer,
  18986. msm_routing_put_port_mixer),
  18987. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18988. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18989. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18990. msm_routing_get_port_mixer,
  18991. msm_routing_put_port_mixer),
  18992. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18993. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18994. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18995. msm_routing_get_port_mixer,
  18996. msm_routing_put_port_mixer),
  18997. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18998. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18999. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19000. msm_routing_get_port_mixer,
  19001. msm_routing_put_port_mixer),
  19002. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19003. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19004. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19005. msm_routing_get_port_mixer,
  19006. msm_routing_put_port_mixer),
  19007. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19008. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19009. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19010. msm_routing_get_port_mixer,
  19011. msm_routing_put_port_mixer),
  19012. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19013. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19014. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19015. msm_routing_get_port_mixer,
  19016. msm_routing_put_port_mixer),
  19017. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19018. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19019. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19020. msm_routing_get_port_mixer,
  19021. msm_routing_put_port_mixer),
  19022. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19023. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19024. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19025. msm_routing_get_port_mixer,
  19026. msm_routing_put_port_mixer),
  19027. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19028. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19029. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19030. msm_routing_get_port_mixer,
  19031. msm_routing_put_port_mixer),
  19032. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19033. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19034. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19035. msm_routing_get_port_mixer,
  19036. msm_routing_put_port_mixer),
  19037. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19038. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19039. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19040. msm_routing_get_port_mixer,
  19041. msm_routing_put_port_mixer),
  19042. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19043. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19044. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19045. msm_routing_get_port_mixer,
  19046. msm_routing_put_port_mixer),
  19047. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19048. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19049. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19050. msm_routing_get_port_mixer,
  19051. msm_routing_put_port_mixer),
  19052. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19053. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19054. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19055. msm_routing_get_port_mixer,
  19056. msm_routing_put_port_mixer),
  19057. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19058. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19059. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19060. msm_routing_get_port_mixer,
  19061. msm_routing_put_port_mixer),
  19062. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19063. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19064. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19065. msm_routing_get_port_mixer,
  19066. msm_routing_put_port_mixer),
  19067. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19068. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19069. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19070. msm_routing_get_port_mixer,
  19071. msm_routing_put_port_mixer),
  19072. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19073. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19074. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19075. msm_routing_get_port_mixer,
  19076. msm_routing_put_port_mixer),
  19077. };
  19078. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19079. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19080. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19081. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19082. msm_routing_get_port_mixer,
  19083. msm_routing_put_port_mixer),
  19084. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19085. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19086. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19087. msm_routing_get_port_mixer,
  19088. msm_routing_put_port_mixer),
  19089. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19090. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19091. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19092. msm_routing_get_port_mixer,
  19093. msm_routing_put_port_mixer),
  19094. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19095. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19096. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19097. msm_routing_get_port_mixer,
  19098. msm_routing_put_port_mixer),
  19099. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19100. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19101. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19102. msm_routing_get_port_mixer,
  19103. msm_routing_put_port_mixer),
  19104. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19105. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19106. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19107. msm_routing_get_port_mixer,
  19108. msm_routing_put_port_mixer),
  19109. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19110. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19111. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19112. msm_routing_get_port_mixer,
  19113. msm_routing_put_port_mixer),
  19114. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19115. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19116. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19117. msm_routing_get_port_mixer,
  19118. msm_routing_put_port_mixer),
  19119. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19120. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19121. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19122. msm_routing_get_port_mixer,
  19123. msm_routing_put_port_mixer),
  19124. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19125. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19126. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19127. msm_routing_get_port_mixer,
  19128. msm_routing_put_port_mixer),
  19129. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19130. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19131. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19132. msm_routing_get_port_mixer,
  19133. msm_routing_put_port_mixer),
  19134. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19135. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19136. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19137. msm_routing_get_port_mixer,
  19138. msm_routing_put_port_mixer),
  19139. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19140. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19141. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19142. msm_routing_get_port_mixer,
  19143. msm_routing_put_port_mixer),
  19144. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19145. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19146. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19147. msm_routing_get_port_mixer,
  19148. msm_routing_put_port_mixer),
  19149. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19150. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19151. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19152. msm_routing_get_port_mixer,
  19153. msm_routing_put_port_mixer),
  19154. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19155. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19156. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19157. msm_routing_get_port_mixer,
  19158. msm_routing_put_port_mixer),
  19159. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19160. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19161. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19162. msm_routing_get_port_mixer,
  19163. msm_routing_put_port_mixer),
  19164. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19165. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19166. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19167. msm_routing_get_port_mixer,
  19168. msm_routing_put_port_mixer),
  19169. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19170. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19171. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19172. msm_routing_get_port_mixer,
  19173. msm_routing_put_port_mixer),
  19174. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19175. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19176. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19177. msm_routing_get_port_mixer,
  19178. msm_routing_put_port_mixer),
  19179. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19180. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19181. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19182. msm_routing_get_port_mixer,
  19183. msm_routing_put_port_mixer),
  19184. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19185. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19186. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19187. msm_routing_get_port_mixer,
  19188. msm_routing_put_port_mixer),
  19189. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19190. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19191. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19192. msm_routing_get_port_mixer,
  19193. msm_routing_put_port_mixer),
  19194. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19195. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19196. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19197. msm_routing_get_port_mixer,
  19198. msm_routing_put_port_mixer),
  19199. };
  19200. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19201. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19202. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19203. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19204. msm_routing_get_port_mixer,
  19205. msm_routing_put_port_mixer),
  19206. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19207. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19208. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19209. msm_routing_get_port_mixer,
  19210. msm_routing_put_port_mixer),
  19211. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19212. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19213. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19214. msm_routing_get_port_mixer,
  19215. msm_routing_put_port_mixer),
  19216. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19217. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19218. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19219. msm_routing_get_port_mixer,
  19220. msm_routing_put_port_mixer),
  19221. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19222. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19223. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19224. msm_routing_get_port_mixer,
  19225. msm_routing_put_port_mixer),
  19226. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19227. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19228. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19229. msm_routing_get_port_mixer,
  19230. msm_routing_put_port_mixer),
  19231. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19232. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19233. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19234. msm_routing_get_port_mixer,
  19235. msm_routing_put_port_mixer),
  19236. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19237. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19238. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19239. msm_routing_get_port_mixer,
  19240. msm_routing_put_port_mixer),
  19241. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19242. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19243. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19244. msm_routing_get_port_mixer,
  19245. msm_routing_put_port_mixer),
  19246. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19247. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19248. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19249. msm_routing_get_port_mixer,
  19250. msm_routing_put_port_mixer),
  19251. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19252. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19253. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19254. msm_routing_get_port_mixer,
  19255. msm_routing_put_port_mixer),
  19256. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19257. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19258. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19259. msm_routing_get_port_mixer,
  19260. msm_routing_put_port_mixer),
  19261. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19262. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19263. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19264. msm_routing_get_port_mixer,
  19265. msm_routing_put_port_mixer),
  19266. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19267. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19268. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19269. msm_routing_get_port_mixer,
  19270. msm_routing_put_port_mixer),
  19271. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19272. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19273. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19274. msm_routing_get_port_mixer,
  19275. msm_routing_put_port_mixer),
  19276. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19277. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19278. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19279. msm_routing_get_port_mixer,
  19280. msm_routing_put_port_mixer),
  19281. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19282. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19283. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19284. msm_routing_get_port_mixer,
  19285. msm_routing_put_port_mixer),
  19286. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19287. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19288. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19289. msm_routing_get_port_mixer,
  19290. msm_routing_put_port_mixer),
  19291. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19292. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19293. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19294. msm_routing_get_port_mixer,
  19295. msm_routing_put_port_mixer),
  19296. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19297. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19298. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19299. msm_routing_get_port_mixer,
  19300. msm_routing_put_port_mixer),
  19301. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19302. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19303. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19304. msm_routing_get_port_mixer,
  19305. msm_routing_put_port_mixer),
  19306. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19307. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19308. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19309. msm_routing_get_port_mixer,
  19310. msm_routing_put_port_mixer),
  19311. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19312. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19313. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19314. msm_routing_get_port_mixer,
  19315. msm_routing_put_port_mixer),
  19316. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19317. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19318. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19319. msm_routing_get_port_mixer,
  19320. msm_routing_put_port_mixer),
  19321. };
  19322. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19323. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19324. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19325. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19326. msm_routing_get_port_mixer,
  19327. msm_routing_put_port_mixer),
  19328. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19329. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19330. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19331. msm_routing_get_port_mixer,
  19332. msm_routing_put_port_mixer),
  19333. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19334. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19335. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19336. msm_routing_get_port_mixer,
  19337. msm_routing_put_port_mixer),
  19338. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19339. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19340. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19341. msm_routing_get_port_mixer,
  19342. msm_routing_put_port_mixer),
  19343. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19344. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19345. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19346. msm_routing_get_port_mixer,
  19347. msm_routing_put_port_mixer),
  19348. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19349. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19350. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19351. msm_routing_get_port_mixer,
  19352. msm_routing_put_port_mixer),
  19353. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19354. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19355. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19356. msm_routing_get_port_mixer,
  19357. msm_routing_put_port_mixer),
  19358. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19359. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19360. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19361. msm_routing_get_port_mixer,
  19362. msm_routing_put_port_mixer),
  19363. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19364. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19365. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19366. msm_routing_get_port_mixer,
  19367. msm_routing_put_port_mixer),
  19368. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19369. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19370. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19371. msm_routing_get_port_mixer,
  19372. msm_routing_put_port_mixer),
  19373. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19374. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19375. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19376. msm_routing_get_port_mixer,
  19377. msm_routing_put_port_mixer),
  19378. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19379. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19380. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19381. msm_routing_get_port_mixer,
  19382. msm_routing_put_port_mixer),
  19383. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19384. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19385. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19386. msm_routing_get_port_mixer,
  19387. msm_routing_put_port_mixer),
  19388. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19389. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19390. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19391. msm_routing_get_port_mixer,
  19392. msm_routing_put_port_mixer),
  19393. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19394. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19395. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19396. msm_routing_get_port_mixer,
  19397. msm_routing_put_port_mixer),
  19398. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19399. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19400. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19401. msm_routing_get_port_mixer,
  19402. msm_routing_put_port_mixer),
  19403. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19404. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19405. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19406. msm_routing_get_port_mixer,
  19407. msm_routing_put_port_mixer),
  19408. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19409. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19410. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19411. msm_routing_get_port_mixer,
  19412. msm_routing_put_port_mixer),
  19413. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19414. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19415. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19416. msm_routing_get_port_mixer,
  19417. msm_routing_put_port_mixer),
  19418. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19419. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19420. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19421. msm_routing_get_port_mixer,
  19422. msm_routing_put_port_mixer),
  19423. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19424. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19425. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19426. msm_routing_get_port_mixer,
  19427. msm_routing_put_port_mixer),
  19428. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19429. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19430. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19431. msm_routing_get_port_mixer,
  19432. msm_routing_put_port_mixer),
  19433. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19434. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19435. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19436. msm_routing_get_port_mixer,
  19437. msm_routing_put_port_mixer),
  19438. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19439. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19440. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19441. msm_routing_get_port_mixer,
  19442. msm_routing_put_port_mixer),
  19443. };
  19444. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19445. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19446. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19447. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19448. msm_routing_get_port_mixer,
  19449. msm_routing_put_port_mixer),
  19450. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19451. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19452. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19453. msm_routing_get_port_mixer,
  19454. msm_routing_put_port_mixer),
  19455. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19456. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19457. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19458. msm_routing_get_port_mixer,
  19459. msm_routing_put_port_mixer),
  19460. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19461. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19462. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19463. msm_routing_get_port_mixer,
  19464. msm_routing_put_port_mixer),
  19465. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19466. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19467. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19468. msm_routing_get_port_mixer,
  19469. msm_routing_put_port_mixer),
  19470. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19471. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19472. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19473. msm_routing_get_port_mixer,
  19474. msm_routing_put_port_mixer),
  19475. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19476. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19477. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19478. msm_routing_get_port_mixer,
  19479. msm_routing_put_port_mixer),
  19480. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19481. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19482. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19483. msm_routing_get_port_mixer,
  19484. msm_routing_put_port_mixer),
  19485. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19486. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19487. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19488. msm_routing_get_port_mixer,
  19489. msm_routing_put_port_mixer),
  19490. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19491. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19492. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19493. msm_routing_get_port_mixer,
  19494. msm_routing_put_port_mixer),
  19495. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19496. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19497. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19498. msm_routing_get_port_mixer,
  19499. msm_routing_put_port_mixer),
  19500. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19501. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19502. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19503. msm_routing_get_port_mixer,
  19504. msm_routing_put_port_mixer),
  19505. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19506. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19507. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19508. msm_routing_get_port_mixer,
  19509. msm_routing_put_port_mixer),
  19510. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19511. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19512. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19513. msm_routing_get_port_mixer,
  19514. msm_routing_put_port_mixer),
  19515. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19516. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19517. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19518. msm_routing_get_port_mixer,
  19519. msm_routing_put_port_mixer),
  19520. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19521. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19522. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19523. msm_routing_get_port_mixer,
  19524. msm_routing_put_port_mixer),
  19525. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19526. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19527. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19528. msm_routing_get_port_mixer,
  19529. msm_routing_put_port_mixer),
  19530. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19531. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19532. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19533. msm_routing_get_port_mixer,
  19534. msm_routing_put_port_mixer),
  19535. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19536. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19537. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19538. msm_routing_get_port_mixer,
  19539. msm_routing_put_port_mixer),
  19540. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19541. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19542. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19543. msm_routing_get_port_mixer,
  19544. msm_routing_put_port_mixer),
  19545. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19546. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19547. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19548. msm_routing_get_port_mixer,
  19549. msm_routing_put_port_mixer),
  19550. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19551. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19552. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19553. msm_routing_get_port_mixer,
  19554. msm_routing_put_port_mixer),
  19555. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19556. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19557. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19558. msm_routing_get_port_mixer,
  19559. msm_routing_put_port_mixer),
  19560. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19561. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19562. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19563. msm_routing_get_port_mixer,
  19564. msm_routing_put_port_mixer),
  19565. };
  19566. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  19567. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19568. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19569. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19570. msm_routing_get_port_mixer,
  19571. msm_routing_put_port_mixer),
  19572. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19573. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19574. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19575. msm_routing_get_port_mixer,
  19576. msm_routing_put_port_mixer),
  19577. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19578. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19579. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19580. msm_routing_get_port_mixer,
  19581. msm_routing_put_port_mixer),
  19582. };
  19583. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19584. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19585. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19586. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19587. msm_routing_put_port_mixer),
  19588. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19589. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19590. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19591. msm_routing_put_port_mixer),
  19592. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19593. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19594. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19595. msm_routing_put_port_mixer),
  19596. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19597. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19598. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19601. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19602. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19603. msm_routing_put_port_mixer),
  19604. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19605. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19606. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19607. msm_routing_put_port_mixer),
  19608. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19609. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19610. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19611. msm_routing_put_port_mixer),
  19612. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19613. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19614. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19615. msm_routing_put_port_mixer),
  19616. };
  19617. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  19618. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19620. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19621. msm_routing_put_port_mixer),
  19622. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19623. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19624. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19625. msm_routing_put_port_mixer),
  19626. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19627. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19628. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19632. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19636. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19637. msm_routing_put_port_mixer),
  19638. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19640. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19641. msm_routing_put_port_mixer),
  19642. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19643. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19644. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19645. msm_routing_put_port_mixer),
  19646. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19647. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19648. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  19649. msm_routing_put_port_mixer),
  19650. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19651. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19652. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19653. msm_routing_put_port_mixer),
  19654. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19655. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19656. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  19657. msm_routing_put_port_mixer),
  19658. };
  19659. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  19660. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19662. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19663. msm_routing_put_listen_mixer),
  19664. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19666. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19667. msm_routing_put_listen_mixer),
  19668. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19670. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19671. msm_routing_put_listen_mixer),
  19672. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19673. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19674. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19675. msm_routing_put_listen_mixer),
  19676. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19677. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19678. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19679. msm_routing_put_listen_mixer),
  19680. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19681. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19682. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19683. msm_routing_put_listen_mixer),
  19684. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19685. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19686. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19687. msm_routing_put_listen_mixer),
  19688. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19690. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19691. msm_routing_put_listen_mixer),
  19692. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19693. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19694. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19695. msm_routing_put_listen_mixer),
  19696. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19697. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19698. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19699. msm_routing_put_listen_mixer),
  19700. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19701. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19702. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19703. msm_routing_put_listen_mixer),
  19704. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19705. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19706. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19707. msm_routing_put_listen_mixer),
  19708. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19709. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19710. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19711. msm_routing_put_listen_mixer),
  19712. };
  19713. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  19714. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19715. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19716. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19717. msm_routing_put_listen_mixer),
  19718. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  19719. SND_SOC_NOPM,
  19720. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19721. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19722. msm_routing_put_listen_mixer),
  19723. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19724. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19725. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19726. msm_routing_put_listen_mixer),
  19727. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19729. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19730. msm_routing_put_listen_mixer),
  19731. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19733. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19734. msm_routing_put_listen_mixer),
  19735. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19736. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19737. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19738. msm_routing_put_listen_mixer),
  19739. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19740. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19741. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19742. msm_routing_put_listen_mixer),
  19743. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19744. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19745. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19746. msm_routing_put_listen_mixer),
  19747. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19749. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19750. msm_routing_put_listen_mixer),
  19751. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19752. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19753. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19754. msm_routing_put_listen_mixer),
  19755. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19756. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19757. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19758. msm_routing_put_listen_mixer),
  19759. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19760. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19761. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19762. msm_routing_put_listen_mixer),
  19763. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19764. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19765. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19766. msm_routing_put_listen_mixer),
  19767. };
  19768. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  19769. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19770. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19771. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19772. msm_routing_put_listen_mixer),
  19773. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19774. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19775. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19776. msm_routing_put_listen_mixer),
  19777. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19779. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19780. msm_routing_put_listen_mixer),
  19781. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19783. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19784. msm_routing_put_listen_mixer),
  19785. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19787. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19788. msm_routing_put_listen_mixer),
  19789. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19790. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19791. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19792. msm_routing_put_listen_mixer),
  19793. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19794. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19795. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19796. msm_routing_put_listen_mixer),
  19797. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19798. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19799. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19800. msm_routing_put_listen_mixer),
  19801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19803. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19804. msm_routing_put_listen_mixer),
  19805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19807. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19808. msm_routing_put_listen_mixer),
  19809. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19810. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19811. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19812. msm_routing_put_listen_mixer),
  19813. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19814. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19815. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19816. msm_routing_put_listen_mixer),
  19817. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19818. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19819. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19820. msm_routing_put_listen_mixer),
  19821. };
  19822. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  19823. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19824. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19825. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19826. msm_routing_put_listen_mixer),
  19827. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19828. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19829. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19830. msm_routing_put_listen_mixer),
  19831. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19832. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19833. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19834. msm_routing_put_listen_mixer),
  19835. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19836. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19837. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19838. msm_routing_put_listen_mixer),
  19839. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19840. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19841. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19842. msm_routing_put_listen_mixer),
  19843. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19844. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19845. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19846. msm_routing_put_listen_mixer),
  19847. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19848. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19849. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19850. msm_routing_put_listen_mixer),
  19851. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19852. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19853. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19854. msm_routing_put_listen_mixer),
  19855. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19856. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19857. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19858. msm_routing_put_listen_mixer),
  19859. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19861. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19862. msm_routing_put_listen_mixer),
  19863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19865. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19866. msm_routing_put_listen_mixer),
  19867. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19868. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19869. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19870. msm_routing_put_listen_mixer),
  19871. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19872. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19873. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19874. msm_routing_put_listen_mixer),
  19875. };
  19876. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  19877. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19878. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19879. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19880. msm_routing_put_listen_mixer),
  19881. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19882. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19883. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19884. msm_routing_put_listen_mixer),
  19885. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19886. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19887. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19888. msm_routing_put_listen_mixer),
  19889. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19891. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19892. msm_routing_put_listen_mixer),
  19893. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19895. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19896. msm_routing_put_listen_mixer),
  19897. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19898. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19899. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19900. msm_routing_put_listen_mixer),
  19901. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19902. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19903. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19904. msm_routing_put_listen_mixer),
  19905. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19906. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19907. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19908. msm_routing_put_listen_mixer),
  19909. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19911. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19912. msm_routing_put_listen_mixer),
  19913. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19914. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19915. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19916. msm_routing_put_listen_mixer),
  19917. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19918. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19919. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19920. msm_routing_put_listen_mixer),
  19921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19923. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19924. msm_routing_put_listen_mixer),
  19925. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19926. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19927. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19928. msm_routing_put_listen_mixer),
  19929. };
  19930. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  19931. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19932. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19933. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19934. msm_routing_put_listen_mixer),
  19935. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19936. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19937. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19938. msm_routing_put_listen_mixer),
  19939. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19940. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19941. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19942. msm_routing_put_listen_mixer),
  19943. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19944. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19945. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19946. msm_routing_put_listen_mixer),
  19947. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19948. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19949. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19950. msm_routing_put_listen_mixer),
  19951. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19952. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19953. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19954. msm_routing_put_listen_mixer),
  19955. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19956. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19957. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19958. msm_routing_put_listen_mixer),
  19959. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19960. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19961. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19962. msm_routing_put_listen_mixer),
  19963. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19964. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19965. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19966. msm_routing_put_listen_mixer),
  19967. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19968. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19969. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19970. msm_routing_put_listen_mixer),
  19971. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19972. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19973. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19974. msm_routing_put_listen_mixer),
  19975. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19976. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19977. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19978. msm_routing_put_listen_mixer),
  19979. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19980. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19981. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19982. msm_routing_put_listen_mixer),
  19983. };
  19984. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  19985. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19987. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19988. msm_routing_put_listen_mixer),
  19989. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19991. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19992. msm_routing_put_listen_mixer),
  19993. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19994. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19995. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19996. msm_routing_put_listen_mixer),
  19997. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19999. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20000. msm_routing_put_listen_mixer),
  20001. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20003. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20004. msm_routing_put_listen_mixer),
  20005. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20006. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20007. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20008. msm_routing_put_listen_mixer),
  20009. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20010. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20011. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20012. msm_routing_put_listen_mixer),
  20013. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20014. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20015. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20016. msm_routing_put_listen_mixer),
  20017. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20018. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20019. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20020. msm_routing_put_listen_mixer),
  20021. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20022. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20023. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20024. msm_routing_put_listen_mixer),
  20025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20027. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20028. msm_routing_put_listen_mixer),
  20029. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20030. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20031. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20032. msm_routing_put_listen_mixer),
  20033. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20034. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20035. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20036. msm_routing_put_listen_mixer),
  20037. };
  20038. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20039. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20041. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20042. msm_routing_put_listen_mixer),
  20043. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20045. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20046. msm_routing_put_listen_mixer),
  20047. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20048. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20049. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20050. msm_routing_put_listen_mixer),
  20051. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20052. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20053. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20054. msm_routing_put_listen_mixer),
  20055. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20056. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20057. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20058. msm_routing_put_listen_mixer),
  20059. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20060. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20061. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20062. msm_routing_put_listen_mixer),
  20063. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20064. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20065. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20066. msm_routing_put_listen_mixer),
  20067. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20068. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20069. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20070. msm_routing_put_listen_mixer),
  20071. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20072. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20073. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20074. msm_routing_put_listen_mixer),
  20075. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20076. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20077. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20078. msm_routing_put_listen_mixer),
  20079. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20081. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20082. msm_routing_put_listen_mixer),
  20083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20085. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20086. msm_routing_put_listen_mixer),
  20087. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20088. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20089. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20090. msm_routing_put_listen_mixer),
  20091. };
  20092. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20093. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20094. 0, 1, 0, msm_routing_get_switch_mixer,
  20095. msm_routing_put_switch_mixer);
  20096. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20097. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20098. 0, 1, 0, msm_routing_get_switch_mixer,
  20099. msm_routing_put_switch_mixer);
  20100. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20101. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20102. 0, 1, 0, msm_routing_get_switch_mixer,
  20103. msm_routing_put_switch_mixer);
  20104. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20105. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20106. 0, 1, 0, msm_routing_get_switch_mixer,
  20107. msm_routing_put_switch_mixer);
  20108. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20109. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20110. 0, 1, 0, msm_routing_get_switch_mixer,
  20111. msm_routing_put_switch_mixer);
  20112. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20113. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20114. 0, 1, 0, msm_routing_get_switch_mixer,
  20115. msm_routing_put_switch_mixer);
  20116. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20117. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20118. 0, 1, 0, msm_routing_get_switch_mixer,
  20119. msm_routing_put_switch_mixer);
  20120. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20121. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20122. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20123. msm_routing_put_fm_pcmrx_switch_mixer);
  20124. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20125. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20126. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20127. msm_routing_put_int0_mi2s_switch_mixer);
  20128. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20129. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20130. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20131. msm_routing_put_int4_mi2s_switch_mixer);
  20132. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20133. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20134. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20135. msm_routing_put_pri_mi2s_switch_mixer);
  20136. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20137. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20138. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20139. msm_routing_put_sec_mi2s_switch_mixer);
  20140. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20141. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20142. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20143. msm_routing_put_tert_mi2s_switch_mixer);
  20144. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20145. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20146. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20147. msm_routing_put_quat_mi2s_switch_mixer);
  20148. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20149. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20150. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20151. msm_routing_put_quin_mi2s_switch_mixer);
  20152. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20153. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20154. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20155. msm_routing_put_sen_mi2s_switch_mixer);
  20156. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20157. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20158. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20159. msm_routing_put_hfp_switch_mixer);
  20160. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20161. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20162. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20163. msm_routing_put_hfp_switch_mixer);
  20164. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20165. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20166. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20167. msm_routing_put_hfp_switch_mixer);
  20168. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20169. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20170. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20171. msm_routing_put_hfp_switch_mixer);
  20172. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20173. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20174. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20175. msm_routing_put_usb_switch_mixer);
  20176. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20177. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20178. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20179. msm_routing_a2dp_switch_mixer_put);
  20180. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20181. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20182. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20183. msm_routing_sco_switch_mixer_put);
  20184. static const struct soc_enum lsm_port_enum =
  20185. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20186. static const char * const lsm_func_text[] = {
  20187. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20188. };
  20189. static const struct soc_enum lsm_func_enum =
  20190. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20191. static const struct snd_kcontrol_new lsm_controls[] = {
  20192. /* kcontrol of lsm_function */
  20193. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20194. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20195. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20196. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20197. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20198. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20199. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20200. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20201. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20202. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20203. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20204. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20205. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20206. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20207. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20208. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20209. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20210. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20211. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20212. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20213. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20214. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20215. /* kcontrol of lsm_port */
  20216. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20217. msm_routing_lsm_port_get,
  20218. msm_routing_lsm_port_put),
  20219. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20220. msm_routing_lsm_port_get,
  20221. msm_routing_lsm_port_put),
  20222. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20223. msm_routing_lsm_port_get,
  20224. msm_routing_lsm_port_put),
  20225. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20226. msm_routing_lsm_port_get,
  20227. msm_routing_lsm_port_put),
  20228. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20229. msm_routing_lsm_port_get,
  20230. msm_routing_lsm_port_put),
  20231. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20232. msm_routing_lsm_port_get,
  20233. msm_routing_lsm_port_put),
  20234. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20235. msm_routing_lsm_port_get,
  20236. msm_routing_lsm_port_put),
  20237. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20238. msm_routing_lsm_port_get,
  20239. msm_routing_lsm_port_put),
  20240. };
  20241. static const char * const aanc_slim_0_rx_text[] = {
  20242. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20243. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20244. };
  20245. static const struct soc_enum aanc_slim_0_rx_enum =
  20246. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20247. aanc_slim_0_rx_text);
  20248. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20249. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20250. msm_routing_slim_0_rx_aanc_mux_get,
  20251. msm_routing_slim_0_rx_aanc_mux_put)
  20252. };
  20253. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20254. struct snd_ctl_elem_value *ucontrol)
  20255. {
  20256. ucontrol->value.integer.value[0] = aanc_level;
  20257. return 0;
  20258. }
  20259. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20260. struct snd_ctl_elem_value *ucontrol)
  20261. {
  20262. int ret = 0;
  20263. mutex_lock(&routing_lock);
  20264. aanc_level = ucontrol->value.integer.value[0];
  20265. pr_debug("%s: value: %ld\n",
  20266. __func__, ucontrol->value.integer.value[0]);
  20267. ret = afe_set_aanc_noise_level(aanc_level);
  20268. mutex_unlock(&routing_lock);
  20269. return ret;
  20270. }
  20271. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20272. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20273. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20274. };
  20275. static int msm_routing_get_stereo_to_custom_stereo_control(
  20276. struct snd_kcontrol *kcontrol,
  20277. struct snd_ctl_elem_value *ucontrol)
  20278. {
  20279. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20280. return 0;
  20281. }
  20282. static int msm_routing_put_stereo_to_custom_stereo_control(
  20283. struct snd_kcontrol *kcontrol,
  20284. struct snd_ctl_elem_value *ucontrol)
  20285. {
  20286. int flag = 0, i = 0, rc = 0, idx = 0;
  20287. int be_index = 0, port_id, topo_id;
  20288. unsigned int session_id = 0;
  20289. uint16_t op_FL_ip_FL_weight = 0;
  20290. uint16_t op_FL_ip_FR_weight = 0;
  20291. uint16_t op_FR_ip_FL_weight = 0;
  20292. uint16_t op_FR_ip_FR_weight = 0;
  20293. flag = ucontrol->value.integer.value[0];
  20294. pr_debug("%s E flag %d\n", __func__, flag);
  20295. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20296. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20297. __func__, is_custom_stereo_on, flag);
  20298. return 0;
  20299. }
  20300. is_custom_stereo_on = flag ? true : false;
  20301. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20302. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20303. port_id = msm_bedais[be_index].port_id;
  20304. if (!msm_bedais[be_index].active)
  20305. continue;
  20306. if ((port_id != SLIMBUS_0_RX) &&
  20307. (port_id != RT_PROXY_PORT_001_RX) &&
  20308. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20309. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20310. continue;
  20311. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20312. MSM_FRONTEND_DAI_MM_SIZE) {
  20313. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20314. LEGACY_PCM_MODE)
  20315. goto skip_send_custom_stereo;
  20316. session_id =
  20317. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20318. if (is_custom_stereo_on) {
  20319. op_FL_ip_FL_weight =
  20320. Q14_GAIN_ZERO_POINT_FIVE;
  20321. op_FL_ip_FR_weight =
  20322. Q14_GAIN_ZERO_POINT_FIVE;
  20323. op_FR_ip_FL_weight =
  20324. Q14_GAIN_ZERO_POINT_FIVE;
  20325. op_FR_ip_FR_weight =
  20326. Q14_GAIN_ZERO_POINT_FIVE;
  20327. } else {
  20328. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20329. op_FL_ip_FR_weight = 0;
  20330. op_FR_ip_FL_weight = 0;
  20331. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20332. }
  20333. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20334. unsigned long copp =
  20335. session_copp_map[i]
  20336. [SESSION_TYPE_RX][be_index];
  20337. if (!test_bit(idx, &copp))
  20338. goto skip_send_custom_stereo;
  20339. topo_id = adm_get_topology_for_port_copp_idx(
  20340. msm_bedais[be_index].port_id, idx);
  20341. if (topo_id < 0)
  20342. pr_debug("%s:Err:custom stereo topo %d",
  20343. __func__, topo_id);
  20344. pr_debug("idx %d\n", idx);
  20345. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20346. rc = msm_ds2_dap_set_custom_stereo_onoff
  20347. (msm_bedais[be_index].port_id,
  20348. idx, is_custom_stereo_on);
  20349. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20350. rc = dolby_dap_set_custom_stereo_onoff(
  20351. msm_bedais[be_index].port_id,
  20352. idx, is_custom_stereo_on);
  20353. else
  20354. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20355. (msm_bedais[be_index].port_id,
  20356. idx, session_id,
  20357. op_FL_ip_FL_weight,
  20358. op_FL_ip_FR_weight,
  20359. op_FR_ip_FL_weight,
  20360. op_FR_ip_FR_weight);
  20361. if (rc < 0)
  20362. skip_send_custom_stereo:
  20363. pr_err("%s: err setting custom stereo\n",
  20364. __func__);
  20365. }
  20366. }
  20367. }
  20368. return 0;
  20369. }
  20370. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20371. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20372. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20373. msm_routing_put_stereo_to_custom_stereo_control),
  20374. };
  20375. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20376. struct snd_ctl_elem_value *ucontrol)
  20377. {
  20378. return 0;
  20379. }
  20380. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20381. struct snd_ctl_elem_value *ucontrol)
  20382. {
  20383. int i = 0, j;
  20384. int num_app_types = ucontrol->value.integer.value[i++];
  20385. pr_debug("%s\n", __func__);
  20386. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20387. sizeof(struct msm_pcm_routing_app_type_data));
  20388. if (num_app_types > MAX_APP_TYPES) {
  20389. pr_err("%s: number of app types exceed the max supported\n",
  20390. __func__);
  20391. return -EINVAL;
  20392. }
  20393. for (j = 0; j < num_app_types; j++) {
  20394. app_type_cfg[j].app_type =
  20395. ucontrol->value.integer.value[i++];
  20396. app_type_cfg[j].sample_rate =
  20397. ucontrol->value.integer.value[i++];
  20398. app_type_cfg[j].bit_width =
  20399. ucontrol->value.integer.value[i++];
  20400. }
  20401. return 0;
  20402. }
  20403. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20404. struct snd_ctl_elem_value *ucontrol)
  20405. {
  20406. int j, fe_id, be_id, port_type;
  20407. int ret = 0;
  20408. unsigned long copp;
  20409. struct msm_pcm_routing_bdai_data *bedai;
  20410. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20411. SESSION_TYPE_RX;
  20412. int app_type = ucontrol->value.integer.value[1];
  20413. int gain = (ucontrol->value.integer.value[2] +
  20414. ucontrol->value.integer.value[3])/2;
  20415. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20416. MSM_AFE_PORT_TYPE_TX;
  20417. mutex_lock(&routing_lock);
  20418. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20419. if (is_be_dai_extproc(be_id))
  20420. continue;
  20421. bedai = &msm_bedais[be_id];
  20422. if (afe_get_port_type(bedai->port_id) != port_type)
  20423. continue;
  20424. if (!bedai->active)
  20425. continue;
  20426. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20427. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20428. continue;
  20429. if (app_type !=
  20430. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20431. continue;
  20432. copp = session_copp_map[fe_id][dir][be_id];
  20433. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20434. if (!test_bit(j, &copp))
  20435. continue;
  20436. ret |= adm_set_volume(bedai->port_id, j, gain);
  20437. }
  20438. }
  20439. }
  20440. mutex_unlock(&routing_lock);
  20441. return ret ? -EINVAL : 0;
  20442. }
  20443. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20444. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20445. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20446. msm_routing_put_app_type_cfg_control),
  20447. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20448. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20449. };
  20450. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20451. struct snd_ctl_elem_value *ucontrol)
  20452. {
  20453. int copp_idx, fe_id, be_id, port_type;
  20454. int ret = 0;
  20455. unsigned long copp;
  20456. struct msm_pcm_routing_bdai_data *bedai;
  20457. u8 *packed_params = NULL;
  20458. struct param_hdr_v3 param_hdr;
  20459. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20460. sizeof(uint32_t));
  20461. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20462. SESSION_TYPE_RX;
  20463. int app_type = ucontrol->value.integer.value[1];
  20464. int module_id = ucontrol->value.integer.value[2];
  20465. int instance_id = ucontrol->value.integer.value[3];
  20466. int param_id = ucontrol->value.integer.value[4];
  20467. int param_value = ucontrol->value.integer.value[5];
  20468. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20469. MSM_AFE_PORT_TYPE_TX;
  20470. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20471. __func__, app_type, module_id,
  20472. instance_id, param_id, param_value);
  20473. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20474. if (!packed_params)
  20475. return -ENOMEM;
  20476. memset(&param_hdr, 0, sizeof(param_hdr));
  20477. param_hdr.module_id = module_id;
  20478. param_hdr.instance_id = instance_id;
  20479. param_hdr.param_id = param_id;
  20480. param_hdr.param_size = sizeof(uint32_t);
  20481. packed_param_size = 0;
  20482. mutex_lock(&routing_lock);
  20483. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20484. if (is_be_dai_extproc(be_id))
  20485. continue;
  20486. bedai = &msm_bedais[be_id];
  20487. if (afe_get_port_type(bedai->port_id) != port_type)
  20488. continue;
  20489. if (!bedai->active)
  20490. continue;
  20491. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20492. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20493. continue;
  20494. if (app_type !=
  20495. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20496. continue;
  20497. copp = session_copp_map[fe_id][dir][be_id];
  20498. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20499. copp_idx++) {
  20500. if (!test_bit(copp_idx, &copp))
  20501. continue;
  20502. ret = q6common_pack_pp_params(packed_params,
  20503. &param_hdr,
  20504. (u8 *) &param_value,
  20505. &packed_param_size);
  20506. if (ret) {
  20507. pr_err("%s: Failed to pack params, error %d\n",
  20508. __func__, ret);
  20509. goto done;
  20510. }
  20511. ret = adm_set_pp_params(bedai->port_id,
  20512. copp_idx, NULL,
  20513. packed_params,
  20514. packed_param_size);
  20515. if (ret) {
  20516. pr_err("%s: Setting param failed with err=%d\n",
  20517. __func__, ret);
  20518. ret = -EINVAL;
  20519. goto done;
  20520. }
  20521. }
  20522. }
  20523. }
  20524. done:
  20525. mutex_unlock(&routing_lock);
  20526. kfree(packed_params);
  20527. return ret;
  20528. }
  20529. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20530. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20531. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20532. };
  20533. static int msm_routing_get_lsm_app_type_cfg_control(
  20534. struct snd_kcontrol *kcontrol,
  20535. struct snd_ctl_elem_value *ucontrol)
  20536. {
  20537. int shift = ((struct soc_multi_mixer_control *)
  20538. kcontrol->private_value)->shift;
  20539. int i = 0, j = 0;
  20540. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20541. for (j = 0; j < num_app_cfg_types; ++j) {
  20542. ucontrol->value.integer.value[++i] =
  20543. lsm_app_type_cfg[j].app_type;
  20544. ucontrol->value.integer.value[++i] =
  20545. lsm_app_type_cfg[j].sample_rate;
  20546. ucontrol->value.integer.value[++i] =
  20547. lsm_app_type_cfg[j].bit_width;
  20548. if (shift == 1)
  20549. ucontrol->value.integer.value[++i] =
  20550. lsm_app_type_cfg[j].num_out_channels;
  20551. }
  20552. return 0;
  20553. }
  20554. static int msm_routing_put_lsm_app_type_cfg_control(
  20555. struct snd_kcontrol *kcontrol,
  20556. struct snd_ctl_elem_value *ucontrol)
  20557. {
  20558. int shift = ((struct soc_multi_mixer_control *)
  20559. kcontrol->private_value)->shift;
  20560. int i = 0, j;
  20561. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20562. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20563. sizeof(struct msm_pcm_routing_app_type_data));
  20564. if (num_app_cfg_types > MAX_APP_TYPES) {
  20565. pr_err("%s: number of app types exceed the max supported\n",
  20566. __func__);
  20567. return -EINVAL;
  20568. }
  20569. for (j = 0; j < num_app_cfg_types; j++) {
  20570. lsm_app_type_cfg[j].app_type =
  20571. ucontrol->value.integer.value[i++];
  20572. lsm_app_type_cfg[j].sample_rate =
  20573. ucontrol->value.integer.value[i++];
  20574. lsm_app_type_cfg[j].bit_width =
  20575. ucontrol->value.integer.value[i++];
  20576. /* Shift of 1 indicates this is V2 mixer control */
  20577. if (shift == 1)
  20578. lsm_app_type_cfg[j].num_out_channels =
  20579. ucontrol->value.integer.value[i++];
  20580. }
  20581. return 0;
  20582. }
  20583. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20584. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20585. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20586. msm_routing_put_lsm_app_type_cfg_control),
  20587. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20588. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20589. msm_routing_put_lsm_app_type_cfg_control),
  20590. };
  20591. static int msm_routing_get_use_ds1_or_ds2_control(
  20592. struct snd_kcontrol *kcontrol,
  20593. struct snd_ctl_elem_value *ucontrol)
  20594. {
  20595. ucontrol->value.integer.value[0] = is_ds2_on;
  20596. return 0;
  20597. }
  20598. static int msm_routing_put_use_ds1_or_ds2_control(
  20599. struct snd_kcontrol *kcontrol,
  20600. struct snd_ctl_elem_value *ucontrol)
  20601. {
  20602. is_ds2_on = ucontrol->value.integer.value[0];
  20603. return 0;
  20604. }
  20605. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  20606. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  20607. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  20608. msm_routing_put_use_ds1_or_ds2_control),
  20609. };
  20610. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  20611. struct snd_ctl_elem_value *ucontrol) {
  20612. int rc = 0;
  20613. int be_idx = 0;
  20614. char *param_value;
  20615. int *update_param_value;
  20616. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  20617. struct param_hdr_v3 param_hdr;
  20618. param_value = kzalloc(param_size, GFP_KERNEL);
  20619. if (!param_value)
  20620. return -ENOMEM;
  20621. memset(&param_hdr, 0, sizeof(param_hdr));
  20622. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  20623. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  20624. break;
  20625. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  20626. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  20627. param_hdr.instance_id = INSTANCE_ID_0;
  20628. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  20629. param_hdr.param_size = param_size;
  20630. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  20631. NULL, &param_hdr, (u8 *) param_value);
  20632. if (rc) {
  20633. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  20634. kfree(param_value);
  20635. return -EINVAL;
  20636. }
  20637. update_param_value = (int *)param_value;
  20638. ucontrol->value.integer.value[0] = update_param_value[0];
  20639. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  20640. __func__, update_param_value[0]);
  20641. }
  20642. kfree(param_value);
  20643. return 0;
  20644. }
  20645. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  20646. struct snd_ctl_elem_value *ucontrol)
  20647. {
  20648. voc_session_id = ucontrol->value.integer.value[0];
  20649. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  20650. return 0;
  20651. }
  20652. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  20653. struct snd_ctl_elem_value *ucontrol)
  20654. {
  20655. ucontrol->value.integer.value[0] = voc_session_id;
  20656. return 0;
  20657. }
  20658. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  20659. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  20660. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  20661. msm_voc_session_id_put),
  20662. };
  20663. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  20664. struct snd_ctl_elem_info *uinfo)
  20665. {
  20666. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20667. uinfo->count = sizeof(struct sound_focus_param);
  20668. return 0;
  20669. }
  20670. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  20671. struct snd_ctl_elem_value *ucontrol)
  20672. {
  20673. int ret = 0;
  20674. struct sound_focus_param soundFocusData;
  20675. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  20676. sizeof(struct sound_focus_param));
  20677. ret = voc_set_sound_focus(soundFocusData);
  20678. if (ret) {
  20679. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  20680. __func__, ret);
  20681. ret = -EINVAL;
  20682. }
  20683. return ret;
  20684. }
  20685. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  20686. struct snd_ctl_elem_value *ucontrol)
  20687. {
  20688. int ret = 0;
  20689. struct sound_focus_param soundFocusData;
  20690. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  20691. ret = voc_get_sound_focus(&soundFocusData);
  20692. if (ret) {
  20693. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  20694. __func__, ret);
  20695. ret = -EINVAL;
  20696. goto done;
  20697. }
  20698. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  20699. sizeof(struct sound_focus_param));
  20700. done:
  20701. return ret;
  20702. }
  20703. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  20704. struct snd_ctl_elem_info *uinfo)
  20705. {
  20706. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20707. uinfo->count = sizeof(struct source_tracking_param);
  20708. return 0;
  20709. }
  20710. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  20711. struct snd_ctl_elem_value *ucontrol)
  20712. {
  20713. int ret = 0;
  20714. struct source_tracking_param sourceTrackingData;
  20715. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  20716. ret = voc_get_source_tracking(&sourceTrackingData);
  20717. if (ret) {
  20718. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  20719. __func__, ret);
  20720. ret = -EINVAL;
  20721. goto done;
  20722. }
  20723. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  20724. sizeof(struct source_tracking_param));
  20725. done:
  20726. return ret;
  20727. }
  20728. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  20729. int *copp_idx)
  20730. {
  20731. int i, idx, be_idx;
  20732. int ret = 0;
  20733. unsigned long copp;
  20734. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  20735. ret = q6audio_validate_port(port_id);
  20736. if (ret < 0) {
  20737. pr_err("%s: port validation failed id 0x%x ret %d\n",
  20738. __func__, port_id, ret);
  20739. ret = -EINVAL;
  20740. goto done;
  20741. }
  20742. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  20743. if (msm_bedais[be_idx].port_id == port_id)
  20744. break;
  20745. }
  20746. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  20747. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  20748. ret = -EINVAL;
  20749. goto done;
  20750. }
  20751. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  20752. MSM_FRONTEND_DAI_MAX) {
  20753. if (!(is_mm_lsm_fe_id(i) &&
  20754. route_check_fe_id_adm_support(i)))
  20755. continue;
  20756. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20757. copp = session_copp_map[i]
  20758. [session_type][be_idx];
  20759. if (test_bit(idx, &copp))
  20760. break;
  20761. }
  20762. if (idx >= MAX_COPPS_PER_PORT)
  20763. continue;
  20764. else
  20765. break;
  20766. }
  20767. if (i >= MSM_FRONTEND_DAI_MAX) {
  20768. pr_debug("%s: Invalid FE, exiting\n", __func__);
  20769. ret = -EINVAL;
  20770. goto done;
  20771. }
  20772. *copp_idx = idx;
  20773. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  20774. done:
  20775. return ret;
  20776. }
  20777. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  20778. const char *prefix, int *port_id)
  20779. {
  20780. int ret = 0;
  20781. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  20782. /*
  20783. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  20784. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  20785. * and compare the string with the backend name to derive the port id.
  20786. */
  20787. if (!strcmp(kcontrol->id.name + strlen(prefix),
  20788. "SLIMBUS_0")) {
  20789. *port_id = SLIMBUS_0_TX;
  20790. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20791. "TERT_MI2S")) {
  20792. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  20793. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20794. "INT3_MI2S")) {
  20795. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  20796. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20797. "VA_CDC_DMA_TX_0")) {
  20798. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  20799. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20800. "TX_CDC_DMA_TX_3")) {
  20801. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  20802. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20803. "QUIN_TDM_TX_0")) {
  20804. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  20805. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20806. "PRIMARY_TDM")) {
  20807. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  20808. } else {
  20809. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  20810. __func__, kcontrol->id.name);
  20811. ret = -EINVAL;
  20812. goto done;
  20813. }
  20814. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  20815. __func__, kcontrol->id.name, *port_id);
  20816. done:
  20817. return ret;
  20818. }
  20819. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  20820. struct snd_ctl_elem_value *ucontrol)
  20821. {
  20822. int ret = 0;
  20823. struct sound_focus_param soundFocusData;
  20824. int port_id, copp_idx;
  20825. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20826. "Sound Focus Audio Tx ", &port_id);
  20827. if (ret != 0) {
  20828. pr_err("%s: Error in deriving port id, err=%d\n",
  20829. __func__, ret);
  20830. ret = -EINVAL;
  20831. goto done;
  20832. }
  20833. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20834. &copp_idx);
  20835. if (ret) {
  20836. pr_err("%s: Could not get copp idx for port_id=%d\n",
  20837. __func__, port_id);
  20838. ret = -EINVAL;
  20839. goto done;
  20840. }
  20841. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  20842. sizeof(struct sound_focus_param));
  20843. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  20844. if (ret) {
  20845. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  20846. __func__, ret);
  20847. ret = -EINVAL;
  20848. goto done;
  20849. }
  20850. done:
  20851. return ret;
  20852. }
  20853. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  20854. struct snd_ctl_elem_value *ucontrol)
  20855. {
  20856. int ret = 0;
  20857. struct sound_focus_param soundFocusData;
  20858. int port_id, copp_idx;
  20859. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20860. "Sound Focus Audio Tx ", &port_id);
  20861. if (ret) {
  20862. pr_err("%s: Error in deriving port id, err=%d\n",
  20863. __func__, ret);
  20864. ret = -EINVAL;
  20865. goto done;
  20866. }
  20867. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20868. &copp_idx);
  20869. if (ret) {
  20870. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  20871. __func__, port_id);
  20872. ret = -EINVAL;
  20873. goto done;
  20874. }
  20875. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  20876. if (ret) {
  20877. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  20878. __func__, ret);
  20879. ret = -EINVAL;
  20880. goto done;
  20881. }
  20882. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  20883. sizeof(struct sound_focus_param));
  20884. done:
  20885. return ret;
  20886. }
  20887. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  20888. struct snd_ctl_elem_value *ucontrol)
  20889. {
  20890. int ret = 0;
  20891. struct source_tracking_param sourceTrackingData;
  20892. int port_id, copp_idx;
  20893. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20894. "Source Tracking Audio Tx ", &port_id);
  20895. if (ret) {
  20896. pr_err("%s: Error in deriving port id, err=%d\n",
  20897. __func__, ret);
  20898. ret = -EINVAL;
  20899. goto done;
  20900. }
  20901. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20902. &copp_idx);
  20903. if (ret) {
  20904. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  20905. __func__, port_id);
  20906. ret = -EINVAL;
  20907. goto done;
  20908. }
  20909. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  20910. if (ret) {
  20911. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  20912. __func__, ret);
  20913. ret = -EINVAL;
  20914. goto done;
  20915. }
  20916. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  20917. sizeof(struct source_tracking_param));
  20918. done:
  20919. return ret;
  20920. }
  20921. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  20922. struct snd_ctl_elem_info *uinfo)
  20923. {
  20924. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20925. uinfo->count = sizeof(struct doa_tracking_mon_param);
  20926. return 0;
  20927. }
  20928. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  20929. struct snd_ctl_elem_value *ucontrol)
  20930. {
  20931. int ret = 0;
  20932. struct doa_tracking_mon_param doa_tracking_data;
  20933. int port_id, copp_idx;
  20934. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  20935. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20936. "Doa Tracking Monitor Listen ", &port_id);
  20937. if (ret) {
  20938. pr_err("%s: Error in deriving port id, err=%d\n",
  20939. __func__, ret);
  20940. ret = -EINVAL;
  20941. goto done;
  20942. }
  20943. /*
  20944. * If copp id exists for given port id, query adm to get doa data.
  20945. * Else query afe for doa tracking params.
  20946. * This is to support in cases where LSM directly connects to
  20947. * AFE for FFNS.
  20948. */
  20949. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20950. &copp_idx);
  20951. if (!ret)
  20952. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  20953. &doa_tracking_data);
  20954. else
  20955. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  20956. if (ret) {
  20957. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  20958. __func__, ret);
  20959. ret = -EINVAL;
  20960. goto done;
  20961. }
  20962. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  20963. sizeof(struct doa_tracking_mon_param));
  20964. done:
  20965. return ret;
  20966. }
  20967. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  20968. {
  20969. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20970. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20971. .name = "Sound Focus Voice Tx SLIMBUS_0",
  20972. .info = msm_sound_focus_info,
  20973. .get = msm_voice_sound_focus_get,
  20974. .put = msm_voice_sound_focus_put,
  20975. },
  20976. {
  20977. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20978. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20979. .name = "Source Tracking Voice Tx SLIMBUS_0",
  20980. .info = msm_source_tracking_info,
  20981. .get = msm_voice_source_tracking_get,
  20982. },
  20983. {
  20984. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20985. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20986. .name = "Sound Focus Audio Tx SLIMBUS_0",
  20987. .info = msm_sound_focus_info,
  20988. .get = msm_audio_sound_focus_get,
  20989. .put = msm_audio_sound_focus_put,
  20990. },
  20991. {
  20992. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20993. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20994. .name = "Source Tracking Audio Tx SLIMBUS_0",
  20995. .info = msm_source_tracking_info,
  20996. .get = msm_audio_source_tracking_get,
  20997. },
  20998. {
  20999. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21000. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21001. .name = "Sound Focus Voice Tx TERT_MI2S",
  21002. .info = msm_sound_focus_info,
  21003. .get = msm_voice_sound_focus_get,
  21004. .put = msm_voice_sound_focus_put,
  21005. },
  21006. {
  21007. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21008. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21009. .name = "Source Tracking Voice Tx TERT_MI2S",
  21010. .info = msm_source_tracking_info,
  21011. .get = msm_voice_source_tracking_get,
  21012. },
  21013. {
  21014. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21015. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21016. .name = "Sound Focus Audio Tx TERT_MI2S",
  21017. .info = msm_sound_focus_info,
  21018. .get = msm_audio_sound_focus_get,
  21019. .put = msm_audio_sound_focus_put,
  21020. },
  21021. {
  21022. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21023. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21024. .name = "Source Tracking Audio Tx TERT_MI2S",
  21025. .info = msm_source_tracking_info,
  21026. .get = msm_audio_source_tracking_get,
  21027. },
  21028. {
  21029. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21030. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21031. .name = "Sound Focus Voice Tx INT3_MI2S",
  21032. .info = msm_sound_focus_info,
  21033. .get = msm_voice_sound_focus_get,
  21034. .put = msm_voice_sound_focus_put,
  21035. },
  21036. {
  21037. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21038. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21039. .name = "Source Tracking Voice Tx INT3_MI2S",
  21040. .info = msm_source_tracking_info,
  21041. .get = msm_voice_source_tracking_get,
  21042. },
  21043. {
  21044. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21045. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21046. .name = "Sound Focus Audio Tx INT3_MI2S",
  21047. .info = msm_sound_focus_info,
  21048. .get = msm_audio_sound_focus_get,
  21049. .put = msm_audio_sound_focus_put,
  21050. },
  21051. {
  21052. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21053. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21054. .name = "Source Tracking Audio Tx INT3_MI2S",
  21055. .info = msm_source_tracking_info,
  21056. .get = msm_audio_source_tracking_get,
  21057. },
  21058. {
  21059. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21060. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21061. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21062. .info = msm_sound_focus_info,
  21063. .get = msm_voice_sound_focus_get,
  21064. .put = msm_voice_sound_focus_put,
  21065. },
  21066. {
  21067. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21068. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21069. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21070. .info = msm_source_tracking_info,
  21071. .get = msm_voice_source_tracking_get,
  21072. },
  21073. {
  21074. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21076. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21077. .info = msm_sound_focus_info,
  21078. .get = msm_audio_sound_focus_get,
  21079. .put = msm_audio_sound_focus_put,
  21080. },
  21081. {
  21082. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21083. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21084. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21085. .info = msm_source_tracking_info,
  21086. .get = msm_audio_source_tracking_get,
  21087. },
  21088. {
  21089. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21090. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21091. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21092. .info = msm_sound_focus_info,
  21093. .get = msm_voice_sound_focus_get,
  21094. .put = msm_voice_sound_focus_put,
  21095. },
  21096. {
  21097. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21098. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21099. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21100. .info = msm_source_tracking_info,
  21101. .get = msm_voice_source_tracking_get,
  21102. },
  21103. {
  21104. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21106. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21107. .info = msm_sound_focus_info,
  21108. .get = msm_audio_sound_focus_get,
  21109. .put = msm_audio_sound_focus_put,
  21110. },
  21111. {
  21112. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21113. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21114. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21115. .info = msm_source_tracking_info,
  21116. .get = msm_audio_source_tracking_get,
  21117. },
  21118. {
  21119. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21120. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21121. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21122. .info = msm_sound_focus_info,
  21123. .get = msm_voice_sound_focus_get,
  21124. .put = msm_voice_sound_focus_put,
  21125. },
  21126. {
  21127. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21128. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21129. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21130. .info = msm_source_tracking_info,
  21131. .get = msm_voice_source_tracking_get,
  21132. },
  21133. {
  21134. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21136. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21137. .info = msm_sound_focus_info,
  21138. .get = msm_audio_sound_focus_get,
  21139. .put = msm_audio_sound_focus_put,
  21140. },
  21141. {
  21142. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21143. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21144. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21145. .info = msm_source_tracking_info,
  21146. .get = msm_audio_source_tracking_get,
  21147. },
  21148. {
  21149. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21150. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21151. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21152. .info = msm_sound_focus_info,
  21153. .get = msm_audio_sound_focus_get,
  21154. .put = msm_audio_sound_focus_put,
  21155. },
  21156. {
  21157. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21158. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21159. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21160. .info = msm_source_tracking_info,
  21161. .get = msm_audio_source_tracking_get,
  21162. },
  21163. {
  21164. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21165. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21166. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21167. .info = msm_doa_tracking_mon_info,
  21168. .get = msm_doa_tracking_mon_get,
  21169. },
  21170. };
  21171. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21172. struct snd_ctl_elem_value *ucontrol)
  21173. {
  21174. int ret = 0;
  21175. int item;
  21176. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21177. pr_debug("%s item is %d\n", __func__,
  21178. ucontrol->value.enumerated.item[0]);
  21179. mutex_lock(&routing_lock);
  21180. item = ucontrol->value.enumerated.item[0];
  21181. if (item < e->items) {
  21182. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21183. __func__, e->shift_l, e->values[item]);
  21184. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21185. e->values[item] < MSM_BACKEND_DAI_MAX)
  21186. /* Enable feedback TX path */
  21187. ret = afe_spk_prot_feed_back_cfg(
  21188. msm_bedais[e->values[item]].port_id,
  21189. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21190. else {
  21191. pr_debug("%s values are out of range item %d\n",
  21192. __func__, e->values[item]);
  21193. /* Disable feedback TX path */
  21194. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21195. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21196. else
  21197. ret = -EINVAL;
  21198. }
  21199. } else {
  21200. pr_err("%s item value is out of range item\n", __func__);
  21201. ret = -EINVAL;
  21202. }
  21203. mutex_unlock(&routing_lock);
  21204. return ret;
  21205. }
  21206. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21207. struct snd_ctl_elem_value *ucontrol)
  21208. {
  21209. int ret = 0;
  21210. int item;
  21211. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21212. pr_debug("%s item is %d\n", __func__,
  21213. ucontrol->value.enumerated.item[0]);
  21214. mutex_lock(&routing_lock);
  21215. item = ucontrol->value.enumerated.item[0];
  21216. if (item < e->items) {
  21217. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21218. __func__, e->shift_l, e->values[item]);
  21219. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21220. e->values[item] < MSM_BACKEND_DAI_MAX)
  21221. /* Enable feedback TX path */
  21222. ret = afe_spk_prot_feed_back_cfg(
  21223. msm_bedais[e->values[item]].port_id,
  21224. msm_bedais[e->shift_l].port_id,
  21225. 1, 1, 1);
  21226. else {
  21227. pr_debug("%s values are out of range item %d\n",
  21228. __func__, e->values[item]);
  21229. /* Disable feedback TX path */
  21230. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21231. ret = afe_spk_prot_feed_back_cfg(0,
  21232. 0, 0, 0, 0);
  21233. else
  21234. ret = -EINVAL;
  21235. }
  21236. } else {
  21237. pr_err("%s item value is out of range item\n", __func__);
  21238. ret = -EINVAL;
  21239. }
  21240. mutex_unlock(&routing_lock);
  21241. return ret;
  21242. }
  21243. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21244. struct snd_ctl_elem_value *ucontrol)
  21245. {
  21246. pr_debug("%s\n", __func__);
  21247. return 0;
  21248. }
  21249. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21250. struct snd_ctl_elem_value *ucontrol)
  21251. {
  21252. pr_debug("%s\n", __func__);
  21253. ucontrol->value.enumerated.item[0] = 0;
  21254. return 0;
  21255. }
  21256. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21257. "ZERO", "SLIM4_TX"
  21258. };
  21259. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21260. "ZERO", "SLIM4_TX"
  21261. };
  21262. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21263. "ZERO", "WSA_CDC_DMA_TX_0"
  21264. };
  21265. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21266. "ZERO", "WSA_CDC_DMA_TX_0"
  21267. };
  21268. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21269. "ZERO", "SENARY_TX"
  21270. };
  21271. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21272. "ZERO", "INT5_MI2S_TX"
  21273. };
  21274. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21275. "ZERO", "INT5_MI2S_TX"
  21276. };
  21277. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21278. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21279. };
  21280. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21281. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21282. };
  21283. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21284. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21285. };
  21286. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21287. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21288. };
  21289. static const int mi2s_rx_vi_fb_tx_value[] = {
  21290. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21291. };
  21292. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21293. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21294. };
  21295. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21296. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21297. };
  21298. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21299. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21300. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21301. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21302. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21303. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21304. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21305. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21306. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21307. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21308. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21309. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21310. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21311. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21312. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21313. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21314. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21315. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21316. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21317. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21318. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21319. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21320. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21321. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21322. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21323. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21324. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21325. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21326. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21327. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21328. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21329. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21330. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21331. spkr_prot_put_vi_lch_port);
  21332. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21333. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21334. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21335. spkr_prot_put_vi_rch_port);
  21336. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21337. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21338. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21339. spkr_prot_put_vi_lch_port);
  21340. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21341. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21342. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21343. spkr_prot_put_vi_rch_port);
  21344. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21345. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21346. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21347. spkr_prot_put_vi_lch_port);
  21348. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21349. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21350. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21351. spkr_prot_put_vi_lch_port);
  21352. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21353. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21354. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21355. spkr_prot_put_vi_rch_port);
  21356. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21357. /* Frontend AIF */
  21358. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21359. * Stream name must contains substring of front-end dai name
  21360. */
  21361. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21362. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21363. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21364. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21365. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21366. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21367. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21368. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21369. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21370. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21371. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21372. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21373. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21374. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21375. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21376. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21377. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21378. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21379. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21380. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21381. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21382. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21383. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21384. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21385. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21386. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  21387. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  21388. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  21389. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  21390. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  21391. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  21392. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  21393. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  21394. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  21395. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  21396. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  21397. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  21398. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  21399. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  21400. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  21401. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  21402. "VoiceMMode1 Playback", 0, 0, 0, 0),
  21403. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  21404. "VoiceMMode1 Capture", 0, 0, 0, 0),
  21405. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  21406. "VoiceMMode2 Playback", 0, 0, 0, 0),
  21407. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  21408. "VoiceMMode2 Capture", 0, 0, 0, 0),
  21409. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  21410. 0, 0, 0, 0),
  21411. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21412. 0, 0, 0, 0),
  21413. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21414. 0, 0, 0, 0),
  21415. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21416. 0, 0, 0, 0),
  21417. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21418. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21419. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21420. 0, 0, 0, 0),
  21421. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21422. 0, 0, 0, 0),
  21423. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21424. 0, 0, 0, 0),
  21425. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21426. 0, 0, 0, 0),
  21427. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21428. 0, 0, 0, 0),
  21429. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21430. 0, 0, 0, 0),
  21431. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21432. 0, 0, 0, 0),
  21433. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21434. 0, 0, 0, 0),
  21435. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21436. 0, 0, 0, 0),
  21437. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21438. 0, 0, 0, 0),
  21439. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21440. 0, 0, 0, 0),
  21441. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21442. 0, 0, 0, 0),
  21443. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21444. 0, 0, 0, 0),
  21445. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21446. 0, 0, 0, 0),
  21447. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21448. 0, 0, 0, 0),
  21449. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21450. 0, 0, 0, 0),
  21451. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21452. 0, 0, 0, 0),
  21453. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21454. 0, 0, 0, 0),
  21455. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21456. 0, 0, 0, 0),
  21457. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21458. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21459. 0, 0, 0, 0),
  21460. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21461. "INT0 MI2S_RX Hostless Playback",
  21462. 0, 0, 0, 0),
  21463. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21464. "INT4 MI2S_RX Hostless Playback",
  21465. 0, 0, 0, 0),
  21466. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21467. "Primary MI2S_RX Hostless Playback",
  21468. 0, 0, 0, 0),
  21469. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21470. "Secondary MI2S_RX Hostless Playback",
  21471. 0, 0, 0, 0),
  21472. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21473. "Tertiary MI2S_RX Hostless Playback",
  21474. 0, 0, 0, 0),
  21475. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21476. "Quaternary MI2S_RX Hostless Playback",
  21477. 0, 0, 0, 0),
  21478. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21479. "Quinary MI2S_RX Hostless Playback",
  21480. 0, 0, 0, 0),
  21481. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21482. "Senary MI2S_RX Hostless Playback",
  21483. 0, 0, 0, 0),
  21484. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21485. 0, 0, 0, 0),
  21486. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21487. 0, 0, 0, 0),
  21488. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21489. 0, 0, 0, 0),
  21490. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21491. 0, 0, 0, 0),
  21492. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21493. 0, 0, 0, 0),
  21494. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21495. "INT3 MI2S_TX Hostless Capture",
  21496. 0, 0, 0, 0),
  21497. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21498. "Tertiary MI2S_TX Hostless Capture",
  21499. 0, 0, 0, 0),
  21500. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21501. "Secondary MI2S_TX Hostless Capture",
  21502. 0, 0, 0, 0),
  21503. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21504. "Primary MI2S_TX Hostless Capture",
  21505. 0, 0, 0, 0),
  21506. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21507. 0, 0, 0, 0),
  21508. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21509. 0, 0, 0, 0),
  21510. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21511. "Quaternary MI2S_TX Hostless Capture",
  21512. 0, 0, 0, 0),
  21513. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21514. "Quinary MI2S_TX Hostless Capture",
  21515. 0, 0, 0, 0),
  21516. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21517. "Senary MI2S_TX Hostless Capture",
  21518. 0, 0, 0, 0),
  21519. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21520. "Primary TDM0 Hostless Playback",
  21521. 0, 0, 0, 0),
  21522. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21523. "Primary TDM0 Hostless Capture",
  21524. 0, 0, 0, 0),
  21525. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21526. "Primary TDM1 Hostless Playback",
  21527. 0, 0, 0, 0),
  21528. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21529. "Primary TDM1 Hostless Capture",
  21530. 0, 0, 0, 0),
  21531. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21532. "Primary TDM2 Hostless Playback",
  21533. 0, 0, 0, 0),
  21534. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21535. "Primary TDM2 Hostless Capture",
  21536. 0, 0, 0, 0),
  21537. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21538. "Primary TDM3 Hostless Playback",
  21539. 0, 0, 0, 0),
  21540. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21541. "Primary TDM3 Hostless Capture",
  21542. 0, 0, 0, 0),
  21543. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21544. "Primary TDM4 Hostless Playback",
  21545. 0, 0, 0, 0),
  21546. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21547. "Primary TDM4 Hostless Capture",
  21548. 0, 0, 0, 0),
  21549. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21550. "Primary TDM5 Hostless Playback",
  21551. 0, 0, 0, 0),
  21552. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21553. "Primary TDM5 Hostless Capture",
  21554. 0, 0, 0, 0),
  21555. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21556. "Primary TDM6 Hostless Playback",
  21557. 0, 0, 0, 0),
  21558. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21559. "Primary TDM6 Hostless Capture",
  21560. 0, 0, 0, 0),
  21561. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21562. "Primary TDM7 Hostless Playback",
  21563. 0, 0, 0, 0),
  21564. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21565. "Primary TDM7 Hostless Capture",
  21566. 0, 0, 0, 0),
  21567. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21568. "Secondary TDM0 Hostless Playback",
  21569. 0, 0, 0, 0),
  21570. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21571. "Secondary TDM0 Hostless Capture",
  21572. 0, 0, 0, 0),
  21573. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21574. "Secondary TDM1 Hostless Playback",
  21575. 0, 0, 0, 0),
  21576. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  21577. "Secondary TDM1 Hostless Capture",
  21578. 0, 0, 0, 0),
  21579. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  21580. "Secondary TDM2 Hostless Playback",
  21581. 0, 0, 0, 0),
  21582. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  21583. "Secondary TDM2 Hostless Capture",
  21584. 0, 0, 0, 0),
  21585. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  21586. "Secondary TDM3 Hostless Playback",
  21587. 0, 0, 0, 0),
  21588. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  21589. "Secondary TDM3 Hostless Capture",
  21590. 0, 0, 0, 0),
  21591. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  21592. "Secondary TDM4 Hostless Playback",
  21593. 0, 0, 0, 0),
  21594. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  21595. "Secondary TDM4 Hostless Capture",
  21596. 0, 0, 0, 0),
  21597. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  21598. "Secondary TDM5 Hostless Playback",
  21599. 0, 0, 0, 0),
  21600. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  21601. "Secondary TDM5 Hostless Capture",
  21602. 0, 0, 0, 0),
  21603. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  21604. "Secondary TDM6 Hostless Playback",
  21605. 0, 0, 0, 0),
  21606. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  21607. "Secondary TDM6 Hostless Capture",
  21608. 0, 0, 0, 0),
  21609. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  21610. "Secondary TDM7 Hostless Playback",
  21611. 0, 0, 0, 0),
  21612. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  21613. "Secondary TDM7 Hostless Capture",
  21614. 0, 0, 0, 0),
  21615. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  21616. "Tertiary TDM0 Hostless Playback",
  21617. 0, 0, 0, 0),
  21618. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  21619. "Tertiary TDM0 Hostless Capture",
  21620. 0, 0, 0, 0),
  21621. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  21622. "Tertiary TDM1 Hostless Playback",
  21623. 0, 0, 0, 0),
  21624. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  21625. "Tertiary TDM1 Hostless Capture",
  21626. 0, 0, 0, 0),
  21627. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  21628. "Tertiary TDM2 Hostless Playback",
  21629. 0, 0, 0, 0),
  21630. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  21631. "Tertiary TDM2 Hostless Capture",
  21632. 0, 0, 0, 0),
  21633. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  21634. "Tertiary TDM3 Hostless Playback",
  21635. 0, 0, 0, 0),
  21636. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  21637. "Tertiary TDM3 Hostless Capture",
  21638. 0, 0, 0, 0),
  21639. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  21640. "Tertiary TDM4 Hostless Playback",
  21641. 0, 0, 0, 0),
  21642. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  21643. "Tertiary TDM4 Hostless Capture",
  21644. 0, 0, 0, 0),
  21645. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  21646. "Tertiary TDM5 Hostless Playback",
  21647. 0, 0, 0, 0),
  21648. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  21649. "Tertiary TDM5 Hostless Capture",
  21650. 0, 0, 0, 0),
  21651. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  21652. "Tertiary TDM6 Hostless Playback",
  21653. 0, 0, 0, 0),
  21654. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  21655. "Tertiary TDM6 Hostless Capture",
  21656. 0, 0, 0, 0),
  21657. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  21658. "Tertiary TDM7 Hostless Playback",
  21659. 0, 0, 0, 0),
  21660. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  21661. "Tertiary TDM7 Hostless Capture",
  21662. 0, 0, 0, 0),
  21663. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  21664. "Quaternary TDM0 Hostless Playback",
  21665. 0, 0, 0, 0),
  21666. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  21667. "Quaternary TDM0 Hostless Capture",
  21668. 0, 0, 0, 0),
  21669. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  21670. "Quaternary TDM1 Hostless Playback",
  21671. 0, 0, 0, 0),
  21672. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  21673. "Quaternary TDM1 Hostless Capture",
  21674. 0, 0, 0, 0),
  21675. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  21676. "Quaternary TDM2 Hostless Playback",
  21677. 0, 0, 0, 0),
  21678. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  21679. "Quaternary TDM2 Hostless Capture",
  21680. 0, 0, 0, 0),
  21681. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  21682. "Quaternary TDM3 Hostless Playback",
  21683. 0, 0, 0, 0),
  21684. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  21685. "Quaternary TDM3 Hostless Capture",
  21686. 0, 0, 0, 0),
  21687. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  21688. "Quaternary TDM4 Hostless Playback",
  21689. 0, 0, 0, 0),
  21690. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  21691. "Quaternary TDM4 Hostless Capture",
  21692. 0, 0, 0, 0),
  21693. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  21694. "Quaternary TDM5 Hostless Playback",
  21695. 0, 0, 0, 0),
  21696. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  21697. "Quaternary TDM5 Hostless Capture",
  21698. 0, 0, 0, 0),
  21699. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  21700. "Quaternary TDM6 Hostless Playback",
  21701. 0, 0, 0, 0),
  21702. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  21703. "Quaternary TDM6 Hostless Capture",
  21704. 0, 0, 0, 0),
  21705. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  21706. "Quaternary TDM7 Hostless Playback",
  21707. 0, 0, 0, 0),
  21708. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  21709. "Quaternary TDM7 Hostless Capture",
  21710. 0, 0, 0, 0),
  21711. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  21712. "Quinary TDM0 Hostless Playback",
  21713. 0, 0, 0, 0),
  21714. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  21715. "Quinary TDM0 Hostless Capture",
  21716. 0, 0, 0, 0),
  21717. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  21718. "Quinary TDM1 Hostless Playback",
  21719. 0, 0, 0, 0),
  21720. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  21721. "Quinary TDM1 Hostless Capture",
  21722. 0, 0, 0, 0),
  21723. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  21724. "Quinary TDM2 Hostless Playback",
  21725. 0, 0, 0, 0),
  21726. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  21727. "Quinary TDM2 Hostless Capture",
  21728. 0, 0, 0, 0),
  21729. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  21730. "Quinary TDM3 Hostless Playback",
  21731. 0, 0, 0, 0),
  21732. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  21733. "Quinary TDM3 Hostless Capture",
  21734. 0, 0, 0, 0),
  21735. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  21736. "Quinary TDM4 Hostless Playback",
  21737. 0, 0, 0, 0),
  21738. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  21739. "Quinary TDM4 Hostless Capture",
  21740. 0, 0, 0, 0),
  21741. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  21742. "Quinary TDM5 Hostless Playback",
  21743. 0, 0, 0, 0),
  21744. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  21745. "Quinary TDM5 Hostless Capture",
  21746. 0, 0, 0, 0),
  21747. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  21748. "Quinary TDM6 Hostless Playback",
  21749. 0, 0, 0, 0),
  21750. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  21751. "Quinary TDM6 Hostless Capture",
  21752. 0, 0, 0, 0),
  21753. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  21754. "Quinary TDM7 Hostless Playback",
  21755. 0, 0, 0, 0),
  21756. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  21757. "Quinary TDM7 Hostless Capture",
  21758. 0, 0, 0, 0),
  21759. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  21760. "Senary TDM0 Hostless Playback",
  21761. 0, 0, 0, 0),
  21762. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  21763. "Senary TDM0 Hostless Capture",
  21764. 0, 0, 0, 0),
  21765. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  21766. "Senary TDM1 Hostless Playback",
  21767. 0, 0, 0, 0),
  21768. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  21769. "Senary TDM1 Hostless Capture",
  21770. 0, 0, 0, 0),
  21771. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  21772. "Senary TDM2 Hostless Playback",
  21773. 0, 0, 0, 0),
  21774. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  21775. "Senary TDM2 Hostless Capture",
  21776. 0, 0, 0, 0),
  21777. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  21778. "Senary TDM3 Hostless Playback",
  21779. 0, 0, 0, 0),
  21780. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  21781. "Senary TDM3 Hostless Capture",
  21782. 0, 0, 0, 0),
  21783. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  21784. "Senary TDM4 Hostless Playback",
  21785. 0, 0, 0, 0),
  21786. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  21787. "Senary TDM4 Hostless Capture",
  21788. 0, 0, 0, 0),
  21789. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  21790. "Senary TDM5 Hostless Playback",
  21791. 0, 0, 0, 0),
  21792. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  21793. "Senary TDM5 Hostless Capture",
  21794. 0, 0, 0, 0),
  21795. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  21796. "Senary TDM6 Hostless Playback",
  21797. 0, 0, 0, 0),
  21798. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  21799. "Senary TDM6 Hostless Capture",
  21800. 0, 0, 0, 0),
  21801. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  21802. "Senary TDM7 Hostless Playback",
  21803. 0, 0, 0, 0),
  21804. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  21805. "Senary TDM7 Hostless Capture",
  21806. 0, 0, 0, 0),
  21807. /* LSM */
  21808. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  21809. 0, 0, 0, 0),
  21810. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  21811. 0, 0, 0, 0),
  21812. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  21813. 0, 0, 0, 0),
  21814. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  21815. 0, 0, 0, 0),
  21816. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  21817. 0, 0, 0, 0),
  21818. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  21819. 0, 0, 0, 0),
  21820. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  21821. 0, 0, 0, 0),
  21822. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  21823. 0, 0, 0, 0),
  21824. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  21825. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  21826. /* Backend AIF */
  21827. /* Stream name equals to backend dai link stream name */
  21828. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  21829. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  21830. 0, 0, 0, 0),
  21831. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  21832. 0, 0, 0, 0),
  21833. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  21834. 0, 0, 0, 0),
  21835. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  21836. 0, 0, 0, 0),
  21837. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  21838. 0, 0, 0, 0),
  21839. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  21840. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  21841. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  21842. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  21843. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  21844. 0, 0, 0, 0),
  21845. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  21846. 0, 0, 0, 0),
  21847. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  21848. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  21849. 0, 0, 0, 0),
  21850. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  21851. 0, 0, 0, 0),
  21852. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  21853. 0, 0, 0, 0),
  21854. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  21855. "Secondary MI2S Playback SD1",
  21856. 0, 0, 0, 0),
  21857. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  21858. 0, 0, 0, 0),
  21859. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  21860. 0, 0, 0, 0),
  21861. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  21862. 0, 0, 0, 0),
  21863. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  21864. 0, 0, 0, 0),
  21865. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  21866. 0, 0, 0, 0),
  21867. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  21868. 0, 0, 0, 0),
  21869. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  21870. 0, 0, 0, 0),
  21871. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  21872. 0, 0, 0, 0),
  21873. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  21874. 0, 0, 0, 0),
  21875. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  21876. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  21877. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  21878. 0, 0, 0, 0),
  21879. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  21880. 0, 0, 0, 0),
  21881. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  21882. 0, 0, 0, 0),
  21883. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  21884. 0, 0, 0, 0),
  21885. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  21886. 0, 0, 0, 0),
  21887. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  21888. 0, 0, 0, 0),
  21889. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  21890. 0, 0, 0, 0),
  21891. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  21892. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  21893. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  21894. 0, 0, 0, 0),
  21895. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  21896. 0, 0, 0, 0),
  21897. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  21898. 0, 0, 0, 0),
  21899. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  21900. 0, 0, 0, 0),
  21901. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  21902. 0, 0, 0, 0),
  21903. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  21904. 0, 0, 0, 0),
  21905. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  21906. 0, 0, 0, 0),
  21907. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  21908. 0, 0, 0, 0),
  21909. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  21910. 0, 0, 0, 0),
  21911. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  21912. 0, 0, 0, 0),
  21913. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  21914. 0, 0, 0, 0),
  21915. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  21916. 0, 0, 0, 0),
  21917. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  21918. 0, 0, 0, 0),
  21919. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  21920. 0, 0, 0, 0),
  21921. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  21922. 0, 0, 0, 0),
  21923. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  21924. 0, 0, 0, 0),
  21925. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  21926. 0, 0, 0, 0),
  21927. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  21928. 0, 0, 0, 0),
  21929. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  21930. 0, 0, 0, 0),
  21931. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  21932. 0, 0, 0, 0),
  21933. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  21934. 0, 0, 0, 0),
  21935. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  21936. 0, 0, 0, 0),
  21937. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  21938. 0, 0, 0, 0),
  21939. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  21940. 0, 0, 0, 0),
  21941. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  21942. 0, 0, 0, 0),
  21943. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  21944. 0, 0, 0, 0),
  21945. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  21946. 0, 0, 0, 0),
  21947. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  21948. 0, 0, 0, 0),
  21949. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  21950. 0, 0, 0, 0),
  21951. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  21952. 0, 0, 0, 0),
  21953. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  21954. 0, 0, 0, 0),
  21955. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  21956. 0, 0, 0, 0),
  21957. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  21958. 0, 0, 0, 0),
  21959. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  21960. 0, 0, 0, 0),
  21961. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  21962. 0, 0, 0, 0),
  21963. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  21964. 0, 0, 0, 0),
  21965. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  21966. 0, 0, 0, 0),
  21967. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  21968. 0, 0, 0, 0),
  21969. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  21970. 0, 0, 0, 0),
  21971. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  21972. 0, 0, 0, 0),
  21973. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  21974. 0, 0, 0, 0),
  21975. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  21976. 0, 0, 0, 0),
  21977. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  21978. 0, 0, 0, 0),
  21979. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  21980. 0, 0, 0, 0),
  21981. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  21982. 0, 0, 0, 0),
  21983. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  21984. 0, 0, 0, 0),
  21985. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  21986. 0, 0, 0, 0),
  21987. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  21988. 0, 0, 0, 0),
  21989. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  21990. 0, 0, 0, 0),
  21991. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  21992. 0, 0, 0, 0),
  21993. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  21994. 0, 0, 0, 0),
  21995. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  21996. 0, 0, 0, 0),
  21997. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  21998. 0, 0, 0, 0),
  21999. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22000. 0, 0, 0, 0),
  22001. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22002. 0, 0, 0, 0),
  22003. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22004. 0, 0, 0, 0),
  22005. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22006. 0, 0, 0, 0),
  22007. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22008. 0, 0, 0, 0),
  22009. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22010. 0, 0, 0, 0),
  22011. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22012. 0, 0, 0, 0),
  22013. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22014. 0, 0, 0, 0),
  22015. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22016. 0, 0, 0, 0),
  22017. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22018. 0, 0, 0, 0),
  22019. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22020. 0, 0, 0, 0),
  22021. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22022. 0, 0, 0, 0),
  22023. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22024. 0, 0, 0, 0),
  22025. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22026. 0, 0, 0, 0),
  22027. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22028. 0, 0, 0, 0),
  22029. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22030. 0, 0, 0, 0),
  22031. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22032. 0, 0, 0, 0),
  22033. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22034. 0, 0, 0, 0),
  22035. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22036. 0, 0, 0, 0),
  22037. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22038. 0, 0, 0, 0),
  22039. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22040. 0, 0, 0, 0),
  22041. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22042. 0, 0, 0, 0),
  22043. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22044. 0, 0, 0, 0),
  22045. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22046. 0, 0, 0, 0),
  22047. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22048. 0, 0, 0, 0),
  22049. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22050. 0, 0, 0, 0),
  22051. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22052. 0, 0, 0, 0),
  22053. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22054. 0, 0, 0, 0),
  22055. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22056. 0, 0, 0, 0),
  22057. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22058. 0, 0, 0, 0),
  22059. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22060. 0, 0, 0, 0),
  22061. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22062. 0, 0, 0, 0),
  22063. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22064. 0, 0, 0, 0),
  22065. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22066. 0, 0, 0, 0),
  22067. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22068. 0, 0, 0, 0),
  22069. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22070. 0, 0, 0, 0),
  22071. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22072. 0, 0, 0, 0),
  22073. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22074. 0, 0, 0, 0),
  22075. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22076. 0, 0, 0, 0),
  22077. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22078. 0, 0, 0, 0),
  22079. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22080. 0, 0, 0, 0),
  22081. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22082. 0, 0, 0, 0),
  22083. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22084. 0, 0, 0, 0),
  22085. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22086. 0, 0, 0, 0),
  22087. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22088. 0, 0, 0, 0),
  22089. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22090. 0, 0, 0, 0),
  22091. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22092. 0, 0, 0, 0),
  22093. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22094. 0, 0, 0, 0),
  22095. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22096. 0, 0, 0, 0),
  22097. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22098. 0, 0, 0, 0),
  22099. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22100. 0, 0, 0, 0),
  22101. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22102. 0, 0, 0, 0),
  22103. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22104. 0, 0, 0, 0),
  22105. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22106. 0, 0, 0, 0),
  22107. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22108. 0, 0, 0, 0),
  22109. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22110. 0, 0, 0, 0),
  22111. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22112. 0, 0, 0, 0),
  22113. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22114. 0, 0, 0, 0),
  22115. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22116. 0, 0, 0, 0),
  22117. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22118. 0, 0, 0, 0),
  22119. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22120. 0, 0, 0, 0),
  22121. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22122. 0, 0, 0, 0),
  22123. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22124. 0, 0, 0, 0),
  22125. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22126. 0, 0, 0, 0),
  22127. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22128. 0, 0, 0, 0),
  22129. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22130. 0, 0, 0, 0),
  22131. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22132. 0, 0, 0, 0),
  22133. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22134. 0, 0, 0, 0),
  22135. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22136. 0, 0, 0, 0),
  22137. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22138. 0, 0, 0, 0),
  22139. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22140. 0, 0, 0, 0),
  22141. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22142. 0, 0, 0, 0),
  22143. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22144. 0, 0, 0, 0),
  22145. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22146. 0, 0, 0, 0),
  22147. /* incall */
  22148. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22149. 0, 0, 0, 0),
  22150. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22151. 0, 0, 0, 0),
  22152. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22153. 0, 0, 0, 0),
  22154. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22155. 0, 0, 0, 0),
  22156. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22157. 0, 0, 0, 0),
  22158. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22159. 0, 0, 0, 0),
  22160. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22161. 0, 0, 0, 0),
  22162. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22163. 0, 0, 0, 0),
  22164. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22165. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22166. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22167. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22168. 0, 0, 0, 0),
  22169. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22170. 0, 0, 0, 0),
  22171. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22172. 0, 0, 0, 0),
  22173. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22174. 0, 0, 0, 0),
  22175. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22176. 0, 0, 0, 0),
  22177. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22178. 0, 0, 0, 0),
  22179. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22180. 0, 0, 0, 0),
  22181. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22182. 0, 0, 0, 0),
  22183. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22184. 0, 0, 0, 0),
  22185. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22186. 0, 0, 0, 0),
  22187. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22188. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22189. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22190. 0, 0, 0, 0),
  22191. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22192. 0, 0, 0, 0),
  22193. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22194. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22195. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22196. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22197. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22198. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22199. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22200. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22201. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22202. /* In- call recording */
  22203. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22204. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22205. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22206. 0, 0, 0, 0),
  22207. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22208. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22209. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22210. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22211. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22212. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22213. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22214. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22215. /* Switch Definitions */
  22216. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22217. &slim_fm_switch_mixer_controls),
  22218. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22219. &slim1_fm_switch_mixer_controls),
  22220. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22221. &slim3_fm_switch_mixer_controls),
  22222. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22223. &slim4_fm_switch_mixer_controls),
  22224. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22225. &slim6_fm_switch_mixer_controls),
  22226. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22227. &pcm_rx_switch_mixer_controls),
  22228. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22229. &int0_mi2s_rx_switch_mixer_controls),
  22230. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22231. &int4_mi2s_rx_switch_mixer_controls),
  22232. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22233. &pri_mi2s_rx_switch_mixer_controls),
  22234. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22235. &sec_mi2s_rx_switch_mixer_controls),
  22236. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22237. &tert_mi2s_rx_switch_mixer_controls),
  22238. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22239. &quat_mi2s_rx_switch_mixer_controls),
  22240. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22241. &quin_mi2s_rx_switch_mixer_controls),
  22242. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22243. &sco_slim7_switch_mixer_controls),
  22244. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22245. &sen_mi2s_rx_switch_mixer_controls),
  22246. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22247. &hfp_pri_aux_switch_mixer_controls),
  22248. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22249. &hfp_aux_switch_mixer_controls),
  22250. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22251. &hfp_int_switch_mixer_controls),
  22252. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22253. &hfp_slim7_switch_mixer_controls),
  22254. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22255. &usb_switch_mixer_controls),
  22256. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22257. &a2dp_slim7_switch_mixer_controls),
  22258. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22259. &cdc_dma_wsa_switch_mixer_controls),
  22260. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22261. &cdc_dma_rx_switch_mixer_controls),
  22262. /* Mixer definitions */
  22263. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22264. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22265. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22266. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22267. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22268. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22269. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22270. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22271. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22272. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22273. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22274. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22275. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22276. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22277. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22278. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22279. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22280. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22281. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22282. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22283. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22284. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22285. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22286. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22287. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22288. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22289. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22290. quaternary_mi2s_rx_mixer_controls,
  22291. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22292. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22293. tertiary_mi2s_rx_mixer_controls,
  22294. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22295. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22296. secondary_mi2s_rx_mixer_controls,
  22297. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22298. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22299. secondary_mi2s_rx2_mixer_controls,
  22300. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22301. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22302. primary_mi2s_rx_mixer_controls,
  22303. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22304. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22305. int0_mi2s_rx_mixer_controls,
  22306. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22307. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22308. int4_mi2s_rx_mixer_controls,
  22309. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22310. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22311. quinary_mi2s_rx_mixer_controls,
  22312. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22313. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22314. senary_mi2s_rx_mixer_controls,
  22315. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22316. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22317. pri_tdm_rx_0_mixer_controls,
  22318. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22319. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22320. pri_tdm_rx_1_mixer_controls,
  22321. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22322. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22323. pri_tdm_rx_2_mixer_controls,
  22324. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22325. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22326. pri_tdm_rx_3_mixer_controls,
  22327. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22328. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22329. pri_tdm_tx_0_mixer_controls,
  22330. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22331. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22332. sec_tdm_rx_0_mixer_controls,
  22333. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22334. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22335. sec_tdm_rx_1_mixer_controls,
  22336. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22337. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22338. sec_tdm_rx_2_mixer_controls,
  22339. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22340. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22341. sec_tdm_rx_3_mixer_controls,
  22342. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22343. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22344. sec_tdm_tx_0_mixer_controls,
  22345. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22346. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22347. tert_tdm_rx_0_mixer_controls,
  22348. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22349. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22350. tert_tdm_tx_0_mixer_controls,
  22351. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22352. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22353. tert_tdm_rx_1_mixer_controls,
  22354. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22355. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22356. tert_tdm_rx_2_mixer_controls,
  22357. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22358. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22359. tert_tdm_rx_3_mixer_controls,
  22360. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22361. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22362. tert_tdm_rx_4_mixer_controls,
  22363. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22364. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22365. quat_tdm_rx_0_mixer_controls,
  22366. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22367. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22368. quat_tdm_tx_0_mixer_controls,
  22369. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22370. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22371. quat_tdm_rx_1_mixer_controls,
  22372. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22373. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22374. quat_tdm_rx_2_mixer_controls,
  22375. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22376. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22377. quat_tdm_rx_3_mixer_controls,
  22378. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22379. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22380. quin_tdm_rx_0_mixer_controls,
  22381. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  22382. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22383. quin_tdm_tx_0_mixer_controls,
  22384. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  22385. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22386. quin_tdm_rx_1_mixer_controls,
  22387. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  22388. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22389. quin_tdm_rx_2_mixer_controls,
  22390. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  22391. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22392. quin_tdm_rx_3_mixer_controls,
  22393. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  22394. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22395. sen_tdm_tx_0_mixer_controls,
  22396. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  22397. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22398. sen_tdm_rx_0_mixer_controls,
  22399. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  22400. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22401. sen_tdm_rx_1_mixer_controls,
  22402. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  22403. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22404. sen_tdm_rx_2_mixer_controls,
  22405. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  22406. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22407. sen_tdm_rx_3_mixer_controls,
  22408. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  22409. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22410. wsa_cdc_dma_rx_0_mixer_controls,
  22411. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22412. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22413. wsa_cdc_dma_rx_1_mixer_controls,
  22414. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22415. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22416. rx_cdc_dma_rx_0_mixer_controls,
  22417. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22418. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22419. rx_cdc_dma_rx_1_mixer_controls,
  22420. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22421. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22422. rx_cdc_dma_rx_2_mixer_controls,
  22423. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22424. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22425. rx_cdc_dma_rx_3_mixer_controls,
  22426. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22427. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22428. rx_cdc_dma_rx_4_mixer_controls,
  22429. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22430. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22431. rx_cdc_dma_rx_5_mixer_controls,
  22432. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22433. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22434. rx_cdc_dma_rx_6_mixer_controls,
  22435. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22436. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22437. rx_cdc_dma_rx_7_mixer_controls,
  22438. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22439. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22440. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22441. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22442. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22443. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22444. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22445. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22446. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22447. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22448. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22449. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22450. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22451. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22452. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22453. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22454. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22455. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22456. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22457. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22458. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22459. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22460. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22461. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22462. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22463. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22464. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22465. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22466. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22467. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22468. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22469. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22470. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22471. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22472. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22473. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22474. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22475. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  22476. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  22477. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22478. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22479. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22480. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22481. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22482. tert_auxpcm_rx_mixer_controls,
  22483. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22484. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22485. quat_auxpcm_rx_mixer_controls,
  22486. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22487. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22488. quin_auxpcm_rx_mixer_controls,
  22489. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22490. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22491. sen_auxpcm_rx_mixer_controls,
  22492. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22493. /* incall */
  22494. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22495. incall_music_delivery_mixer_controls,
  22496. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22497. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22498. incall_music2_delivery_mixer_controls,
  22499. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22500. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22501. slimbus_4_rx_mixer_controls,
  22502. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22503. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22504. slimbus_6_rx_mixer_controls,
  22505. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22506. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22507. usb_audio_rx_mixer_controls,
  22508. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22509. /* Voice Mixer */
  22510. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22511. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22512. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22513. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22514. SND_SOC_NOPM, 0, 0,
  22515. sec_i2s_rx_voice_mixer_controls,
  22516. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22517. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22518. SND_SOC_NOPM, 0, 0,
  22519. sec_mi2s_rx_voice_mixer_controls,
  22520. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22521. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22522. SND_SOC_NOPM, 0, 0,
  22523. slimbus_rx_voice_mixer_controls,
  22524. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22525. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22526. SND_SOC_NOPM, 0, 0,
  22527. bt_sco_rx_voice_mixer_controls,
  22528. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22529. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22530. SND_SOC_NOPM, 0, 0,
  22531. afe_pcm_rx_voice_mixer_controls,
  22532. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22533. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22534. SND_SOC_NOPM, 0, 0,
  22535. aux_pcm_rx_voice_mixer_controls,
  22536. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22537. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22538. SND_SOC_NOPM, 0, 0,
  22539. sec_aux_pcm_rx_voice_mixer_controls,
  22540. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22541. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22542. SND_SOC_NOPM, 0, 0,
  22543. tert_aux_pcm_rx_voice_mixer_controls,
  22544. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22545. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22546. SND_SOC_NOPM, 0, 0,
  22547. quat_aux_pcm_rx_voice_mixer_controls,
  22548. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22549. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22550. SND_SOC_NOPM, 0, 0,
  22551. quin_aux_pcm_rx_voice_mixer_controls,
  22552. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22553. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22554. SND_SOC_NOPM, 0, 0,
  22555. sen_aux_pcm_rx_voice_mixer_controls,
  22556. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22557. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22558. SND_SOC_NOPM, 0, 0,
  22559. hdmi_rx_voice_mixer_controls,
  22560. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22561. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22562. SND_SOC_NOPM, 0, 0,
  22563. mi2s_rx_voice_mixer_controls,
  22564. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  22565. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  22566. SND_SOC_NOPM, 0, 0,
  22567. pri_mi2s_rx_voice_mixer_controls,
  22568. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  22569. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  22570. SND_SOC_NOPM, 0, 0,
  22571. int0_mi2s_rx_voice_mixer_controls,
  22572. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  22573. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  22574. SND_SOC_NOPM, 0, 0,
  22575. int4_mi2s_rx_voice_mixer_controls,
  22576. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  22577. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  22578. SND_SOC_NOPM, 0, 0,
  22579. tert_mi2s_rx_voice_mixer_controls,
  22580. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  22581. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  22582. SND_SOC_NOPM, 0, 0,
  22583. quat_mi2s_rx_voice_mixer_controls,
  22584. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  22585. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  22586. SND_SOC_NOPM, 0, 0,
  22587. quin_mi2s_rx_voice_mixer_controls,
  22588. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  22589. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  22590. SND_SOC_NOPM, 0, 0,
  22591. pri_tdm_rx_0_voice_mixer_controls,
  22592. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  22593. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  22594. SND_SOC_NOPM, 0, 0,
  22595. pri_tdm_rx_1_voice_mixer_controls,
  22596. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  22597. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  22598. SND_SOC_NOPM, 0, 0,
  22599. pri_tdm_rx_2_voice_mixer_controls,
  22600. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  22601. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  22602. SND_SOC_NOPM, 0, 0,
  22603. pri_tdm_rx_3_voice_mixer_controls,
  22604. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  22605. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  22606. SND_SOC_NOPM, 0, 0,
  22607. sen_mi2s_rx_voice_mixer_controls,
  22608. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  22609. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  22610. SND_SOC_NOPM, 0, 0,
  22611. quat_tdm_rx_2_voice_mixer_controls,
  22612. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  22613. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  22614. SND_SOC_NOPM, 0, 0,
  22615. wsa_cdc_dma_rx_0_voice_mixer_controls,
  22616. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  22617. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  22618. SND_SOC_NOPM, 0, 0,
  22619. rx_cdc_dma_rx_0_voice_mixer_controls,
  22620. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  22621. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  22622. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  22623. ARRAY_SIZE(tx_voip_mixer_controls)),
  22624. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  22625. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  22626. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  22627. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  22628. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  22629. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  22630. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22631. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  22632. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22633. int_bt_a2dp_rx_mixer_controls,
  22634. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  22635. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22636. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  22637. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22638. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  22639. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22640. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  22641. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22642. tx_voice2_stub_mixer_controls,
  22643. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  22644. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22645. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  22646. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  22647. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  22648. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  22649. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  22650. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22651. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  22652. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  22653. SND_SOC_NOPM, 0, 0,
  22654. slimbus_6_rx_voice_mixer_controls,
  22655. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  22656. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22657. slimbus_7_rx_voice_mixer_controls,
  22658. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  22659. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22660. slimbus_8_rx_voice_mixer_controls,
  22661. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  22662. /* port mixer */
  22663. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  22664. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  22665. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  22666. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  22667. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  22668. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  22669. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  22670. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  22671. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  22672. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  22673. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  22674. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  22675. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  22676. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  22677. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  22678. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  22679. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  22680. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  22681. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  22682. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  22683. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  22684. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22685. sbus_1_rx_port_mixer_controls,
  22686. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  22687. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22688. bt_sco_rx_port_mixer_controls,
  22689. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  22690. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  22691. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  22692. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  22693. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  22694. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  22695. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  22696. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  22697. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  22698. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  22699. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  22700. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  22701. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  22702. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  22703. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  22704. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  22705. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  22706. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  22707. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  22708. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  22709. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  22710. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  22711. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22712. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  22713. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22714. primary_mi2s_rx_port_mixer_controls,
  22715. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  22716. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22717. sec_mi2s_rx_port_mixer_controls,
  22718. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  22719. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22720. tert_mi2s_rx_port_mixer_controls,
  22721. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  22722. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22723. quat_mi2s_rx_port_mixer_controls,
  22724. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  22725. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22726. quin_mi2s_rx_port_mixer_controls,
  22727. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  22728. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22729. sen_mi2s_rx_port_mixer_controls,
  22730. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  22731. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22732. pri_tdm_rx_0_port_mixer_controls,
  22733. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  22734. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22735. pri_tdm_rx_1_port_mixer_controls,
  22736. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  22737. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22738. pri_tdm_rx_2_port_mixer_controls,
  22739. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  22740. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22741. pri_tdm_rx_3_port_mixer_controls,
  22742. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  22743. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22744. sec_tdm_rx_0_port_mixer_controls,
  22745. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  22746. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22747. sec_tdm_rx_1_port_mixer_controls,
  22748. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  22749. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22750. sec_tdm_rx_2_port_mixer_controls,
  22751. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  22752. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22753. sec_tdm_rx_3_port_mixer_controls,
  22754. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  22755. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22756. sec_tdm_rx_7_port_mixer_controls,
  22757. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  22758. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22759. tert_tdm_rx_0_port_mixer_controls,
  22760. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  22761. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22762. tert_tdm_rx_1_port_mixer_controls,
  22763. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  22764. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22765. tert_tdm_rx_2_port_mixer_controls,
  22766. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  22767. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22768. tert_tdm_rx_3_port_mixer_controls,
  22769. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  22770. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22771. quat_tdm_rx_0_port_mixer_controls,
  22772. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  22773. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22774. quat_tdm_rx_1_port_mixer_controls,
  22775. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  22776. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22777. quat_tdm_rx_2_port_mixer_controls,
  22778. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  22779. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22780. quat_tdm_rx_3_port_mixer_controls,
  22781. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  22782. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22783. quat_tdm_rx_7_port_mixer_controls,
  22784. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  22785. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22786. quin_tdm_rx_0_port_mixer_controls,
  22787. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  22788. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22789. quin_tdm_rx_1_port_mixer_controls,
  22790. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  22791. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22792. quin_tdm_rx_2_port_mixer_controls,
  22793. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  22794. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22795. quin_tdm_rx_3_port_mixer_controls,
  22796. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  22797. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22798. quin_tdm_rx_7_port_mixer_controls,
  22799. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  22800. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22801. sen_tdm_rx_0_port_mixer_controls,
  22802. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  22803. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22804. sen_tdm_rx_1_port_mixer_controls,
  22805. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  22806. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22807. sen_tdm_rx_2_port_mixer_controls,
  22808. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  22809. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22810. sen_tdm_rx_3_port_mixer_controls,
  22811. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  22812. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22813. int0_mi2s_rx_port_mixer_controls,
  22814. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  22815. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22816. int4_mi2s_rx_port_mixer_controls,
  22817. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  22818. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22819. wsa_cdc_dma_rx_0_port_mixer_controls,
  22820. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  22821. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22822. rx_cdc_dma_rx_0_port_mixer_controls,
  22823. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  22824. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  22825. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  22826. ARRAY_SIZE(tx_qchat_mixer_controls)),
  22827. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  22828. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  22829. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  22830. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  22831. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  22832. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  22833. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  22834. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  22835. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  22836. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  22837. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  22838. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  22839. /* lsm mixer definitions */
  22840. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  22841. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  22842. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  22843. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  22844. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  22845. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  22846. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  22847. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  22848. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  22849. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  22850. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  22851. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  22852. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  22853. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  22854. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  22855. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  22856. /* Virtual Pins to force backends ON atm */
  22857. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  22858. SND_SOC_DAPM_INPUT("BE_IN"),
  22859. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  22860. &slim0_rx_vi_fb_lch_mux),
  22861. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  22862. &slim0_rx_vi_fb_rch_mux),
  22863. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  22864. &wsa_rx_0_vi_fb_lch_mux),
  22865. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  22866. &wsa_rx_0_vi_fb_rch_mux),
  22867. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  22868. &mi2s_rx_vi_fb_mux),
  22869. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  22870. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  22871. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  22872. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  22873. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  22874. &voc_ext_ec_mux),
  22875. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  22876. &ext_ec_ref_mux_ul1),
  22877. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  22878. &ext_ec_ref_mux_ul2),
  22879. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  22880. &ext_ec_ref_mux_ul3),
  22881. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  22882. &ext_ec_ref_mux_ul4),
  22883. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  22884. &ext_ec_ref_mux_ul5),
  22885. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  22886. &ext_ec_ref_mux_ul6),
  22887. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  22888. &ext_ec_ref_mux_ul8),
  22889. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  22890. &ext_ec_ref_mux_ul9),
  22891. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  22892. &ext_ec_ref_mux_ul10),
  22893. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  22894. &ext_ec_ref_mux_ul16),
  22895. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  22896. &ext_ec_ref_mux_ul17),
  22897. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  22898. &ext_ec_ref_mux_ul18),
  22899. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  22900. &ext_ec_ref_mux_ul19),
  22901. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  22902. &ext_ec_ref_mux_ul28),
  22903. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  22904. &ext_ec_ref_mux_ul29),
  22905. };
  22906. static const struct snd_soc_dapm_route intercon[] = {
  22907. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22908. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22909. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22910. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22911. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22912. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22913. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22914. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22915. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22916. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22917. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22918. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22919. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22920. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22921. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22922. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22923. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22924. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  22925. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22926. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22927. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22928. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22929. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22930. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22931. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22932. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22933. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22934. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22935. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22936. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22937. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22938. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22939. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22940. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22941. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22942. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  22943. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22944. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22945. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22946. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22947. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22948. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22949. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22950. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22951. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22952. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22953. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22954. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22955. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22956. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22957. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22958. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22959. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22960. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  22961. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22962. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22963. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22964. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22965. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22966. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22967. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22968. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22969. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22970. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22971. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22972. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22973. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22974. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22975. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22976. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22977. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22978. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  22979. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22980. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22981. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22982. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22983. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22984. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22985. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22986. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22987. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22988. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22989. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22990. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22991. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22992. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22993. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22994. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22995. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22996. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  22997. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22998. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22999. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23000. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23001. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23002. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23003. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23004. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23005. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23006. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23007. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23008. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23009. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23010. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23011. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23012. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23013. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23014. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23015. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23016. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23017. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23018. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23019. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23020. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23021. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23022. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23023. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23024. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23025. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23026. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23027. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23028. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23029. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23030. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23031. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23032. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23033. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23034. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23035. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23036. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23037. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23038. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23039. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23040. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23041. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23042. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23043. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23044. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23045. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23046. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23047. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23048. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23049. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23050. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23051. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23052. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23053. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23054. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23055. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23056. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23057. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23058. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23059. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23060. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23061. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23062. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23063. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23064. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23065. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23066. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23067. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23068. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23069. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23070. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23071. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23072. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23073. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23074. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23075. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23076. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23077. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23078. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23079. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23080. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23081. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23082. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23083. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23084. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23085. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23086. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23087. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23088. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23089. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23090. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23091. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23092. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23093. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23094. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23095. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23096. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23097. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23098. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23099. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23100. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23101. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23102. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23103. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23104. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23105. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23106. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23107. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23108. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23109. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23110. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23111. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23112. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23113. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23114. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23115. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23116. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23117. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23118. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23119. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23120. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23121. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23122. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23123. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23124. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23125. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23126. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23127. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23128. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23129. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23130. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23131. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23132. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23133. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23134. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23135. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23136. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23137. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23138. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23139. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23140. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23141. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23142. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23143. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23144. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23145. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23146. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23147. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23148. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23149. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23150. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23151. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23152. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23153. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23154. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23155. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23156. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23157. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23158. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23159. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23160. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23161. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23162. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23163. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23164. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23165. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23166. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23167. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23168. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23169. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23170. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23171. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23172. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23173. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23174. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23175. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23176. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23177. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23178. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23179. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23180. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23181. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23182. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23183. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23184. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23185. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23186. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23187. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23188. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23189. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23190. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23191. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23192. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23193. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23194. {"HDMI", NULL, "HDMI Mixer"},
  23195. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23196. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23197. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23198. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23199. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23200. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23201. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23202. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23203. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23204. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23205. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23206. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23207. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23208. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23209. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23210. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23211. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23212. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23213. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23214. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23215. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23216. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23217. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23218. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23219. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23220. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23221. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23222. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23223. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23224. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23225. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23226. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23227. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23228. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23229. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23230. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23231. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23232. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23233. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23234. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23235. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23236. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23237. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23238. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23239. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23240. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23241. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23242. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23243. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23244. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23245. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23246. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23247. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23248. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23249. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23250. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23251. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23252. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23253. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23254. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23255. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23256. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23257. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23258. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23259. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23260. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23261. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23262. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23263. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23264. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23265. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23266. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23267. /* incall */
  23268. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23269. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23270. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23271. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23272. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23273. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23274. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23275. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23276. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23277. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23278. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23279. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23280. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23281. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23282. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23283. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23284. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23285. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23286. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23287. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23288. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23289. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23290. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23291. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23292. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23293. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23294. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23295. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23296. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23297. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23298. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23299. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23300. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23301. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23302. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23303. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23304. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23305. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23306. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23307. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23308. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23309. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23310. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23311. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23312. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23313. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23314. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23315. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23316. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23317. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23318. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23319. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23320. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23321. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23322. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23323. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23324. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23325. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23326. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23327. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23328. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23329. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23330. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23331. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23332. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23333. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23334. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23335. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23336. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23337. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23338. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23339. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23340. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23341. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23342. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23343. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23344. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23345. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23346. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23347. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23348. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23349. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23350. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23351. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23352. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23353. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23354. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23355. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23356. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23357. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23358. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23359. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23360. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23361. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  23362. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23363. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23364. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23365. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23366. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23367. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23368. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23369. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23370. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23371. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23372. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23373. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23374. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23375. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23376. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23377. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23378. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23379. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23380. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23381. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23382. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23383. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23384. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23385. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23386. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23387. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23388. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23389. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23390. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23391. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23392. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23393. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23394. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23395. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23396. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23397. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23398. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23399. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23400. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23401. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23402. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23403. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23404. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23405. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23406. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23407. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23408. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23409. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23410. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23411. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23412. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23413. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23414. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23415. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23416. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23417. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23418. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23419. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23420. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23421. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23422. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23423. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23424. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23425. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23426. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23427. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23428. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23429. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23430. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23431. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23432. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23433. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23434. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23435. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23436. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23437. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23438. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23439. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23440. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23441. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23442. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23443. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23444. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23445. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23446. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23447. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23448. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23449. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23450. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23451. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23452. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23453. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23454. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23455. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23456. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23457. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23458. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23459. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23460. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23461. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23462. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23463. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23464. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23465. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23466. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23467. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23468. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23469. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23470. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23471. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23472. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23473. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23474. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23475. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23476. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23477. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23478. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23479. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23480. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23481. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23482. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23483. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23484. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23485. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23486. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23487. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23488. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23489. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23490. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23491. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23492. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23493. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23494. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23495. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23496. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23497. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23498. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23499. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23500. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23501. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23502. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23503. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23504. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23505. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23506. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23507. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23508. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23509. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23510. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23511. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23512. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23513. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23514. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23515. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23516. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23517. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23518. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23519. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23520. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23521. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23522. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23523. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23524. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23525. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23526. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23527. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23528. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23529. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23530. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23531. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23532. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23533. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23534. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23535. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23536. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23537. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23538. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23539. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23540. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23541. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23542. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23543. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23544. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23545. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23546. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23547. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23548. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23549. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23550. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23551. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23552. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23553. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23554. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23555. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23556. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23557. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23558. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23559. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23560. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23561. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23562. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23563. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23564. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23565. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23566. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23567. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23568. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23569. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23570. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23571. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23572. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23573. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  23574. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23575. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23576. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23577. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23578. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23579. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23580. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23581. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23582. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23583. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23584. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23585. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23586. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23587. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23588. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23589. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  23590. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23591. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23592. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23593. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23594. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23595. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23596. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23597. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23598. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23599. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23600. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23601. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23602. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23603. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23604. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23605. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23606. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23607. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  23608. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23609. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23610. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23611. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23612. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23613. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23614. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23615. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23616. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23617. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23618. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23619. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23620. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23621. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23622. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23623. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23624. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23625. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  23626. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23627. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23628. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23629. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23630. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23631. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23632. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23633. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23634. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23635. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23636. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23637. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23638. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23639. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23640. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23641. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23642. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23643. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  23644. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23645. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23646. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23647. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23648. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23649. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23650. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23651. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23652. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23653. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23654. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23655. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23656. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23657. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23658. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23659. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23660. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23661. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  23662. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23663. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23664. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23665. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23666. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23667. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23668. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23669. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23670. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23671. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23672. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23673. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23674. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23675. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23676. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23677. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23678. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  23679. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23680. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23681. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23682. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23683. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23684. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23685. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23686. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23687. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23688. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23689. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23690. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23691. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23692. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23693. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23694. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23695. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23696. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  23697. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23698. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23699. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23700. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23701. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23702. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23703. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23704. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23705. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23706. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23707. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23708. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23709. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23710. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23711. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23712. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23713. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23714. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  23715. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23716. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23717. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23718. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23719. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23720. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23721. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23722. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23723. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23724. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23725. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23726. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23727. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23728. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23729. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23730. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23731. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23732. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  23733. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23734. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23735. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23736. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23737. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23738. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23739. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23740. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23741. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23742. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23743. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23744. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23745. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23746. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23747. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23748. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23749. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23750. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  23751. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23752. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23753. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23754. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23755. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23756. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23757. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23758. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23759. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23760. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23761. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23762. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23763. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23764. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23765. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23766. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23767. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  23768. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23769. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23770. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23771. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23772. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23773. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23774. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23775. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23776. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23777. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23778. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23779. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23780. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23781. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23782. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23783. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23784. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23785. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  23786. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23787. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23788. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23789. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23790. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23791. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23792. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23793. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23794. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23795. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23796. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23797. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23798. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23799. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23800. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23801. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23802. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  23803. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23804. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23805. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23806. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23807. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23808. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23809. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23810. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23811. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23812. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23813. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23814. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23815. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23816. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23817. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23818. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23819. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23820. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  23821. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23822. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23823. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23824. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23825. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23826. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23827. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23828. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23829. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23830. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23831. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23832. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23833. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23834. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23835. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23836. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23837. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23838. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  23839. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23840. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23841. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23842. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23843. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23844. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23845. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23846. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23847. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23848. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23849. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23850. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23851. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23852. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23853. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23854. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23855. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23856. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  23857. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23858. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23859. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23860. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23861. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23862. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23863. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23864. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23865. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23866. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23867. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23868. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23869. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23870. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23871. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23872. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23873. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23874. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  23875. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23876. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23877. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23878. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23879. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23880. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23881. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23882. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23883. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23884. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23885. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23886. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23887. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23888. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23889. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23890. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23891. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23892. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23893. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  23894. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23895. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23896. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23897. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23898. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23899. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23900. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23901. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23902. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23903. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23904. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23905. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23906. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23907. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23908. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23909. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23910. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  23911. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23912. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23913. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23914. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23915. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23916. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23917. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23918. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23919. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23920. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23921. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23922. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23923. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23924. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23925. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23926. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23927. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23928. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23929. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  23930. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23931. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23932. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23933. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23934. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23935. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23936. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23937. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23938. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23939. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23940. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23941. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23942. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23943. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23944. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23945. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23946. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23947. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23948. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  23949. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23950. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23951. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23952. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23953. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23954. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23955. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23956. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23957. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23958. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23959. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23960. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23961. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23962. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23963. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23964. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23965. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23966. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23967. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  23968. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23969. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23970. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23971. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23972. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23973. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23974. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23975. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23976. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23977. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23978. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23979. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23980. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23981. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23982. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23983. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23984. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23985. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23986. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  23987. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23988. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23989. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23990. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23991. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23992. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23993. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23994. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23995. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23996. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23997. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23998. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23999. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24000. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24001. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24002. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24003. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24004. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24005. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24006. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24007. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24008. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24009. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24010. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24011. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24012. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24013. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24014. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24015. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24016. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24017. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24018. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24019. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24020. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24021. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24022. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24023. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24024. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24025. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24026. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24027. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24028. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24029. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24030. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24031. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24032. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24033. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24034. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24035. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24036. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24037. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24038. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24039. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24040. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24041. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24042. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24043. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24044. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24045. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24046. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24047. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24048. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24049. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24050. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24051. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24052. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24053. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24054. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24055. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24056. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24057. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24058. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24059. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24060. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24061. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24062. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24063. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24064. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24065. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24066. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24067. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24068. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24069. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24070. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24071. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24072. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24073. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24074. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24075. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24076. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24077. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24078. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24079. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24080. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24081. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24082. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24083. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24084. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24085. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24086. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24087. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24088. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24089. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24090. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24091. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24092. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24093. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24094. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24095. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24096. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24097. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24098. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24099. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24100. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24101. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24102. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24103. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24104. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24105. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24106. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24107. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24108. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24109. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24110. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24111. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24112. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24113. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24114. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24115. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24116. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24117. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24118. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24119. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24120. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24121. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24122. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24123. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24124. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24125. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24126. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24127. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24128. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24129. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24130. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24131. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24132. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24133. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24134. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24135. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24136. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24137. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24138. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24139. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24140. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24141. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24142. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24143. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24144. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24145. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24146. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24147. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24148. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24149. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24150. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24151. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24152. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24153. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24154. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24155. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24156. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24157. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24158. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24159. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24160. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24161. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24162. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24163. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24164. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24165. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24166. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24167. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24168. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24169. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24170. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24171. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24172. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24173. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24174. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24175. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24176. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24177. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24178. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24179. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24180. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24181. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24182. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24183. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24184. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24185. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24186. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24187. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24188. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24189. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24190. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24191. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24192. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24193. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24194. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24195. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24196. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24197. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24198. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24199. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24200. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24201. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24202. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24203. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24204. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24205. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24206. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24207. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24208. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24209. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24210. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24211. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24212. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24213. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24214. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24215. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24216. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24217. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24218. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24219. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24220. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24221. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24222. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24223. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24224. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24225. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24226. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24227. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24228. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24229. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24230. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24231. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24232. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24233. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24234. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24235. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24236. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24237. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24238. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24239. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24240. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24241. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24242. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24243. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24244. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24245. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24246. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24247. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24248. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24249. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24250. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24251. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24252. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24253. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24254. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24255. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24256. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24257. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24258. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24259. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24260. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24261. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24262. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24263. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24264. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24265. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24266. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24267. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24268. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24269. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24270. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24271. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24272. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24273. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24274. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24275. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24276. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24277. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24278. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24279. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24280. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24281. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24282. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24283. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24284. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24285. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24286. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24287. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24288. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24289. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24290. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24291. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24292. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24293. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24294. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24295. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24296. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24297. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24298. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24299. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24300. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24301. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24302. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24303. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24304. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24305. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24306. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24307. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24308. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24309. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24310. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24311. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24312. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24313. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24314. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24315. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24316. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24317. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24318. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24319. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24320. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24321. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24322. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24323. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24324. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24325. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24326. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24327. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24328. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24329. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24330. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24331. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24332. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24333. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24334. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24335. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24336. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24337. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24338. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24339. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24340. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24341. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24342. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24343. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24344. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24345. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24346. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24347. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24348. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24349. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24350. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24351. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24352. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24353. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24354. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24355. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24356. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24357. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24358. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24359. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24360. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24361. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24362. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24363. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24364. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24365. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24366. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24367. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24368. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24369. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24370. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24371. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24372. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24373. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24374. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24375. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24376. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24377. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24378. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24379. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24380. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24381. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24382. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24383. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24384. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24385. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24386. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24387. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24388. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24389. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24390. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24391. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24392. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24393. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24394. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24395. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24396. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24397. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24398. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24399. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24400. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24401. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24402. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24403. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24404. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24405. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24406. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24407. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24408. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24409. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24410. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24411. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24412. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24413. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24414. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24415. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24416. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24417. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24418. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24419. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24420. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24421. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24422. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24423. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24424. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24425. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24426. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24427. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24428. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24429. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24430. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24431. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24432. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24433. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24434. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24435. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24436. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24437. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24438. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24439. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24440. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24441. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24442. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24443. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24444. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24445. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24446. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24447. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24448. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24449. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24450. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24451. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24452. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24453. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24454. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24455. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24456. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24457. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24458. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24459. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24460. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24461. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24462. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24463. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24464. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24465. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24466. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24467. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24468. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24469. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24470. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24471. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24472. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24473. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24474. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24475. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24476. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24477. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24478. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24479. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24480. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24481. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24482. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24483. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24484. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24485. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24486. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24487. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24488. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24489. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24490. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24491. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24492. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24493. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24494. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24495. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24496. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24497. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24498. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24499. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24500. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24501. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24502. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24503. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24504. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24505. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24506. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24507. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24508. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24509. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24510. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24511. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24512. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24513. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24514. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24515. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24516. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24517. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24518. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24519. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24520. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24521. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24522. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24523. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24524. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24525. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24526. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24527. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24528. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24529. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24530. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24531. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24532. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24533. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24534. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24535. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24536. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24537. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24538. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24539. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24540. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24541. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24542. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24543. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24544. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24545. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24546. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24547. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24548. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24549. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24550. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24551. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24552. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24553. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24554. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24555. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24556. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24557. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24558. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24559. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24560. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24561. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24562. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24563. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24564. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24565. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24566. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24567. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24568. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24569. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24570. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24571. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24572. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24573. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24574. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24575. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24576. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24577. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24578. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24579. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24580. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24581. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24582. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24583. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24584. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24585. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24586. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24587. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24588. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24589. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24590. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24591. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24592. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24593. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24594. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24595. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24596. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24597. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24598. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24599. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24600. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24601. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24602. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24603. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24604. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24605. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24606. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24607. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24608. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24609. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24610. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24611. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24612. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24613. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24614. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24615. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24616. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24617. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24618. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24619. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24620. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24621. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24622. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24623. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24624. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24625. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24626. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24627. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24628. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24629. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24630. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24631. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24632. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24633. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24634. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24635. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24636. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24637. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24638. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24639. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24640. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24641. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24642. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24643. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24644. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24645. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24646. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24647. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24648. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24649. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24650. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24651. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24652. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24653. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24654. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24655. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24656. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24657. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24658. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24659. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24660. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24661. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24662. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24663. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24664. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24665. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24666. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24667. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24668. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24669. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24670. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24671. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24672. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24673. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24674. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24675. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24676. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24677. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24678. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24679. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24680. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24681. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24682. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24683. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24684. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24685. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24686. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24687. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24688. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24689. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24690. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24691. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24692. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24693. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24694. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24695. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24696. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24697. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24698. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24699. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24700. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24701. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24702. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24703. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24704. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24705. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24706. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24707. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24708. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24709. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24710. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24711. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24712. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24713. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24714. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24715. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24716. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24717. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24718. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24719. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24720. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24721. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24722. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24723. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24724. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24725. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24726. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24727. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24728. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24729. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24730. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24731. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24732. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24733. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24734. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24735. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24736. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24737. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24738. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24739. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24740. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24741. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24742. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24743. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24744. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24745. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24746. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24747. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24748. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24749. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24750. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24751. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24752. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24753. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24754. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24755. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24756. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24757. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24758. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24759. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24760. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24761. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24762. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24763. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  24764. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  24765. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24766. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24767. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24768. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24769. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24770. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24771. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24772. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24773. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24774. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24775. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24776. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24777. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24778. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24779. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24780. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24781. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  24782. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  24783. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24784. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24785. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24786. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24787. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24788. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24789. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24790. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24791. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24792. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24793. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24794. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24795. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24796. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24797. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24798. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24799. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  24800. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24801. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24802. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24803. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24804. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24805. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24806. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24807. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24808. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24809. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24810. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24811. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24812. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24813. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24814. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24815. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24816. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  24817. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24818. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24819. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24820. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24821. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24822. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24823. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24824. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24825. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24826. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24827. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24828. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24829. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24830. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24831. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24832. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24833. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24834. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24835. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24836. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24837. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24838. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24839. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24840. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24841. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24842. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24843. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24844. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24845. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24846. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24847. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24848. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24849. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24850. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24851. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24852. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24853. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24854. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24855. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  24856. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24857. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  24858. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  24859. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  24860. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  24861. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  24862. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  24863. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  24864. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  24865. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  24866. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  24867. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  24868. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  24869. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  24870. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  24871. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  24872. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  24873. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  24874. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  24875. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24876. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24877. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24878. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24879. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24880. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24881. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24882. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24883. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24884. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24885. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24886. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24887. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24888. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24889. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24890. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24891. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24892. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  24893. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24894. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24895. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24896. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24897. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24898. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24899. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24900. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24901. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24902. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24903. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24904. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24905. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24906. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24907. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24908. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24909. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24910. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  24911. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24912. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24913. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24914. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24915. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24916. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24917. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24918. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24919. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24920. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24921. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24922. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24923. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24924. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24925. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24926. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24927. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  24928. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24929. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24930. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24931. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24932. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24933. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24934. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24935. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24936. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24937. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24938. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24939. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24940. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24941. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24942. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24943. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24944. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  24945. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24946. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24947. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24948. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24949. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24950. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24951. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24952. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24953. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24954. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24955. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24956. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24957. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24958. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24959. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24960. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24961. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  24962. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24963. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24964. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24965. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24966. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24967. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24968. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24969. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24970. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24971. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24972. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24973. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24974. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24975. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24976. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24977. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24978. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  24979. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24980. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24981. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24982. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24983. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24984. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  24985. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24986. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24987. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24988. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  24989. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24990. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24991. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24992. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24993. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24994. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24995. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24996. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  24997. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24998. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24999. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25000. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25001. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25002. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25003. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25004. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25005. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25006. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25007. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25008. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25009. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25010. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25011. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25012. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25013. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25014. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25015. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25016. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25017. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25018. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25019. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25020. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25021. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25022. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25023. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25024. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25025. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25026. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25027. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25028. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25029. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25030. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25031. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25032. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25033. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25034. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25035. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25036. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25037. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25038. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25039. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25040. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25041. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25042. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25043. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25044. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25045. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25046. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25047. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25048. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25049. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25050. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25051. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25052. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25053. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25054. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25055. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25056. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25057. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25058. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25059. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25060. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25061. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25062. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25063. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25064. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25065. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25066. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25067. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25068. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25069. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25070. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25071. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25072. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25073. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25074. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25075. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25076. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25077. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25078. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25079. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25080. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25081. {"HDMI", NULL, "HDMI_DL_HL"},
  25082. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25083. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25084. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25085. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25086. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25087. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25088. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25089. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25090. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25091. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25092. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25093. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25094. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25095. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25096. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25097. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25098. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25099. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25100. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25101. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25102. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25103. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25104. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25105. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25106. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25107. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25108. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25109. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25110. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25111. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25112. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25113. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25114. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25115. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25116. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25117. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25118. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25119. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25120. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25121. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25122. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25123. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25124. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25125. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25126. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25127. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25128. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25129. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25130. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25131. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25132. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25133. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25134. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25135. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25136. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25137. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25138. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25139. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25140. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25141. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25142. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25143. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25144. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25145. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25146. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25147. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25148. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25149. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25150. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25151. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25152. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25153. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25154. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25155. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25156. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25157. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25158. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25159. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25160. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25161. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25162. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25163. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25164. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25165. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25166. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25167. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25168. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25169. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25170. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25171. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25172. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25173. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25174. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25175. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25176. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25177. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25178. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25179. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25180. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25181. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25182. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25183. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25184. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25185. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25186. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25187. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25188. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25189. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25190. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25191. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25192. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25193. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25194. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25195. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25196. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25197. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25198. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25199. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25200. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25201. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25202. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25203. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25204. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25205. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25206. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25207. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25208. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25209. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25210. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25211. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25212. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25213. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25214. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25215. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25216. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25217. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25218. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25219. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25220. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25221. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25222. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25223. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25224. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25225. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25226. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25227. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25228. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25229. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25230. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25231. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25232. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25233. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25234. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25235. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25236. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25237. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25238. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25239. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25240. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25241. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25242. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25243. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25244. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25245. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25246. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25247. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25248. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25249. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25250. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25251. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25252. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25253. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25254. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25255. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25256. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25257. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25258. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25259. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25260. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25261. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25262. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25263. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25264. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25265. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25266. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25267. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25268. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25269. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25270. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25271. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25272. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25273. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25274. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25275. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25276. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  25277. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  25278. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  25279. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  25280. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  25281. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  25282. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  25283. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  25284. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  25285. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  25286. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  25287. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  25288. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  25289. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  25290. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  25291. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  25292. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  25293. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  25294. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  25295. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  25296. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  25297. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  25298. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  25299. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  25300. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  25301. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  25302. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  25303. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  25304. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  25305. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  25306. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  25307. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  25308. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  25309. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  25310. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  25311. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  25312. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  25313. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  25314. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  25315. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  25316. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  25317. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  25318. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  25319. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  25320. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  25321. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  25322. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  25323. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  25324. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  25325. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  25326. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  25327. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  25328. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  25329. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  25330. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  25331. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  25332. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  25333. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  25334. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  25335. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  25336. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  25337. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  25338. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  25339. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  25340. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  25341. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  25342. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  25343. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  25344. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  25345. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  25346. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  25347. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  25348. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  25349. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  25350. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  25351. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  25352. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  25353. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  25354. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  25355. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  25356. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  25357. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  25358. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  25359. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  25360. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  25361. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  25362. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  25363. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  25364. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  25365. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  25366. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  25367. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  25368. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  25369. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  25370. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  25371. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  25372. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  25373. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  25374. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  25375. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  25376. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  25377. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  25378. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  25379. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  25380. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  25381. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  25382. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  25383. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  25384. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  25385. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25386. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  25387. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  25388. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25389. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25390. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  25391. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25392. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25393. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25394. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25395. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25396. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25397. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25398. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25399. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25400. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25401. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25402. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25403. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25404. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  25405. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25406. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25407. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25408. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25409. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25410. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25411. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25412. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25413. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25414. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25415. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25416. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25417. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25418. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  25419. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25420. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25421. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25422. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25423. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25424. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25425. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25426. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25427. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25428. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25429. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25430. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25431. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25432. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  25433. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25434. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25435. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25436. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25437. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25438. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25439. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25440. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25441. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25442. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25443. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25444. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25445. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25446. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25447. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25448. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25449. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25450. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25451. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25452. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25453. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25454. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25455. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25456. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25457. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25458. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25459. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25460. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25461. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25462. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25463. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25464. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25465. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25466. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25467. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25468. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25469. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25470. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25471. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25472. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  25473. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25474. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25475. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25476. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25477. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25478. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25479. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25480. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25481. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25482. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25483. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25484. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  25485. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25486. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25487. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25488. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25489. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25490. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25491. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25492. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25493. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25494. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25495. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25496. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  25497. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  25498. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  25499. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  25500. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  25501. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  25502. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  25503. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  25504. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  25505. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  25506. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  25507. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  25508. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  25509. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  25510. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  25511. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  25512. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  25513. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  25514. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  25515. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  25516. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  25517. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  25518. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  25519. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  25520. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  25521. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  25522. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  25523. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  25524. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  25525. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  25526. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  25527. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  25528. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  25529. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  25530. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  25531. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  25532. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  25533. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  25534. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  25535. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  25536. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  25537. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  25538. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  25539. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  25540. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  25541. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  25542. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  25543. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  25544. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  25545. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  25546. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  25547. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  25548. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  25549. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  25550. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  25551. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  25552. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  25553. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  25554. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  25555. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  25556. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  25557. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  25558. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  25559. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  25560. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  25561. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  25562. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  25563. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  25564. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  25565. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  25566. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  25567. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  25568. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  25569. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  25570. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  25571. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  25572. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  25573. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  25574. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  25575. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  25576. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  25577. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  25578. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  25579. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  25580. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  25581. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  25582. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  25583. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  25584. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  25585. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  25586. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  25587. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  25588. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  25589. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  25590. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  25591. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  25592. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  25593. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  25594. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  25595. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  25596. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  25597. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  25598. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  25599. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  25600. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  25601. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  25602. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  25603. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  25604. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  25605. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  25606. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  25607. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  25608. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  25609. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  25610. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  25611. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  25612. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  25613. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  25614. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  25615. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  25616. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  25617. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  25618. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25619. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25620. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25621. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25622. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25623. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25624. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25625. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25626. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25627. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25628. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25629. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25630. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25631. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25632. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25633. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25634. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25635. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25636. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25637. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25638. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25639. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25640. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25641. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25642. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  25643. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25644. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25645. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25646. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25647. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25648. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25649. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25650. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25651. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25652. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25653. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25654. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25655. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25656. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25657. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25658. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25659. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25660. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25661. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25662. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25663. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25664. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25665. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25666. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25667. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  25668. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25669. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25670. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25671. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25672. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25673. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25674. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25675. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25676. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25677. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25678. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25679. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25680. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25681. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25682. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25683. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25684. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25685. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25686. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25687. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25688. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25689. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25690. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25691. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25692. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  25693. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25694. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25695. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25696. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25697. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25698. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25699. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25700. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25701. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25702. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25703. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25704. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25705. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25706. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25707. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25708. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25709. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25710. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25711. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25712. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25713. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25714. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25715. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25716. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25717. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  25718. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25719. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25720. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25721. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25722. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25723. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25724. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25725. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25726. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25727. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25728. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25729. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25730. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25731. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25732. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25733. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25734. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25735. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25736. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25737. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25738. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25739. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25740. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25741. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25742. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  25743. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25744. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25745. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25746. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25747. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25748. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25749. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25750. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25751. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25752. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25753. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25754. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25755. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25756. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25757. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25758. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25759. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25760. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25761. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25762. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25763. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25764. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25765. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25766. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25767. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  25768. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25769. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25770. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25771. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25772. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25773. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25774. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25775. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25776. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25777. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25778. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25779. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25780. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25781. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25782. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25783. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25784. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25785. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25786. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25787. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25788. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25789. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25790. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25791. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25792. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  25793. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25794. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25795. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25796. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25797. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25798. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25799. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25800. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25801. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25802. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25803. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25804. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25805. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25806. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25807. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25808. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25809. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25810. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25811. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25812. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25813. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25814. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25815. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25816. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25817. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  25818. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  25819. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  25820. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25821. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25822. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25823. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25824. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25825. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25826. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25827. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25828. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25829. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25830. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25831. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25832. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25833. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25834. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25835. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25836. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25837. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25838. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25839. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25840. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25841. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25842. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25843. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25844. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  25845. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25846. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25847. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25848. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25849. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25850. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25851. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25852. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25853. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25854. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25855. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25856. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25857. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25858. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25859. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25860. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25861. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25862. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25863. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25864. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25865. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25866. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25867. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25868. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25869. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  25870. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25871. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25872. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25873. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25874. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25875. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25876. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25877. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25878. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25879. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25880. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25881. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25882. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25883. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25884. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25885. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25886. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25887. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25888. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25889. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25890. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25891. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25892. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25893. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25894. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  25895. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25896. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25897. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25898. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25899. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25900. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25901. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25902. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25903. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25904. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25905. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25906. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25907. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25908. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25909. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25910. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25911. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25912. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25913. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25914. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25915. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25916. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25917. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25918. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25919. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  25920. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25921. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25922. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25923. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25924. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25925. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25926. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25927. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25928. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25929. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25930. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25931. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25932. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25933. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25934. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25935. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25936. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25937. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25938. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25939. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25940. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25941. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25942. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25943. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25944. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  25945. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25946. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25947. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25948. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25949. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25950. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25951. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25952. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25953. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25954. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25955. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25956. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25957. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25958. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25959. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25960. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25961. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25962. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25963. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25964. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25965. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25966. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25967. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25968. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25969. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  25970. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25971. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25972. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25973. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25974. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25975. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25976. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25977. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25978. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25979. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25980. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25981. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25982. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25983. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25984. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25985. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25986. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25987. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25988. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25989. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25990. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25991. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25992. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25993. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25994. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  25995. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25996. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25997. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25998. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25999. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26000. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26001. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26002. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26003. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26004. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26005. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26006. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26007. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26008. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26009. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26010. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26011. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26012. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26013. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26014. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26015. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26016. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26017. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26018. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26019. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26020. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26021. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26022. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26023. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26024. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26025. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26026. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26027. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26028. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26029. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26030. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26031. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26032. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26033. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26034. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26035. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26036. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26037. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26038. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26039. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26040. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26041. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26042. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26043. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26044. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26045. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26046. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26047. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26048. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26049. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26050. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26051. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26052. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26053. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26054. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26055. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26056. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26057. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26058. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26059. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26060. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26061. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26062. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26063. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26064. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26065. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26066. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26067. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26068. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26069. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26070. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26071. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26072. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26073. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26074. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26075. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26076. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26077. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26078. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26079. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26080. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26081. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26082. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26083. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26084. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26085. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26086. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26087. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26088. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26089. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26090. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26091. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26092. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26093. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26094. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26095. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26096. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26097. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26098. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26099. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26100. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26101. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26102. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26103. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26104. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26105. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26106. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26107. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26108. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26109. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26110. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26111. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26112. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26113. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26114. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26115. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26116. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26117. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26118. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26119. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26120. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26121. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26122. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26123. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26124. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26125. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26126. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26127. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26128. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26129. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26130. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26131. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26132. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26133. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26134. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26135. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26136. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26137. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26138. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26139. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26140. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26141. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26142. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26143. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26144. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26145. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26146. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26147. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26148. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26149. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26150. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26151. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26152. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26153. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26154. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26155. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26156. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26157. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26158. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26159. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26160. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26161. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26162. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26163. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26164. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26165. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26166. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26167. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26168. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26169. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26170. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26171. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26172. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26173. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26174. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26175. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26176. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26177. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26178. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26179. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26180. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26181. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26182. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26183. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26184. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26185. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26186. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26187. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26188. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26189. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26190. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26191. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26192. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26193. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26194. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26195. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26196. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26197. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26198. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26199. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26200. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26201. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26202. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26203. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26204. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26205. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26206. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26207. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26208. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26209. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26210. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26211. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26212. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26213. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26214. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26215. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26216. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26217. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26218. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26219. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26220. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26221. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26222. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26223. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26224. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26225. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26226. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26227. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26228. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26229. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26230. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26231. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26232. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26233. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26234. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26235. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26236. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26237. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26238. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26239. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26240. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26241. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26242. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26243. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26244. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26245. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26246. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26247. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26248. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26249. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26250. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26251. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26252. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26253. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26254. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26255. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26256. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26257. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26258. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26259. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26260. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26261. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26262. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26263. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26264. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26265. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26266. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26267. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26268. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26269. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26270. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26271. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26272. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26273. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26274. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26275. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26276. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26277. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26278. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26279. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26280. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26281. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26282. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26283. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26284. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26285. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26286. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26287. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26288. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26289. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26290. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26291. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26292. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26293. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26294. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26295. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26296. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26297. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26298. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26299. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26300. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26301. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26302. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26303. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26304. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26305. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26306. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26307. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26308. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26309. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26310. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  26311. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26312. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26313. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26314. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26315. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26316. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26317. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26318. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26319. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26320. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26321. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26322. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26323. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26324. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26325. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26326. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26327. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26328. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26329. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26330. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26331. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26332. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26333. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26334. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26335. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26336. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26337. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26338. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26339. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26340. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26341. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26342. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26343. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26344. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26345. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26346. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26347. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26348. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26349. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26350. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26351. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26352. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26353. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26354. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26355. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26356. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26357. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26358. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26359. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26360. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26361. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26362. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26363. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26364. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26365. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26366. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26367. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26368. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26369. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26370. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26371. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26372. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26373. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26374. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26375. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26376. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26377. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26378. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26379. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26380. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26381. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26382. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26383. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26384. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26385. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26386. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26387. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26388. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26389. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26390. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26391. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26392. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26393. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26394. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26395. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26396. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26397. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26398. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  26399. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26400. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26401. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  26402. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26403. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26404. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  26405. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26406. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26407. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26408. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26409. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26410. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26411. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26412. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26413. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26414. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26415. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26416. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  26417. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26418. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26419. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26420. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26421. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26422. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26423. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26424. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26425. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26426. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26427. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  26428. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26429. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26430. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26431. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26432. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26433. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26434. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26435. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26436. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  26437. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26438. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26439. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26440. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26441. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26442. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26443. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26444. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26445. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26446. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26447. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  26448. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26449. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26450. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26451. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26452. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26453. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26454. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26455. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26456. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26457. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26458. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26459. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26460. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26461. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26462. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26463. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26464. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26465. /* Backend Enablement */
  26466. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26467. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26468. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26469. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26470. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26471. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26472. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26473. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26474. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26475. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26476. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26477. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26478. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26479. {"BE_OUT", NULL, "HDMI"},
  26480. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26481. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26482. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26483. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  26484. {"BE_OUT", NULL, "MI2S_RX"},
  26485. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  26486. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  26487. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  26488. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  26489. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  26490. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  26491. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  26492. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  26493. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  26494. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  26495. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  26496. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  26497. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26498. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  26499. {"BE_OUT", NULL, "INT_FM_RX"},
  26500. {"BE_OUT", NULL, "PCM_RX"},
  26501. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26502. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26503. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  26504. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  26505. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  26506. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  26507. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  26508. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26509. {"BE_OUT", NULL, "INT_FM_RX"},
  26510. {"BE_OUT", NULL, "PCM_RX"},
  26511. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26512. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  26513. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  26514. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  26515. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  26516. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  26517. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  26518. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  26519. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  26520. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  26521. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  26522. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  26523. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  26524. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  26525. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  26526. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  26527. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  26528. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  26529. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  26530. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  26531. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  26532. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  26533. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  26534. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  26535. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  26536. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  26537. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  26538. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  26539. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  26540. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  26541. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  26542. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  26543. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  26544. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  26545. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  26546. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  26547. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  26548. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  26549. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  26550. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  26551. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  26552. {"PRI_I2S_TX", NULL, "BE_IN"},
  26553. {"MI2S_TX", NULL, "BE_IN"},
  26554. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  26555. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  26556. {"PRI_MI2S_TX", NULL, "BE_IN"},
  26557. {"TERT_MI2S_TX", NULL, "BE_IN"},
  26558. {"INT0_MI2S_TX", NULL, "BE_IN"},
  26559. {"INT2_MI2S_TX", NULL, "BE_IN"},
  26560. {"INT3_MI2S_TX", NULL, "BE_IN"},
  26561. {"INT4_MI2S_TX", NULL, "BE_IN"},
  26562. {"INT5_MI2S_TX", NULL, "BE_IN"},
  26563. {"SEC_MI2S_TX", NULL, "BE_IN"},
  26564. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  26565. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  26566. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  26567. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  26568. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  26569. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  26570. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  26571. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  26572. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  26573. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  26574. {"USB_AUDIO_TX", NULL, "BE_IN" },
  26575. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  26576. {"INT_FM_TX", NULL, "BE_IN"},
  26577. {"PCM_TX", NULL, "BE_IN"},
  26578. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26579. {"BE_OUT", NULL, "STUB_RX"},
  26580. {"STUB_TX", NULL, "BE_IN"},
  26581. {"STUB_1_TX", NULL, "BE_IN"},
  26582. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26583. {"AUX_PCM_TX", NULL, "BE_IN"},
  26584. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  26585. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  26586. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  26587. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  26588. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  26589. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  26590. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  26591. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26592. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26593. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26594. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26595. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  26596. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  26597. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  26598. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  26599. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  26600. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  26601. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  26602. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  26603. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  26604. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  26605. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  26606. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  26607. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  26608. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  26609. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  26610. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  26611. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  26612. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  26613. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  26614. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  26615. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  26616. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  26617. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  26618. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  26619. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  26620. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  26621. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  26622. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  26623. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  26624. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  26625. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  26626. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  26627. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  26628. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  26629. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  26630. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  26631. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  26632. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  26633. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26634. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26635. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26636. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26637. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26638. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26639. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  26640. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  26641. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  26642. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  26643. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  26644. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  26645. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  26646. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  26647. };
  26648. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  26649. struct snd_pcm_hw_params *params)
  26650. {
  26651. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26652. unsigned int be_id = rtd->dai_link->id;
  26653. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26654. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26655. return -EINVAL;
  26656. }
  26657. mutex_lock(&routing_lock);
  26658. msm_bedais[be_id].sample_rate = params_rate(params);
  26659. msm_bedais[be_id].channel = params_channels(params);
  26660. msm_bedais[be_id].format = params_format(params);
  26661. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  26662. __func__, msm_bedais[be_id].sample_rate,
  26663. msm_bedais[be_id].format, be_id);
  26664. mutex_unlock(&routing_lock);
  26665. return 0;
  26666. }
  26667. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  26668. {
  26669. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26670. unsigned int be_id = rtd->dai_link->id;
  26671. int i, session_type, path_type, topology;
  26672. struct msm_pcm_routing_bdai_data *bedai;
  26673. struct msm_pcm_routing_fdai_data *fdai;
  26674. pr_debug("%s: substream->pcm->id:%s\n",
  26675. __func__, substream->pcm->id);
  26676. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26677. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26678. return -EINVAL;
  26679. }
  26680. bedai = &msm_bedais[be_id];
  26681. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  26682. 0 : 1);
  26683. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  26684. path_type = ADM_PATH_PLAYBACK;
  26685. else
  26686. path_type = ADM_PATH_LIVE_REC;
  26687. mutex_lock(&routing_lock);
  26688. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26689. if (!is_mm_lsm_fe_id(i))
  26690. continue;
  26691. fdai = &fe_dai_map[i][session_type];
  26692. if (fdai->strm_id != INVALID_SESSION) {
  26693. int idx;
  26694. int port_id;
  26695. unsigned long copp =
  26696. session_copp_map[i][session_type][be_id];
  26697. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  26698. if (test_bit(idx, &copp))
  26699. break;
  26700. if (idx >= MAX_COPPS_PER_PORT) {
  26701. pr_debug("%s: copp idx is invalid, exiting\n",
  26702. __func__);
  26703. continue;
  26704. }
  26705. fdai->be_srate = bedai->sample_rate;
  26706. port_id = get_port_id(bedai->port_id);
  26707. topology = adm_get_topology_for_port_copp_idx(port_id,
  26708. idx);
  26709. msm_routing_unload_topology(topology);
  26710. adm_close(port_id, fdai->perf_mode, idx);
  26711. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  26712. __func__, copp, i, session_type, be_id,
  26713. topology);
  26714. clear_bit(idx,
  26715. &session_copp_map[i][session_type][be_id]);
  26716. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  26717. (fdai->passthr_mode == LEGACY_PCM))
  26718. msm_pcm_routing_deinit_pp(port_id,
  26719. topology);
  26720. }
  26721. }
  26722. bedai->active = 0;
  26723. bedai->sample_rate = 0;
  26724. bedai->channel = 0;
  26725. mutex_unlock(&routing_lock);
  26726. return 0;
  26727. }
  26728. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  26729. {
  26730. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26731. unsigned int be_id = rtd->dai_link->id;
  26732. int i, path_type, topology;
  26733. int session_type = INVALID_SESSION;
  26734. struct msm_pcm_routing_bdai_data *bedai;
  26735. u32 channels, sample_rate;
  26736. uint16_t bits_per_sample = 16, voc_path_type;
  26737. struct msm_pcm_routing_fdai_data *fdai;
  26738. u32 session_id;
  26739. struct media_format_info voc_be_media_format;
  26740. bool is_lsm;
  26741. pr_debug("%s: substream->pcm->id:%s\n",
  26742. __func__, substream->pcm->id);
  26743. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26744. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26745. return -EINVAL;
  26746. }
  26747. bedai = &msm_bedais[be_id];
  26748. mutex_lock(&routing_lock);
  26749. if (bedai->active == 1)
  26750. goto done; /* Ignore prepare if back-end already active */
  26751. /* AFE port is not active at this point. However, still
  26752. * go ahead setting active flag under the notion that
  26753. * QDSP6 is able to handle ADM starting before AFE port
  26754. * is started.
  26755. */
  26756. bedai->active = 1;
  26757. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26758. if (!(is_mm_lsm_fe_id(i) &&
  26759. route_check_fe_id_adm_support(i)))
  26760. continue;
  26761. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  26762. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26763. fdai = &fe_dai_map[i][session_type];
  26764. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  26765. if (fdai->passthr_mode != LEGACY_PCM)
  26766. path_type = ADM_PATH_COMPRESSED_RX;
  26767. else
  26768. path_type = ADM_PATH_PLAYBACK;
  26769. } else {
  26770. if ((fdai->passthr_mode != LEGACY_PCM) &&
  26771. (fdai->passthr_mode != LISTEN))
  26772. path_type = ADM_PATH_COMPRESSED_TX;
  26773. else
  26774. path_type = ADM_PATH_LIVE_REC;
  26775. }
  26776. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  26777. (i <= MSM_FRONTEND_DAI_LSM8);
  26778. if (fdai->strm_id != INVALID_SESSION) {
  26779. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  26780. int port_id = get_port_id(bedai->port_id);
  26781. if (session_type == SESSION_TYPE_TX &&
  26782. fdai->be_srate &&
  26783. (fdai->be_srate != bedai->sample_rate)) {
  26784. pr_debug("%s: flush strm %d diff BE rates\n",
  26785. __func__,
  26786. fdai->strm_id);
  26787. if (fdai->event_info.event_func)
  26788. fdai->event_info.event_func(
  26789. MSM_PCM_RT_EVT_BUF_RECFG,
  26790. fdai->event_info.priv_data);
  26791. fdai->be_srate = 0; /* might not need it */
  26792. }
  26793. bits_per_sample = msm_routing_get_bit_width(
  26794. bedai->format);
  26795. app_type =
  26796. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  26797. if (app_type && is_lsm) {
  26798. app_type_idx =
  26799. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  26800. sample_rate =
  26801. fe_dai_app_type_cfg[i][session_type][be_id]
  26802. .sample_rate;
  26803. bits_per_sample =
  26804. lsm_app_type_cfg[app_type_idx].bit_width;
  26805. } else if (app_type) {
  26806. app_type_idx =
  26807. msm_pcm_routing_get_app_type_idx(app_type);
  26808. sample_rate =
  26809. fe_dai_app_type_cfg[i][session_type]
  26810. [be_id].sample_rate;
  26811. bits_per_sample =
  26812. app_type_cfg[app_type_idx].bit_width;
  26813. } else
  26814. sample_rate = bedai->sample_rate;
  26815. /*
  26816. * check if ADM needs to be configured with different
  26817. * channel mapping than backend
  26818. */
  26819. if (!bedai->adm_override_ch)
  26820. channels = bedai->channel;
  26821. else
  26822. channels = bedai->adm_override_ch;
  26823. acdb_dev_id =
  26824. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  26825. topology = msm_routing_get_adm_topology(i, session_type,
  26826. be_id);
  26827. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  26828. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  26829. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  26830. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  26831. copp_idx = adm_open(port_id, path_type,
  26832. sample_rate, channels, topology,
  26833. fdai->perf_mode, bits_per_sample,
  26834. app_type, acdb_dev_id,
  26835. session_type);
  26836. if ((copp_idx < 0) ||
  26837. (copp_idx >= MAX_COPPS_PER_PORT)) {
  26838. pr_err("%s: adm open failed\n", __func__);
  26839. mutex_unlock(&routing_lock);
  26840. return -EINVAL;
  26841. }
  26842. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  26843. __func__, i, session_type, be_id);
  26844. set_bit(copp_idx,
  26845. &session_copp_map[i][session_type][be_id]);
  26846. if (msm_is_resample_needed(
  26847. sample_rate,
  26848. bedai->sample_rate))
  26849. adm_copp_mfc_cfg(port_id, copp_idx,
  26850. bedai->sample_rate);
  26851. msm_pcm_routing_build_matrix(i, session_type, path_type,
  26852. fdai->perf_mode, fdai->passthr_mode);
  26853. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  26854. (fdai->passthr_mode == LEGACY_PCM))
  26855. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  26856. topology, channels);
  26857. }
  26858. }
  26859. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26860. session_id = msm_pcm_routing_get_voc_sessionid(i);
  26861. if (session_id) {
  26862. pr_debug("%s voice session_id: 0x%x\n", __func__,
  26863. session_id);
  26864. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  26865. voc_path_type = RX_PATH;
  26866. else
  26867. voc_path_type = TX_PATH;
  26868. voc_set_route_flag(session_id, voc_path_type, 1);
  26869. memset(&voc_be_media_format, 0,
  26870. sizeof(struct media_format_info));
  26871. voc_be_media_format.port_id = bedai->port_id;
  26872. voc_be_media_format.num_channels = bedai->channel;
  26873. voc_be_media_format.sample_rate = bedai->sample_rate;
  26874. voc_be_media_format.bits_per_sample = bedai->format;
  26875. /* Defaulting this to 1 for voice call usecases */
  26876. voc_be_media_format.channel_mapping[0] = 1;
  26877. voc_set_device_config(session_id, voc_path_type,
  26878. &voc_be_media_format);
  26879. if (voc_get_route_flag(session_id, RX_PATH) &&
  26880. voc_get_route_flag(session_id, TX_PATH))
  26881. voc_enable_device(session_id);
  26882. }
  26883. }
  26884. /* Check if backend is an external ec ref port and set as needed */
  26885. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  26886. memset(&voc_be_media_format, 0,
  26887. sizeof(struct media_format_info));
  26888. /* Get format info for ec ref port from msm_bedais[] */
  26889. voc_be_media_format.port_id = bedai->port_id;
  26890. voc_be_media_format.num_channels = bedai->channel;
  26891. voc_be_media_format.bits_per_sample = bedai->format;
  26892. voc_be_media_format.sample_rate = bedai->sample_rate;
  26893. /* Defaulting this to 1 for voice call usecases */
  26894. voc_be_media_format.channel_mapping[0] = 1;
  26895. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  26896. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  26897. __func__, voc_be_media_format.port_id,
  26898. voc_be_media_format.num_channels,
  26899. voc_be_media_format.bits_per_sample,
  26900. voc_be_media_format.sample_rate);
  26901. }
  26902. done:
  26903. mutex_unlock(&routing_lock);
  26904. return 0;
  26905. }
  26906. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  26907. int fe_id)
  26908. {
  26909. int index, topo_id, be_idx;
  26910. unsigned long pp_config = 0;
  26911. bool mute_on;
  26912. int latency, session_type;
  26913. bool compr_passthr_mode = true;
  26914. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  26915. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  26916. pr_err("%s: Device pp params on invalid port %d\n",
  26917. __func__, port_id);
  26918. return -EINVAL;
  26919. }
  26920. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  26921. if (port_id == msm_bedais[be_idx].port_id)
  26922. break;
  26923. }
  26924. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  26925. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  26926. return -EINVAL;
  26927. }
  26928. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  26929. if (msm_bedais_pp_params[index].port_id == port_id)
  26930. break;
  26931. }
  26932. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  26933. pr_err("%s: Invalid backend pp params index %d\n",
  26934. __func__, index);
  26935. return -EINVAL;
  26936. }
  26937. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  26938. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  26939. pr_err("%s: Invalid passthrough topology 0x%x\n",
  26940. __func__, topo_id);
  26941. return -EINVAL;
  26942. }
  26943. session_type =
  26944. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  26945. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26946. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  26947. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  26948. compr_passthr_mode = false;
  26949. pp_config = msm_bedais_pp_params[index].pp_params_config;
  26950. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  26951. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  26952. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  26953. mute_on = msm_bedais_pp_params[index].mute_on;
  26954. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26955. adm_send_compressed_device_mute(port_id,
  26956. copp_idx,
  26957. mute_on);
  26958. }
  26959. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  26960. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  26961. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  26962. &pp_config);
  26963. latency = msm_bedais_pp_params[index].latency;
  26964. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26965. adm_send_compressed_device_latency(port_id,
  26966. copp_idx,
  26967. latency);
  26968. }
  26969. return 0;
  26970. }
  26971. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  26972. {
  26973. uint32_t topology = NULL_COPP_TOPOLOGY;
  26974. void *cal_info = NULL;
  26975. uint32_t size = 0;
  26976. /* Retrieve cal_info size from cal data*/
  26977. if (data_size < sizeof(struct audio_cal_type_basic) +
  26978. sizeof(struct audio_cal_info_adm_top)) {
  26979. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  26980. goto done;
  26981. }
  26982. size = data_size - sizeof(struct audio_cal_type_basic);
  26983. cal_info = kzalloc(size, GFP_KERNEL);
  26984. if (!cal_info)
  26985. goto done;
  26986. memcpy(cal_info,
  26987. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  26988. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  26989. kfree(cal_info);
  26990. cal_info = NULL;
  26991. done:
  26992. pr_debug("%s: Using topology %d\n", __func__, topology);
  26993. return topology;
  26994. }
  26995. static void msm_routing_load_topology(size_t data_size, void *data)
  26996. {
  26997. uint32_t topology_id;
  26998. int ret = -EINVAL;
  26999. topology_id = msm_routing_get_topology(data_size, data);
  27000. if (topology_id != NULL_COPP_TOPOLOGY)
  27001. ret = q6core_load_unload_topo_modules(topology_id,
  27002. CORE_LOAD_TOPOLOGY);
  27003. if (ret < 0)
  27004. pr_debug("%s %d load topology failed\n",
  27005. __func__, topology_id);
  27006. }
  27007. static void msm_routing_unload_topology(uint32_t topology_id)
  27008. {
  27009. int ret = -EINVAL;
  27010. if (topology_id != NULL_COPP_TOPOLOGY)
  27011. ret = q6core_load_unload_topo_modules(topology_id,
  27012. CORE_UNLOAD_TOPOLOGY);
  27013. if (ret < 0)
  27014. pr_debug("%s %d unload topology failed\n",
  27015. __func__, topology_id);
  27016. }
  27017. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27018. struct snd_ctl_elem_value *ucontrol)
  27019. {
  27020. int pp_id = ucontrol->value.integer.value[0];
  27021. int port_id = 0;
  27022. int index, be_idx, i, topo_id, idx;
  27023. bool mute;
  27024. int latency, session_type;
  27025. bool compr_passthr_mode = true;
  27026. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27027. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27028. port_id = msm_bedais[be_idx].port_id;
  27029. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27030. break;
  27031. }
  27032. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27033. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27034. return -EINVAL;
  27035. }
  27036. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27037. if (msm_bedais_pp_params[index].port_id == port_id)
  27038. break;
  27039. }
  27040. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27041. pr_err("%s: Invalid pp params backend index %d\n",
  27042. __func__, index);
  27043. return -EINVAL;
  27044. }
  27045. session_type =
  27046. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27047. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27048. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27049. MSM_FRONTEND_DAI_MM_SIZE) {
  27050. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27051. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27052. compr_passthr_mode = false;
  27053. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27054. unsigned long copp =
  27055. session_copp_map[i]
  27056. [SESSION_TYPE_RX][be_idx];
  27057. if (!test_bit(idx, &copp))
  27058. continue;
  27059. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27060. idx);
  27061. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27062. continue;
  27063. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27064. __func__, port_id, copp, msm_bedais[be_idx].active,
  27065. fe_dai_map[i][session_type].passthr_mode);
  27066. switch (pp_id) {
  27067. case ADM_PP_PARAM_MUTE_ID:
  27068. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27069. mute = ucontrol->value.integer.value[1] ? true : false;
  27070. msm_bedais_pp_params[index].mute_on = mute;
  27071. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27072. &msm_bedais_pp_params[index].pp_params_config);
  27073. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27074. adm_send_compressed_device_mute(port_id,
  27075. idx, mute);
  27076. break;
  27077. case ADM_PP_PARAM_LATENCY_ID:
  27078. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27079. msm_bedais_pp_params[index].latency =
  27080. ucontrol->value.integer.value[1];
  27081. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27082. &msm_bedais_pp_params[index].pp_params_config);
  27083. latency = msm_bedais_pp_params[index].latency =
  27084. ucontrol->value.integer.value[1];
  27085. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27086. adm_send_compressed_device_latency(port_id,
  27087. idx, latency);
  27088. break;
  27089. default:
  27090. pr_info("%s, device pp param %d not supported\n",
  27091. __func__, pp_id);
  27092. break;
  27093. }
  27094. }
  27095. }
  27096. return 0;
  27097. }
  27098. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27099. struct snd_ctl_elem_value *ucontrol)
  27100. {
  27101. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27102. return 0;
  27103. }
  27104. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27105. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27106. 0, 3, msm_routing_get_device_pp_params_mixer,
  27107. msm_routing_put_device_pp_params_mixer),
  27108. };
  27109. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27110. struct snd_ctl_elem_value *ucontrol)
  27111. {
  27112. ucontrol->value.integer.value[0] =
  27113. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27114. pr_debug("%s: status %ld\n", __func__,
  27115. ucontrol->value.integer.value[0]);
  27116. return 0;
  27117. }
  27118. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27119. struct snd_ctl_elem_value *ucontrol)
  27120. {
  27121. int32_t status = 0;
  27122. status = core_set_license(ucontrol->value.integer.value[0],
  27123. APTX_CLASSIC_DEC_LICENSE_ID);
  27124. pr_debug("%s: status %d\n", __func__, status);
  27125. return status;
  27126. }
  27127. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27128. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27129. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27130. msm_aptx_dec_license_control_put),
  27131. };
  27132. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27133. struct snd_ctl_elem_value *ucontrol)
  27134. {
  27135. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27136. uint32_t be_idx = ucontrol->value.integer.value[0];
  27137. int i;
  27138. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27139. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27140. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27141. pr_err("%s: Invalid channel map %d\n",
  27142. __func__, channel_map[i]);
  27143. return -EINVAL;
  27144. }
  27145. }
  27146. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27147. return 0;
  27148. }
  27149. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27150. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27151. MSM_BACKEND_DAI_MAX, 0,
  27152. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27153. msm_routing_put_port_chmap_mixer),
  27154. };
  27155. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27156. struct snd_ctl_elem_info *uinfo)
  27157. {
  27158. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27159. uinfo->count = sizeof(be_dai_name_table);
  27160. return 0;
  27161. }
  27162. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27163. unsigned int __user *bytes,
  27164. unsigned int size)
  27165. {
  27166. int i;
  27167. int ret = 0;
  27168. if (size < sizeof(be_dai_name_table)) {
  27169. pr_err("%s: invalid size %d requested, returning\n",
  27170. __func__, size);
  27171. ret = -EINVAL;
  27172. goto done;
  27173. }
  27174. /*
  27175. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27176. * needed when adding new backends
  27177. */
  27178. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27179. be_dai_name_table[i].be_id = i;
  27180. strlcpy(be_dai_name_table[i].be_name,
  27181. msm_bedais[i].name,
  27182. LPASS_BE_NAME_MAX_LENGTH);
  27183. }
  27184. ret = copy_to_user(bytes, &be_dai_name_table,
  27185. sizeof(be_dai_name_table));
  27186. if (ret) {
  27187. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27188. ret = -EFAULT;
  27189. }
  27190. done:
  27191. return ret;
  27192. }
  27193. static const struct snd_kcontrol_new
  27194. msm_routing_be_dai_name_table_mixer_controls[] = {
  27195. {
  27196. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27197. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27198. .info = msm_routing_be_dai_name_table_info,
  27199. .name = "Backend DAI Name Table",
  27200. .tlv.c = snd_soc_bytes_tlv_callback,
  27201. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27202. .max = sizeof(be_dai_name_table),
  27203. .get = msm_routing_be_dai_name_table_tlv_get,
  27204. }
  27205. },
  27206. };
  27207. static int msm_routing_stereo_channel_reverse_control_get(
  27208. struct snd_kcontrol *kcontrol,
  27209. struct snd_ctl_elem_value *ucontrol)
  27210. {
  27211. ucontrol->value.integer.value[0] = swap_ch;
  27212. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27213. ucontrol->value.integer.value[0]);
  27214. return 0;
  27215. }
  27216. static int msm_routing_stereo_channel_reverse_control_put(
  27217. struct snd_kcontrol *kcontrol,
  27218. struct snd_ctl_elem_value *ucontrol)
  27219. {
  27220. int i, idx, be_index, port_id;
  27221. int ret = 0;
  27222. unsigned long copp;
  27223. pr_debug("%s Swap channel value:%ld\n", __func__,
  27224. ucontrol->value.integer.value[0]);
  27225. swap_ch = ucontrol->value.integer.value[0];
  27226. mutex_lock(&routing_lock);
  27227. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27228. port_id = msm_bedais[be_index].port_id;
  27229. if (!msm_bedais[be_index].active)
  27230. continue;
  27231. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27232. MSM_FRONTEND_DAI_MM_SIZE) {
  27233. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27234. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27235. if (!test_bit(idx, &copp))
  27236. continue;
  27237. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27238. __func__, port_id, idx);
  27239. ret = adm_swap_speaker_channels(
  27240. port_id, idx,
  27241. msm_bedais[be_index].sample_rate,
  27242. swap_ch);
  27243. if (ret) {
  27244. pr_err("%s:Swap_channel failed, err=%d\n",
  27245. __func__, ret);
  27246. goto done;
  27247. }
  27248. }
  27249. }
  27250. }
  27251. done:
  27252. mutex_unlock(&routing_lock);
  27253. return ret;
  27254. }
  27255. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27256. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27257. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27258. msm_routing_stereo_channel_reverse_control_put),
  27259. };
  27260. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27261. struct snd_ctl_elem_info *uinfo)
  27262. {
  27263. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  27264. uinfo->count = 1;
  27265. return 0;
  27266. }
  27267. static int msm_routing_instance_id_support_put(
  27268. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27269. {
  27270. bool supported = ucontrol->value.integer.value[0] ? true : false;
  27271. q6common_update_instance_id_support(supported);
  27272. return 0;
  27273. }
  27274. static int msm_routing_instance_id_support_get(
  27275. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27276. {
  27277. bool supported = false;
  27278. supported = q6common_is_instance_id_supported();
  27279. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  27280. return 0;
  27281. }
  27282. static const struct snd_kcontrol_new
  27283. msm_routing_feature_support_mixer_controls[] = {
  27284. {
  27285. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  27286. SNDRV_CTL_ELEM_ACCESS_WRITE,
  27287. .info = msm_routing_instance_id_support_info,
  27288. .name = "Instance ID Support",
  27289. .put = msm_routing_instance_id_support_put,
  27290. .get = msm_routing_instance_id_support_get,
  27291. },
  27292. };
  27293. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  27294. .hw_params = msm_pcm_routing_hw_params,
  27295. .close = msm_pcm_routing_close,
  27296. .prepare = msm_pcm_routing_prepare,
  27297. };
  27298. /* Not used but frame seems to require it */
  27299. static int msm_routing_probe(struct snd_soc_component *component)
  27300. {
  27301. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  27302. ARRAY_SIZE(msm_qdsp6_widgets));
  27303. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  27304. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  27305. snd_soc_dapm_add_routes(&component->dapm, intercon,
  27306. ARRAY_SIZE(intercon));
  27307. snd_soc_dapm_new_widgets(component->dapm.card);
  27308. snd_soc_add_component_controls(component, lsm_controls,
  27309. ARRAY_SIZE(lsm_controls));
  27310. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  27311. ARRAY_SIZE(aanc_slim_0_rx_mux));
  27312. snd_soc_add_component_controls(component, aanc_noise_level,
  27313. ARRAY_SIZE(aanc_noise_level));
  27314. snd_soc_add_component_controls(component, msm_voc_session_controls,
  27315. ARRAY_SIZE(msm_voc_session_controls));
  27316. snd_soc_add_component_controls(component, app_type_cfg_controls,
  27317. ARRAY_SIZE(app_type_cfg_controls));
  27318. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  27319. ARRAY_SIZE(lsm_app_type_cfg_controls));
  27320. snd_soc_add_component_controls(component, module_cfg_controls,
  27321. ARRAY_SIZE(module_cfg_controls));
  27322. snd_soc_add_component_controls(component,
  27323. stereo_to_custom_stereo_controls,
  27324. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  27325. snd_soc_add_component_controls(component, ec_ref_param_controls,
  27326. ARRAY_SIZE(ec_ref_param_controls));
  27327. snd_soc_add_component_controls(component, channel_mixer_controls,
  27328. ARRAY_SIZE(channel_mixer_controls));
  27329. msm_qti_pp_add_controls(component);
  27330. msm_dts_srs_tm_add_controls(component);
  27331. msm_dolby_dap_add_controls(component);
  27332. snd_soc_add_component_controls(component,
  27333. use_ds1_or_ds2_controls,
  27334. ARRAY_SIZE(use_ds1_or_ds2_controls));
  27335. snd_soc_add_component_controls(component,
  27336. device_pp_params_mixer_controls,
  27337. ARRAY_SIZE(device_pp_params_mixer_controls));
  27338. snd_soc_add_component_controls(component,
  27339. msm_routing_be_dai_name_table_mixer_controls,
  27340. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  27341. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  27342. ARRAY_SIZE(msm_source_tracking_controls));
  27343. snd_soc_add_component_controls(component, adm_channel_config_controls,
  27344. ARRAY_SIZE(adm_channel_config_controls));
  27345. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  27346. ARRAY_SIZE(aptx_dec_license_controls));
  27347. snd_soc_add_component_controls(component,
  27348. stereo_channel_reverse_control,
  27349. ARRAY_SIZE(stereo_channel_reverse_control));
  27350. snd_soc_add_component_controls(
  27351. component, msm_routing_feature_support_mixer_controls,
  27352. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  27353. snd_soc_add_component_controls(component,
  27354. port_multi_channel_map_mixer_controls,
  27355. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  27356. return 0;
  27357. }
  27358. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  27359. {
  27360. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  27361. }
  27362. void msm_routing_pcm_free(struct snd_pcm *pcm)
  27363. {
  27364. msm_pcm_routing_hwdep_free(pcm);
  27365. }
  27366. static struct snd_soc_component_driver msm_soc_routing_component = {
  27367. .name = DRV_NAME,
  27368. .ops = &msm_routing_pcm_ops,
  27369. .probe = msm_routing_probe,
  27370. .pcm_new = msm_routing_pcm_new,
  27371. .pcm_free = msm_routing_pcm_free,
  27372. };
  27373. static int msm_routing_pcm_probe(struct platform_device *pdev)
  27374. {
  27375. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  27376. return snd_soc_register_component(&pdev->dev,
  27377. &msm_soc_routing_component,
  27378. NULL, 0);
  27379. }
  27380. static int msm_routing_pcm_remove(struct platform_device *pdev)
  27381. {
  27382. snd_soc_unregister_component(&pdev->dev);
  27383. return 0;
  27384. }
  27385. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  27386. {.compatible = "qcom,msm-pcm-routing"},
  27387. {}
  27388. };
  27389. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  27390. static struct platform_driver msm_routing_pcm_driver = {
  27391. .driver = {
  27392. .name = "msm-pcm-routing",
  27393. .owner = THIS_MODULE,
  27394. .of_match_table = msm_pcm_routing_dt_match,
  27395. .suppress_bind_attrs = true,
  27396. },
  27397. .probe = msm_routing_pcm_probe,
  27398. .remove = msm_routing_pcm_remove,
  27399. };
  27400. int msm_routing_check_backend_enabled(int fedai_id)
  27401. {
  27402. int i;
  27403. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  27404. /* bad ID assigned in machine driver */
  27405. pr_err("%s: bad MM ID\n", __func__);
  27406. return 0;
  27407. }
  27408. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27409. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  27410. return msm_bedais[i].active;
  27411. }
  27412. return 0;
  27413. }
  27414. static int get_cal_type_index(int32_t cal_type)
  27415. {
  27416. int ret = -EINVAL;
  27417. switch (cal_type) {
  27418. case ADM_TOPOLOGY_CAL_TYPE:
  27419. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  27420. break;
  27421. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  27422. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  27423. break;
  27424. default:
  27425. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  27426. }
  27427. return ret;
  27428. }
  27429. static int msm_routing_set_cal(int32_t cal_type,
  27430. size_t data_size, void *data)
  27431. {
  27432. int ret = 0;
  27433. int cal_index;
  27434. pr_debug("%s\n", __func__);
  27435. cal_index = get_cal_type_index(cal_type);
  27436. if (cal_index < 0) {
  27437. pr_err("%s: Could not get cal index %d\n",
  27438. __func__, cal_index);
  27439. ret = -EINVAL;
  27440. goto done;
  27441. }
  27442. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  27443. if (ret < 0) {
  27444. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  27445. __func__, ret, cal_type);
  27446. ret = -EINVAL;
  27447. goto done;
  27448. }
  27449. /* Pre-load if it is ADM topology */
  27450. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  27451. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27452. msm_routing_load_topology(data_size, data);
  27453. }
  27454. done:
  27455. return ret;
  27456. }
  27457. static void msm_routing_delete_cal_data(void)
  27458. {
  27459. pr_debug("%s\n", __func__);
  27460. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27461. }
  27462. static int msm_routing_init_cal_data(void)
  27463. {
  27464. int ret = 0;
  27465. struct cal_type_info cal_type_info[] = {
  27466. {{ADM_TOPOLOGY_CAL_TYPE,
  27467. {NULL, NULL, NULL,
  27468. msm_routing_set_cal, NULL, NULL} },
  27469. {NULL, NULL, cal_utils_match_buf_num} },
  27470. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  27471. {NULL, NULL, NULL,
  27472. msm_routing_set_cal, NULL, NULL} },
  27473. {NULL, NULL, cal_utils_match_buf_num} },
  27474. };
  27475. pr_debug("%s\n", __func__);
  27476. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  27477. &cal_type_info[0]);
  27478. if (ret < 0) {
  27479. pr_err("%s: could not create cal type!\n",
  27480. __func__);
  27481. ret = -EINVAL;
  27482. goto err;
  27483. }
  27484. return ret;
  27485. err:
  27486. msm_routing_delete_cal_data();
  27487. return ret;
  27488. }
  27489. int __init msm_soc_routing_platform_init(void)
  27490. {
  27491. mutex_init(&routing_lock);
  27492. if (msm_routing_init_cal_data())
  27493. pr_err("%s: could not init cal data!\n", __func__);
  27494. afe_set_routing_callback(
  27495. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  27496. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  27497. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  27498. return platform_driver_register(&msm_routing_pcm_driver);
  27499. }
  27500. void msm_soc_routing_platform_exit(void)
  27501. {
  27502. msm_routing_delete_cal_data();
  27503. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  27504. mutex_destroy(&routing_lock);
  27505. platform_driver_unregister(&msm_routing_pcm_driver);
  27506. }
  27507. MODULE_DESCRIPTION("MSM routing platform driver");
  27508. MODULE_LICENSE("GPL v2");