msm-pcm-routing-v2.c 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784
  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. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5024. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5025. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5026. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5027. };
  5028. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5029. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5030. };
  5031. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5032. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5033. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5034. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5035. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5036. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5037. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5038. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5039. msm_route_ec_ref_params_enum[0],
  5040. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5041. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5042. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5043. msm_ec_ref_chmixer_weights_put),
  5044. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5045. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5046. msm_ec_ref_chmixer_weights_put),
  5047. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5048. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5049. msm_ec_ref_chmixer_weights_put),
  5050. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5051. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5052. msm_ec_ref_chmixer_weights_put),
  5053. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5054. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5055. msm_ec_ref_chmixer_weights_put),
  5056. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5057. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5058. msm_ec_ref_chmixer_weights_put),
  5059. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5060. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5061. };
  5062. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5063. struct snd_ctl_elem_value *ucontrol)
  5064. {
  5065. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5066. mutex_lock(&routing_lock);
  5067. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5068. mutex_unlock(&routing_lock);
  5069. return 0;
  5070. }
  5071. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5072. struct snd_ctl_elem_value *ucontrol)
  5073. {
  5074. int value = ucontrol->value.integer.value[0];
  5075. struct snd_soc_dapm_widget *widget =
  5076. snd_soc_dapm_kcontrol_widget(kcontrol);
  5077. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5078. struct snd_soc_dapm_update *update = NULL;
  5079. mutex_lock(&routing_lock);
  5080. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5081. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5082. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5083. __func__, msm_route_ec_ref_rx);
  5084. mutex_unlock(&routing_lock);
  5085. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5086. msm_route_ec_ref_rx, e, update);
  5087. return 0;
  5088. }
  5089. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5090. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5091. msm_route_ec_ref_rx_enum[0],
  5092. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5093. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5094. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5095. msm_route_ec_ref_rx_enum[0],
  5096. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5097. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5098. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5099. msm_route_ec_ref_rx_enum[0],
  5100. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5101. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5102. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5103. msm_route_ec_ref_rx_enum[0],
  5104. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5105. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5106. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5107. msm_route_ec_ref_rx_enum[0],
  5108. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5109. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5110. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5111. msm_route_ec_ref_rx_enum[0],
  5112. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5113. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5114. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5115. msm_route_ec_ref_rx_enum[0],
  5116. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5117. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5118. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5119. msm_route_ec_ref_rx_enum[0],
  5120. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5121. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5122. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5123. msm_route_ec_ref_rx_enum[0],
  5124. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5125. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5126. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5127. msm_route_ec_ref_rx_enum[0],
  5128. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5129. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5130. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5131. msm_route_ec_ref_rx_enum[0],
  5132. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5133. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5134. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5135. msm_route_ec_ref_rx_enum[0],
  5136. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5137. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5138. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5139. msm_route_ec_ref_rx_enum[0],
  5140. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5141. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5142. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5143. msm_route_ec_ref_rx_enum[0],
  5144. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5145. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5146. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5147. msm_route_ec_ref_rx_enum[0],
  5148. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5149. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5150. struct snd_ctl_elem_value *ucontrol)
  5151. {
  5152. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5153. mutex_lock(&routing_lock);
  5154. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5155. mutex_unlock(&routing_lock);
  5156. return 0;
  5157. }
  5158. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5159. struct snd_ctl_elem_value *ucontrol)
  5160. {
  5161. struct snd_soc_dapm_widget *widget =
  5162. snd_soc_dapm_kcontrol_widget(kcontrol);
  5163. int mux = ucontrol->value.enumerated.item[0];
  5164. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5165. int ret = 1;
  5166. bool state = true;
  5167. uint16_t ext_ec_ref_port_id;
  5168. struct snd_soc_dapm_update *update = NULL;
  5169. if (mux >= e->items) {
  5170. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5171. return -EINVAL;
  5172. }
  5173. mutex_lock(&routing_lock);
  5174. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5175. switch (msm_route_ext_ec_ref) {
  5176. case EXT_EC_REF_PRI_MI2S_TX:
  5177. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5178. break;
  5179. case EXT_EC_REF_SEC_MI2S_TX:
  5180. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5181. break;
  5182. case EXT_EC_REF_TERT_MI2S_TX:
  5183. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5184. break;
  5185. case EXT_EC_REF_QUAT_MI2S_TX:
  5186. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5187. break;
  5188. case EXT_EC_REF_QUIN_MI2S_TX:
  5189. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5190. break;
  5191. case EXT_EC_REF_SLIM_1_TX:
  5192. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5193. break;
  5194. case EXT_EC_REF_SEC_TDM_TX:
  5195. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5196. break;
  5197. case EXT_EC_REF_NONE:
  5198. default:
  5199. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5200. state = false;
  5201. break;
  5202. }
  5203. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5204. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5205. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5206. mutex_unlock(&routing_lock);
  5207. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5208. update);
  5209. } else {
  5210. ret = -EINVAL;
  5211. mutex_unlock(&routing_lock);
  5212. }
  5213. return ret;
  5214. }
  5215. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5216. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5217. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5218. "SLIM_1_TX", "SEC_TDM_TX"};
  5219. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5220. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5221. };
  5222. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5223. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5224. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5225. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5226. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5227. MSM_BACKEND_DAI_PRI_I2S_RX,
  5228. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5229. msm_routing_put_audio_mixer),
  5230. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5231. MSM_BACKEND_DAI_PRI_I2S_RX,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5235. MSM_BACKEND_DAI_PRI_I2S_RX,
  5236. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5237. msm_routing_put_audio_mixer),
  5238. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_PRI_I2S_RX,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_PRI_I2S_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_PRI_I2S_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_PRI_I2S_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_PRI_I2S_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_PRI_I2S_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_PRI_I2S_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_PRI_I2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_PRI_I2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_PRI_I2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_PRI_I2S_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_PRI_I2S_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_PRI_I2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. };
  5319. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5320. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_SEC_I2S_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_SEC_I2S_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_SEC_I2S_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_SEC_I2S_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_SEC_I2S_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_SEC_I2S_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_SEC_I2S_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_SEC_I2S_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_SEC_I2S_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_SEC_I2S_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SEC_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SEC_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_SEC_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_SEC_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_SEC_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_SEC_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. };
  5413. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5414. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. };
  5507. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5508. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. };
  5601. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. };
  5671. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5672. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. };
  5765. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5766. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. };
  5859. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_MI2S_RX,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_MI2S_RX,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_MI2S_RX,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_MI2S_RX,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_MI2S_RX,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_MI2S_RX,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_MI2S_RX,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_MI2S_RX,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_MI2S_RX,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_MI2S_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_MI2S_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_MI2S_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_MI2S_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_MI2S_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_MI2S_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_MI2S_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. };
  5953. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5954. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. };
  6047. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6048. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. };
  6141. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6142. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. };
  6231. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6232. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. };
  6317. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6318. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. };
  6323. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6324. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. };
  6417. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6418. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. };
  6511. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6512. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. };
  6577. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6578. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. };
  6643. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6644. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_HDMI_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_HDMI_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_HDMI_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_HDMI_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_HDMI_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_HDMI_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_HDMI_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_HDMI_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_HDMI_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_HDMI_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_HDMI_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_HDMI_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_HDMI_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_HDMI_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_HDMI_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_HDMI_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_HDMI_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_HDMI_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_HDMI_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_HDMI_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_HDMI_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_HDMI_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_HDMI_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. };
  6737. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6738. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. };
  6807. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  6808. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. };
  6877. /* incall music delivery mixer */
  6878. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  6879. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. };
  6896. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  6897. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. };
  6914. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  6915. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. };
  6932. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  6933. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. };
  7002. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. };
  7072. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7073. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. };
  7142. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7143. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. };
  7212. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7213. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. };
  7282. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7283. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. };
  7352. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7353. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. };
  7422. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7423. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. };
  7492. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7493. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. };
  7562. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7563. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. };
  7632. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. };
  7702. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7703. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. };
  7772. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7773. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. };
  7842. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  7843. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_USB_RX,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_USB_RX,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_USB_RX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_USB_RX,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_USB_RX,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_USB_RX,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_USB_RX,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_USB_RX,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_USB_RX,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_USB_RX,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_USB_RX,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_USB_RX,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_USB_RX,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_USB_RX,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_USB_RX,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_USB_RX,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_USB_RX,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. };
  7912. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  7913. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. };
  8006. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8007. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. };
  8076. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8077. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_INT_FM_RX,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_INT_FM_RX,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_INT_FM_RX,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_INT_FM_RX,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_INT_FM_RX,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_INT_FM_RX,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_INT_FM_RX,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_INT_FM_RX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_INT_FM_RX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_INT_FM_RX,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_INT_FM_RX,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_INT_FM_RX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_INT_FM_RX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_INT_FM_RX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_INT_FM_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT_FM_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_INT_FM_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_INT_FM_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_INT_FM_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_INT_FM_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_INT_FM_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_INT_FM_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_INT_FM_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. };
  8170. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_AFE_PCM_RX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_AFE_PCM_RX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_AFE_PCM_RX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_AFE_PCM_RX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_AFE_PCM_RX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_AFE_PCM_RX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_AFE_PCM_RX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_AFE_PCM_RX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_AFE_PCM_RX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_AFE_PCM_RX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_AFE_PCM_RX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_AFE_PCM_RX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_AFE_PCM_RX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_AFE_PCM_RX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_AFE_PCM_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_AFE_PCM_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_AFE_PCM_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_AFE_PCM_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_AFE_PCM_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_AFE_PCM_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_AFE_PCM_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_AFE_PCM_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_AFE_PCM_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. };
  8264. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_AUXPCM_RX,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_AUXPCM_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_AUXPCM_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_AUXPCM_RX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_AUXPCM_RX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_AUXPCM_RX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_AUXPCM_RX,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_AUXPCM_RX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_AUXPCM_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_AUXPCM_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_AUXPCM_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_AUXPCM_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_AUXPCM_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_AUXPCM_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_AUXPCM_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_AUXPCM_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_AUXPCM_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_AUXPCM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_AUXPCM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_AUXPCM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_AUXPCM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_AUXPCM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_AUXPCM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_AUXPCM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. };
  8362. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. };
  8460. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8461. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. };
  8530. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8531. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. };
  8600. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8601. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. };
  8670. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8671. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. };
  8740. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8741. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. };
  8810. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  8811. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. };
  8880. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  8881. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. };
  8950. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  8951. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. };
  9020. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9021. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. };
  9086. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9087. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. };
  9156. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9157. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. };
  9226. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. };
  9296. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. };
  9366. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9367. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. };
  9432. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. };
  9502. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. };
  9568. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9569. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. };
  9638. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9639. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. };
  9708. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9709. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. };
  9778. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  9779. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. };
  9848. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  9849. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. };
  9922. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  9923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. };
  9988. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  9989. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. };
  10062. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10126. msm_routing_put_audio_mixer),
  10127. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10129. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10130. msm_routing_put_audio_mixer),
  10131. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10133. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10134. msm_routing_put_audio_mixer),
  10135. };
  10136. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10137. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. };
  10210. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10211. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10268. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10269. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10270. msm_routing_put_audio_mixer),
  10271. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10274. msm_routing_put_audio_mixer),
  10275. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10277. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10278. msm_routing_put_audio_mixer),
  10279. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. };
  10284. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10285. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10343. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10344. msm_routing_put_audio_mixer),
  10345. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10348. msm_routing_put_audio_mixer),
  10349. };
  10350. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10351. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. };
  10424. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10425. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. };
  10498. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. };
  10572. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. };
  10646. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10647. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. };
  10712. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  10713. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. };
  10786. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  10787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. };
  10860. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  10861. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. };
  10934. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  10935. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_PRI_I2S_TX,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10938. msm_routing_put_audio_mixer),
  10939. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_MI2S_TX,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_AUXPCM_TX,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_INT_FM_TX,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_AFE_PCM_TX,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_USB_TX,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. };
  11208. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_INT_FM_TX,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_MI2S_TX,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_USB_TX,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. };
  11430. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11431. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_INT_FM_TX,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_MI2S_TX,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_AFE_PCM_TX,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_AUXPCM_TX,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. };
  11652. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11653. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_INT_FM_TX,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_AFE_PCM_TX,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_USB_TX,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11855. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11856. msm_routing_put_audio_mixer),
  11857. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. };
  11866. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  11867. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_INT_FM_TX,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_MI2S_TX,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_AFE_PCM_TX,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_AUXPCM_TX,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_USB_TX,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. };
  12112. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12113. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_INT_FM_TX,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_AUXPCM_TX,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_USB_TX,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. };
  12334. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12335. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_INT_FM_TX,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_AFE_PCM_TX,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_USB_TX,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12518. msm_routing_put_audio_mixer),
  12519. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. };
  12560. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12561. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_INT_FM_TX,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_AFE_PCM_TX,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12632. msm_routing_put_audio_mixer),
  12633. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12644. msm_routing_put_audio_mixer),
  12645. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12647. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12648. msm_routing_put_audio_mixer),
  12649. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12651. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12652. msm_routing_put_audio_mixer),
  12653. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12656. msm_routing_put_audio_mixer),
  12657. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12659. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12660. msm_routing_put_audio_mixer),
  12661. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12663. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12664. msm_routing_put_audio_mixer),
  12665. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12667. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12668. msm_routing_put_audio_mixer),
  12669. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12672. msm_routing_put_audio_mixer),
  12673. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_USB_TX,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_MI2S_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_AUXPCM_TX,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12732. msm_routing_get_audio_mixer,
  12733. msm_routing_put_audio_mixer),
  12734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12735. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12736. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12737. msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12742. msm_routing_get_audio_mixer,
  12743. msm_routing_put_audio_mixer),
  12744. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12747. msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12752. msm_routing_get_audio_mixer,
  12753. msm_routing_put_audio_mixer),
  12754. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12755. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12756. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12757. msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. };
  12776. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  12777. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_INT_FM_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_AFE_PCM_TX,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. };
  12938. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  12939. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_INT_FM_TX,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_AFE_PCM_TX,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_USB_TX,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_MI2S_TX,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_AUXPCM_TX,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13074. msm_routing_get_audio_mixer,
  13075. msm_routing_put_audio_mixer),
  13076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13078. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13079. msm_routing_get_audio_mixer,
  13080. msm_routing_put_audio_mixer),
  13081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13084. msm_routing_get_audio_mixer,
  13085. msm_routing_put_audio_mixer),
  13086. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13088. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13089. msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13094. msm_routing_get_audio_mixer,
  13095. msm_routing_put_audio_mixer),
  13096. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13099. msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. };
  13118. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13119. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13125. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13126. msm_routing_put_audio_mixer),
  13127. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13129. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13130. msm_routing_put_audio_mixer),
  13131. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13133. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13134. msm_routing_put_audio_mixer),
  13135. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_INT_FM_TX,
  13137. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13138. msm_routing_put_audio_mixer),
  13139. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13141. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13142. msm_routing_put_audio_mixer),
  13143. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_AFE_PCM_TX,
  13145. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13146. msm_routing_put_audio_mixer),
  13147. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13149. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13150. msm_routing_put_audio_mixer),
  13151. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13153. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13154. msm_routing_put_audio_mixer),
  13155. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13157. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13158. msm_routing_put_audio_mixer),
  13159. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13161. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13166. msm_routing_put_audio_mixer),
  13167. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13169. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13170. msm_routing_put_audio_mixer),
  13171. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13173. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13174. msm_routing_put_audio_mixer),
  13175. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13177. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13178. msm_routing_put_audio_mixer),
  13179. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13181. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13190. msm_routing_get_audio_mixer,
  13191. msm_routing_put_audio_mixer),
  13192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13194. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13195. msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13200. msm_routing_get_audio_mixer,
  13201. msm_routing_put_audio_mixer),
  13202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13204. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13205. msm_routing_get_audio_mixer,
  13206. msm_routing_put_audio_mixer),
  13207. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13210. msm_routing_get_audio_mixer,
  13211. msm_routing_put_audio_mixer),
  13212. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13214. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13215. msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. };
  13230. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13231. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13233. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13234. msm_routing_put_audio_mixer),
  13235. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13238. msm_routing_put_audio_mixer),
  13239. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13241. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13242. msm_routing_put_audio_mixer),
  13243. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13245. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13246. msm_routing_put_audio_mixer),
  13247. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_INT_FM_TX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_AFE_PCM_TX,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13306. msm_routing_get_audio_mixer,
  13307. msm_routing_put_audio_mixer),
  13308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13310. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13311. msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13316. msm_routing_get_audio_mixer,
  13317. msm_routing_put_audio_mixer),
  13318. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13319. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13320. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13321. msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13326. msm_routing_get_audio_mixer,
  13327. msm_routing_put_audio_mixer),
  13328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13330. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13331. msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. };
  13346. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13347. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_INT_FM_TX,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_AFE_PCM_TX,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13406. msm_routing_put_audio_mixer),
  13407. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13409. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13422. msm_routing_get_audio_mixer,
  13423. msm_routing_put_audio_mixer),
  13424. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13426. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13427. msm_routing_get_audio_mixer,
  13428. msm_routing_put_audio_mixer),
  13429. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13430. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13431. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13432. msm_routing_get_audio_mixer,
  13433. msm_routing_put_audio_mixer),
  13434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13436. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13437. msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13442. msm_routing_get_audio_mixer,
  13443. msm_routing_put_audio_mixer),
  13444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13446. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13447. msm_routing_get_audio_mixer,
  13448. msm_routing_put_audio_mixer),
  13449. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13451. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13452. msm_routing_put_audio_mixer),
  13453. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13455. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13456. msm_routing_put_audio_mixer),
  13457. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13459. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13460. msm_routing_put_audio_mixer),
  13461. };
  13462. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13463. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13602. msm_routing_put_audio_mixer),
  13603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13605. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13614. msm_routing_put_audio_mixer),
  13615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13617. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13622. msm_routing_put_audio_mixer),
  13623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13625. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13626. msm_routing_put_audio_mixer),
  13627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13629. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13630. msm_routing_put_audio_mixer),
  13631. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13633. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13634. msm_routing_put_audio_mixer),
  13635. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13637. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13638. msm_routing_put_audio_mixer),
  13639. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13641. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13642. msm_routing_put_audio_mixer),
  13643. };
  13644. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13645. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_AUXPCM_TX,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13659. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13660. msm_routing_put_audio_mixer),
  13661. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13663. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13664. msm_routing_put_audio_mixer),
  13665. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13667. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13668. msm_routing_put_audio_mixer),
  13669. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13696. msm_routing_put_audio_mixer),
  13697. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13699. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13700. msm_routing_put_audio_mixer),
  13701. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13703. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13720. msm_routing_put_audio_mixer),
  13721. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13722. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13723. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13724. msm_routing_put_audio_mixer),
  13725. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13727. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13728. msm_routing_put_audio_mixer),
  13729. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13731. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13732. msm_routing_put_audio_mixer),
  13733. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13735. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13740. msm_routing_put_audio_mixer),
  13741. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13743. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13748. msm_routing_put_audio_mixer),
  13749. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13752. msm_routing_put_audio_mixer),
  13753. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13755. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13776. msm_routing_put_audio_mixer),
  13777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13779. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13780. msm_routing_put_audio_mixer),
  13781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13783. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13784. msm_routing_put_audio_mixer),
  13785. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. };
  13810. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  13811. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. };
  13868. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  13869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13871. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13872. msm_routing_put_audio_mixer),
  13873. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13875. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13876. msm_routing_put_audio_mixer),
  13877. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_INT_FM_TX,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_AFE_PCM_TX,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13927. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13928. msm_routing_put_audio_mixer),
  13929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13931. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13932. msm_routing_put_audio_mixer),
  13933. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13935. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13936. msm_routing_put_audio_mixer),
  13937. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13939. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13940. msm_routing_put_audio_mixer),
  13941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13944. msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13949. msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13954. msm_routing_get_audio_mixer,
  13955. msm_routing_put_audio_mixer),
  13956. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13958. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13959. msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13964. msm_routing_get_audio_mixer,
  13965. msm_routing_put_audio_mixer),
  13966. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13968. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13969. msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. };
  13984. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  13985. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_INT_FM_TX,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_AFE_PCM_TX,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14060. msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14065. msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14070. msm_routing_get_audio_mixer,
  14071. msm_routing_put_audio_mixer),
  14072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14074. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14075. msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14080. msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14085. msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. };
  14100. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14101. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_INT_FM_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_AFE_PCM_TX,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14160. msm_routing_put_audio_mixer),
  14161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14163. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14164. msm_routing_put_audio_mixer),
  14165. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14172. msm_routing_get_audio_mixer,
  14173. msm_routing_put_audio_mixer),
  14174. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14175. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14176. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14177. msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14182. msm_routing_get_audio_mixer,
  14183. msm_routing_put_audio_mixer),
  14184. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14185. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14186. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14187. msm_routing_get_audio_mixer,
  14188. msm_routing_put_audio_mixer),
  14189. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14191. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14192. msm_routing_get_audio_mixer,
  14193. msm_routing_put_audio_mixer),
  14194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14196. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14197. msm_routing_get_audio_mixer,
  14198. msm_routing_put_audio_mixer),
  14199. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14201. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14202. msm_routing_put_audio_mixer),
  14203. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14205. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14206. msm_routing_put_audio_mixer),
  14207. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14209. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14210. msm_routing_put_audio_mixer),
  14211. };
  14212. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14213. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_PRI_I2S_RX,
  14215. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14216. msm_routing_put_voice_mixer),
  14217. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_PRI_I2S_RX,
  14219. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14220. msm_routing_put_voice_mixer),
  14221. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_PRI_I2S_RX,
  14223. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14224. msm_routing_put_voice_mixer),
  14225. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_PRI_I2S_RX,
  14227. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14228. msm_routing_put_voice_mixer),
  14229. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_PRI_I2S_RX,
  14231. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14232. msm_routing_put_voice_mixer),
  14233. };
  14234. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14235. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_SEC_I2S_RX,
  14237. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14238. msm_routing_put_voice_mixer),
  14239. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_SEC_I2S_RX,
  14241. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14242. msm_routing_put_voice_mixer),
  14243. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_SEC_I2S_RX,
  14245. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14246. msm_routing_put_voice_mixer),
  14247. };
  14248. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14249. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14251. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14252. msm_routing_put_voice_mixer),
  14253. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14255. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14256. msm_routing_put_voice_mixer),
  14257. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14259. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14260. msm_routing_put_voice_mixer),
  14261. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14263. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14264. msm_routing_put_voice_mixer),
  14265. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14267. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14268. msm_routing_put_voice_mixer),
  14269. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14271. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14272. msm_routing_put_voice_mixer),
  14273. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14275. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14276. msm_routing_put_voice_mixer),
  14277. };
  14278. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14279. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14281. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14282. msm_routing_put_voice_mixer),
  14283. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14285. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14286. msm_routing_put_voice_mixer),
  14287. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14289. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14290. msm_routing_put_voice_mixer),
  14291. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14293. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14294. msm_routing_put_voice_mixer),
  14295. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14297. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14298. msm_routing_put_voice_mixer),
  14299. };
  14300. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14301. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14303. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14304. msm_routing_put_voice_mixer),
  14305. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14307. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14308. msm_routing_put_voice_mixer),
  14309. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14311. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14312. msm_routing_put_voice_mixer),
  14313. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14315. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14316. msm_routing_put_voice_mixer),
  14317. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14319. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14320. msm_routing_put_voice_mixer),
  14321. };
  14322. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14323. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_USB_RX,
  14325. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14326. msm_routing_put_voice_mixer),
  14327. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_USB_RX,
  14329. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14330. msm_routing_put_voice_mixer),
  14331. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_USB_RX,
  14333. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14334. msm_routing_put_voice_mixer),
  14335. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_USB_RX,
  14337. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14338. msm_routing_put_voice_mixer),
  14339. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_USB_RX,
  14341. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14342. msm_routing_put_voice_mixer),
  14343. };
  14344. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14345. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14347. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14348. msm_routing_put_voice_mixer),
  14349. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14351. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14352. msm_routing_put_voice_mixer),
  14353. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14355. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14356. msm_routing_put_voice_mixer),
  14357. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14359. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14360. msm_routing_put_voice_mixer),
  14361. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14363. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14364. msm_routing_put_voice_mixer),
  14365. };
  14366. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14367. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14369. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14370. msm_routing_put_voice_mixer),
  14371. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14373. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14374. msm_routing_put_voice_mixer),
  14375. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14377. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14378. msm_routing_put_voice_mixer),
  14379. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14381. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14382. msm_routing_put_voice_mixer),
  14383. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14385. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14386. msm_routing_put_voice_mixer),
  14387. };
  14388. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14389. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14391. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14392. msm_routing_put_voice_mixer),
  14393. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14395. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14396. msm_routing_put_voice_mixer),
  14397. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14399. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14400. msm_routing_put_voice_mixer),
  14401. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14403. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14404. msm_routing_put_voice_mixer),
  14405. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14407. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14408. msm_routing_put_voice_mixer),
  14409. };
  14410. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14411. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_MI2S_RX,
  14413. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14414. msm_routing_put_voice_mixer),
  14415. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_MI2S_RX,
  14417. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14418. msm_routing_put_voice_mixer),
  14419. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_MI2S_RX,
  14421. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14422. msm_routing_put_voice_mixer),
  14423. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_MI2S_RX,
  14425. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14426. msm_routing_put_voice_mixer),
  14427. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_MI2S_RX,
  14429. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14430. msm_routing_put_voice_mixer),
  14431. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_MI2S_RX,
  14433. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14434. msm_routing_put_voice_mixer),
  14435. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_MI2S_RX,
  14437. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14438. msm_routing_put_voice_mixer),
  14439. };
  14440. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14441. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14443. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14444. msm_routing_put_voice_mixer),
  14445. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14447. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14448. msm_routing_put_voice_mixer),
  14449. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14451. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14452. msm_routing_put_voice_mixer),
  14453. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14455. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14456. msm_routing_put_voice_mixer),
  14457. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14459. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14460. msm_routing_put_voice_mixer),
  14461. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14463. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14464. msm_routing_put_voice_mixer),
  14465. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14467. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14468. msm_routing_put_voice_mixer),
  14469. };
  14470. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14471. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14473. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14474. msm_routing_put_voice_mixer),
  14475. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14477. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14478. msm_routing_put_voice_mixer),
  14479. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14481. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14482. msm_routing_put_voice_mixer),
  14483. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14485. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14486. msm_routing_put_voice_mixer),
  14487. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14489. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14490. msm_routing_put_voice_mixer),
  14491. };
  14492. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14493. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14495. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14496. msm_routing_put_voice_mixer),
  14497. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14499. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14500. msm_routing_put_voice_mixer),
  14501. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14503. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14504. msm_routing_put_voice_mixer),
  14505. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14507. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14508. msm_routing_put_voice_mixer),
  14509. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14511. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14512. msm_routing_put_voice_mixer),
  14513. };
  14514. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14515. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14517. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14518. msm_routing_put_voice_mixer),
  14519. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14521. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14522. msm_routing_put_voice_mixer),
  14523. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14525. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14526. msm_routing_put_voice_mixer),
  14527. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14529. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14530. msm_routing_put_voice_mixer),
  14531. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14533. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14534. msm_routing_put_voice_mixer),
  14535. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14537. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14538. msm_routing_put_voice_mixer),
  14539. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14541. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14542. msm_routing_put_voice_mixer),
  14543. };
  14544. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14545. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14546. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14547. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14548. msm_routing_put_voice_mixer),
  14549. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14551. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14552. msm_routing_put_voice_mixer),
  14553. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14555. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14556. msm_routing_put_voice_mixer),
  14557. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14559. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14560. msm_routing_put_voice_mixer),
  14561. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14563. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14564. msm_routing_put_voice_mixer),
  14565. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14567. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14568. msm_routing_put_voice_mixer),
  14569. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14571. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14572. msm_routing_put_voice_mixer),
  14573. };
  14574. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14575. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14577. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14578. msm_routing_put_voice_mixer),
  14579. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14581. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14582. msm_routing_put_voice_stub_mixer),
  14583. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14585. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14586. msm_routing_put_voice_stub_mixer),
  14587. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14589. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14590. msm_routing_put_voice_mixer),
  14591. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14594. msm_routing_put_voice_mixer),
  14595. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14597. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14598. msm_routing_put_voice_mixer),
  14599. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14601. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14602. msm_routing_put_voice_mixer),
  14603. };
  14604. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  14605. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14607. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14608. msm_routing_put_voice_mixer),
  14609. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14610. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14611. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14612. msm_routing_put_voice_mixer),
  14613. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14615. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14616. msm_routing_put_voice_mixer),
  14617. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14619. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14620. msm_routing_put_voice_mixer),
  14621. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14623. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14624. msm_routing_put_voice_mixer),
  14625. };
  14626. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  14627. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_AFE_PCM_RX,
  14629. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14630. msm_routing_put_voice_mixer),
  14631. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_AFE_PCM_RX,
  14633. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14634. msm_routing_put_voice_mixer),
  14635. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_AFE_PCM_RX,
  14637. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14638. msm_routing_put_voice_mixer),
  14639. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_AFE_PCM_RX,
  14641. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14642. msm_routing_put_voice_mixer),
  14643. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_AFE_PCM_RX,
  14645. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14646. msm_routing_put_voice_mixer),
  14647. };
  14648. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  14649. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_AUXPCM_RX,
  14651. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14652. msm_routing_put_voice_mixer),
  14653. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_AUXPCM_RX,
  14655. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14656. msm_routing_put_voice_mixer),
  14657. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_AUXPCM_RX,
  14659. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14660. msm_routing_put_voice_mixer),
  14661. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_AUXPCM_RX,
  14663. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14664. msm_routing_put_voice_mixer),
  14665. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_AUXPCM_RX,
  14667. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14668. msm_routing_put_voice_mixer),
  14669. };
  14670. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  14671. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14673. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14674. msm_routing_put_voice_mixer),
  14675. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14677. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14678. msm_routing_put_voice_mixer),
  14679. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14681. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14682. msm_routing_put_voice_mixer),
  14683. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14685. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14686. msm_routing_put_voice_mixer),
  14687. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14688. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14689. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14690. msm_routing_put_voice_mixer),
  14691. };
  14692. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  14693. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14695. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14696. msm_routing_put_voice_mixer),
  14697. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14699. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14700. msm_routing_put_voice_mixer),
  14701. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14703. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14704. msm_routing_put_voice_mixer),
  14705. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14707. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14708. msm_routing_put_voice_mixer),
  14709. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14711. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14712. msm_routing_put_voice_mixer),
  14713. };
  14714. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  14715. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14717. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14718. msm_routing_put_voice_mixer),
  14719. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14721. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14722. msm_routing_put_voice_mixer),
  14723. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14725. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14726. msm_routing_put_voice_mixer),
  14727. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14729. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14730. msm_routing_put_voice_mixer),
  14731. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14733. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14734. msm_routing_put_voice_mixer),
  14735. };
  14736. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  14737. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14739. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14740. msm_routing_put_voice_mixer),
  14741. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14743. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14744. msm_routing_put_voice_mixer),
  14745. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14747. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14748. msm_routing_put_voice_mixer),
  14749. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14751. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14752. msm_routing_put_voice_mixer),
  14753. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14755. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14756. msm_routing_put_voice_mixer),
  14757. };
  14758. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  14759. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14760. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14761. msm_routing_put_voice_mixer),
  14762. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14763. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14764. msm_routing_put_voice_mixer),
  14765. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14766. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14767. msm_routing_put_voice_mixer),
  14768. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14770. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14771. msm_routing_put_voice_mixer),
  14772. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14774. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14775. msm_routing_put_voice_mixer),
  14776. };
  14777. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  14778. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14779. MSM_BACKEND_DAI_HDMI_RX,
  14780. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14781. msm_routing_put_voice_mixer),
  14782. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14783. MSM_BACKEND_DAI_HDMI_RX,
  14784. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14785. msm_routing_put_voice_mixer),
  14786. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_HDMI_RX,
  14788. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14789. msm_routing_put_voice_mixer),
  14790. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14791. MSM_BACKEND_DAI_HDMI_RX,
  14792. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14793. msm_routing_put_voice_mixer),
  14794. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14795. MSM_BACKEND_DAI_HDMI_RX,
  14796. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14797. msm_routing_put_voice_mixer),
  14798. };
  14799. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  14800. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14802. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14803. msm_routing_put_voice_mixer),
  14804. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14806. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14807. msm_routing_put_voice_mixer),
  14808. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14809. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14810. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14811. msm_routing_put_voice_mixer),
  14812. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14813. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14814. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14815. msm_routing_put_voice_mixer),
  14816. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14818. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14819. msm_routing_put_voice_mixer),
  14820. };
  14821. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  14822. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14825. msm_routing_put_voice_mixer),
  14826. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14828. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14829. msm_routing_put_voice_mixer),
  14830. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14832. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14833. msm_routing_put_voice_mixer),
  14834. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14835. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14836. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14837. msm_routing_put_voice_mixer),
  14838. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14839. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14840. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14841. msm_routing_put_voice_mixer),
  14842. };
  14843. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  14844. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14845. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14846. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14847. msm_routing_put_voice_mixer),
  14848. };
  14849. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  14850. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14851. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14852. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14853. msm_routing_put_voice_mixer),
  14854. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14855. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14856. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14857. msm_routing_put_voice_mixer),
  14858. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14861. msm_routing_put_voice_mixer),
  14862. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14864. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14865. msm_routing_put_voice_mixer),
  14866. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14867. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14868. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14869. msm_routing_put_voice_mixer),
  14870. };
  14871. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  14872. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14874. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14875. msm_routing_put_voice_mixer),
  14876. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14877. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14878. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14879. msm_routing_put_voice_mixer),
  14880. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14881. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14882. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14883. msm_routing_put_voice_mixer),
  14884. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14885. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14886. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14887. msm_routing_put_voice_mixer),
  14888. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14889. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14890. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14891. msm_routing_put_voice_mixer),
  14892. };
  14893. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  14894. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14896. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14897. msm_routing_put_voice_mixer),
  14898. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14900. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14901. msm_routing_put_voice_mixer),
  14902. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14904. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14905. msm_routing_put_voice_mixer),
  14906. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14908. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14909. msm_routing_put_voice_mixer),
  14910. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14912. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14913. msm_routing_put_voice_mixer),
  14914. };
  14915. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  14916. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14919. msm_routing_put_voice_mixer),
  14920. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14922. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14923. msm_routing_put_voice_mixer),
  14924. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14926. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14927. msm_routing_put_voice_mixer),
  14928. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14930. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14931. msm_routing_put_voice_mixer),
  14932. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14933. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14934. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14935. msm_routing_put_voice_mixer),
  14936. };
  14937. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  14938. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14940. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14941. msm_routing_put_voice_mixer),
  14942. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14944. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14945. msm_routing_put_voice_mixer),
  14946. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14948. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14949. msm_routing_put_voice_mixer),
  14950. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14952. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14953. msm_routing_put_voice_mixer),
  14954. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14956. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14957. msm_routing_put_voice_mixer),
  14958. };
  14959. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  14960. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14961. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14962. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14963. msm_routing_put_voice_mixer),
  14964. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14966. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14967. msm_routing_put_voice_mixer),
  14968. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14969. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14970. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14971. msm_routing_put_voice_mixer),
  14972. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14973. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14974. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14975. msm_routing_put_voice_mixer),
  14976. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14977. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14978. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14979. msm_routing_put_voice_mixer),
  14980. };
  14981. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  14982. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14984. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14985. msm_routing_put_voice_mixer),
  14986. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14988. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14989. msm_routing_put_voice_mixer),
  14990. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14992. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14993. msm_routing_put_voice_mixer),
  14994. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14996. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14997. msm_routing_put_voice_mixer),
  14998. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15000. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15001. msm_routing_put_voice_mixer),
  15002. };
  15003. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15004. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15006. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15007. msm_routing_put_voice_mixer),
  15008. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15010. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15011. msm_routing_put_voice_mixer),
  15012. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15014. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15015. msm_routing_put_voice_mixer),
  15016. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15018. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15019. msm_routing_put_voice_mixer),
  15020. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15022. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15023. msm_routing_put_voice_mixer),
  15024. };
  15025. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15026. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15028. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15029. msm_routing_put_voice_mixer),
  15030. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15032. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15033. msm_routing_put_voice_mixer),
  15034. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15036. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15037. msm_routing_put_voice_mixer),
  15038. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15040. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15041. msm_routing_put_voice_mixer),
  15042. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15044. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15045. msm_routing_put_voice_mixer),
  15046. };
  15047. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15048. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15051. msm_routing_put_voice_mixer),
  15052. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15054. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15055. msm_routing_put_voice_mixer),
  15056. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15058. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15059. msm_routing_put_voice_mixer),
  15060. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15061. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15062. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15063. msm_routing_put_voice_mixer),
  15064. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15066. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15067. msm_routing_put_voice_mixer),
  15068. };
  15069. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15070. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15071. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15072. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15073. msm_routing_put_voice_mixer),
  15074. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15075. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15076. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15077. msm_routing_put_voice_stub_mixer),
  15078. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15080. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15081. msm_routing_put_voice_stub_mixer),
  15082. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15084. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15085. msm_routing_put_voice_mixer),
  15086. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15088. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15089. msm_routing_put_voice_mixer),
  15090. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15091. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15092. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15093. msm_routing_put_voice_mixer),
  15094. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15095. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15096. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15097. msm_routing_put_voice_mixer),
  15098. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15099. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15100. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15101. msm_routing_put_voice_mixer),
  15102. };
  15103. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15104. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15106. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15107. msm_routing_put_voice_mixer),
  15108. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15110. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15111. msm_routing_put_voice_stub_mixer),
  15112. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15114. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15115. msm_routing_put_voice_stub_mixer),
  15116. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15118. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15119. msm_routing_put_voice_mixer),
  15120. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15122. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15123. msm_routing_put_voice_mixer),
  15124. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15126. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15127. msm_routing_put_voice_mixer),
  15128. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15130. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15131. msm_routing_put_voice_mixer),
  15132. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15134. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15135. msm_routing_put_voice_mixer),
  15136. };
  15137. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15138. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15140. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15141. msm_routing_put_voice_mixer),
  15142. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15143. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15144. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15145. msm_routing_put_voice_stub_mixer),
  15146. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15148. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15149. msm_routing_put_voice_stub_mixer),
  15150. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15152. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15153. msm_routing_put_voice_mixer),
  15154. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15156. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15157. msm_routing_put_voice_mixer),
  15158. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15160. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15161. msm_routing_put_voice_mixer),
  15162. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15164. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15165. msm_routing_put_voice_mixer),
  15166. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15168. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15169. msm_routing_put_voice_mixer),
  15170. };
  15171. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15172. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15174. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15175. msm_routing_put_voice_mixer),
  15176. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15178. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15179. msm_routing_put_voice_stub_mixer),
  15180. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15182. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15183. msm_routing_put_voice_stub_mixer),
  15184. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15186. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15187. msm_routing_put_voice_mixer),
  15188. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15190. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15191. msm_routing_put_voice_mixer),
  15192. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15193. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15194. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15195. msm_routing_put_voice_mixer),
  15196. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15198. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15199. msm_routing_put_voice_mixer),
  15200. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15202. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15203. msm_routing_put_voice_mixer),
  15204. };
  15205. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15206. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_EXTPROC_RX,
  15208. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15209. msm_routing_put_voice_mixer),
  15210. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15211. MSM_BACKEND_DAI_EXTPROC_RX,
  15212. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15213. msm_routing_put_voice_mixer),
  15214. };
  15215. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15216. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15218. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15219. msm_routing_put_voice_mixer),
  15220. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15222. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15223. msm_routing_put_voice_mixer),
  15224. };
  15225. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15226. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15228. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15229. msm_routing_put_voice_mixer),
  15230. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15232. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15233. msm_routing_put_voice_mixer),
  15234. };
  15235. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15236. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15237. MSM_BACKEND_DAI_PRI_I2S_TX,
  15238. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15239. msm_routing_put_voice_mixer),
  15240. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_MI2S_TX,
  15242. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15243. msm_routing_put_voice_mixer),
  15244. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15246. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15247. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15249. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15250. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15252. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15253. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15255. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15256. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15258. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15259. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15261. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15262. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15264. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15265. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15267. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15268. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15269. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15270. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15271. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15273. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15274. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15276. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15277. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15279. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15280. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15282. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15283. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15285. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15286. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15287. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15288. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15289. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_USB_TX,
  15291. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15292. msm_routing_put_voice_mixer),
  15293. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15295. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15296. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15298. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15301. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15302. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15304. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15305. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15307. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15310. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15311. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15313. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15316. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15319. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15320. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15322. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15323. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15325. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15326. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15328. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15329. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15331. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15332. };
  15333. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15334. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15335. MSM_BACKEND_DAI_PRI_I2S_TX,
  15336. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15337. msm_routing_put_voice_mixer),
  15338. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15339. MSM_BACKEND_DAI_MI2S_TX,
  15340. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15341. msm_routing_put_voice_mixer),
  15342. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15344. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15345. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15346. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15347. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15348. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15350. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15351. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15353. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15354. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15356. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15357. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15358. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15359. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15360. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15362. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15363. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15365. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15366. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15368. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15369. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15370. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15371. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15372. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15374. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15375. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15377. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15378. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15380. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15381. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15383. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15384. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15386. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15387. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15389. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15390. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15392. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15393. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15395. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15396. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15398. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15401. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15402. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15404. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15407. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15410. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15411. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15413. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15414. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15416. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15417. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15419. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15420. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15422. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15423. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15425. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_PRI_I2S_TX,
  15430. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15431. msm_routing_put_voice_mixer),
  15432. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_MI2S_TX,
  15434. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15435. msm_routing_put_voice_mixer),
  15436. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15438. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15439. msm_routing_put_voice_mixer),
  15440. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15442. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15443. msm_routing_put_voice_mixer),
  15444. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_AFE_PCM_TX,
  15446. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15447. msm_routing_put_voice_mixer),
  15448. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_AUXPCM_TX,
  15450. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15451. msm_routing_put_voice_mixer),
  15452. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15454. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15455. msm_routing_put_voice_mixer),
  15456. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15458. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15459. msm_routing_put_voice_mixer),
  15460. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15462. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15463. msm_routing_put_voice_mixer),
  15464. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15466. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15467. msm_routing_put_voice_mixer),
  15468. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15470. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15471. msm_routing_put_voice_mixer),
  15472. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15474. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15475. msm_routing_put_voice_mixer),
  15476. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15478. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15479. msm_routing_put_voice_mixer),
  15480. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15482. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15483. msm_routing_put_voice_mixer),
  15484. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15486. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15487. msm_routing_put_voice_mixer),
  15488. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15490. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15491. msm_routing_put_voice_mixer),
  15492. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15494. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15495. msm_routing_put_voice_mixer),
  15496. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15497. MSM_BACKEND_DAI_USB_TX,
  15498. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15499. msm_routing_put_voice_mixer),
  15500. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15501. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15502. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15503. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15505. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15508. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15509. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15510. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15511. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15512. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15513. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15514. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15515. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15517. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15520. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15521. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15522. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15523. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15524. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15526. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15527. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15528. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15529. msm_routing_put_voice_mixer),
  15530. };
  15531. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15532. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_EXTPROC_TX,
  15534. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15535. msm_routing_put_voice_stub_mixer),
  15536. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15538. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15539. msm_routing_put_voice_stub_mixer),
  15540. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15542. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15543. msm_routing_put_voice_stub_mixer),
  15544. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15546. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15547. msm_routing_put_voice_stub_mixer),
  15548. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_MI2S_TX,
  15550. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15551. msm_routing_put_voice_stub_mixer),
  15552. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15554. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15555. msm_routing_put_voice_stub_mixer),
  15556. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15558. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15559. msm_routing_put_voice_stub_mixer),
  15560. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15561. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15562. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15563. msm_routing_put_voice_stub_mixer),
  15564. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15565. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15566. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15567. msm_routing_put_voice_stub_mixer),
  15568. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15569. MSM_BACKEND_DAI_AUXPCM_TX,
  15570. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15571. msm_routing_put_voice_stub_mixer),
  15572. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15574. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15575. msm_routing_put_voice_stub_mixer),
  15576. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15578. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15579. msm_routing_put_voice_stub_mixer),
  15580. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15582. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15583. msm_routing_put_voice_stub_mixer),
  15584. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15586. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15587. msm_routing_put_voice_stub_mixer),
  15588. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15590. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15591. msm_routing_put_voice_stub_mixer),
  15592. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15594. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15595. msm_routing_put_voice_stub_mixer),
  15596. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15598. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15599. msm_routing_put_voice_stub_mixer),
  15600. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_AFE_PCM_TX,
  15602. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15603. msm_routing_put_voice_stub_mixer),
  15604. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15606. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15607. msm_routing_put_voice_stub_mixer),
  15608. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15609. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15610. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15611. msm_routing_put_voice_stub_mixer),
  15612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15614. 1, 0, msm_routing_get_voice_stub_mixer,
  15615. msm_routing_put_voice_stub_mixer),
  15616. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15618. 1, 0, msm_routing_get_voice_stub_mixer,
  15619. msm_routing_put_voice_stub_mixer),
  15620. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  15622. 1, 0, msm_routing_get_voice_stub_mixer,
  15623. msm_routing_put_voice_stub_mixer),
  15624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15626. 1, 0, msm_routing_get_voice_stub_mixer,
  15627. msm_routing_put_voice_stub_mixer),
  15628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15630. 1, 0, msm_routing_get_voice_stub_mixer,
  15631. msm_routing_put_voice_stub_mixer),
  15632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  15634. 1, 0, msm_routing_get_voice_stub_mixer,
  15635. msm_routing_put_voice_stub_mixer),
  15636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  15638. 1, 0, msm_routing_get_voice_stub_mixer,
  15639. msm_routing_put_voice_stub_mixer),
  15640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  15642. 1, 0, msm_routing_get_voice_stub_mixer,
  15643. msm_routing_put_voice_stub_mixer),
  15644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  15646. 1, 0, msm_routing_get_voice_stub_mixer,
  15647. msm_routing_put_voice_stub_mixer),
  15648. };
  15649. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  15650. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_EXTPROC_TX,
  15652. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15653. msm_routing_put_voice_stub_mixer),
  15654. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15656. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15657. msm_routing_put_voice_stub_mixer),
  15658. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15660. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15661. msm_routing_put_voice_stub_mixer),
  15662. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_AUXPCM_TX,
  15664. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15665. msm_routing_put_voice_stub_mixer),
  15666. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15668. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15669. msm_routing_put_voice_stub_mixer),
  15670. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15672. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15673. msm_routing_put_voice_stub_mixer),
  15674. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15676. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15677. msm_routing_put_voice_stub_mixer),
  15678. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15680. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15681. msm_routing_put_voice_stub_mixer),
  15682. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15683. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15684. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15685. msm_routing_put_voice_stub_mixer),
  15686. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15688. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15689. msm_routing_put_voice_stub_mixer),
  15690. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15692. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15693. msm_routing_put_voice_stub_mixer),
  15694. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_AFE_PCM_TX,
  15696. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15697. msm_routing_put_voice_stub_mixer),
  15698. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15700. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15701. msm_routing_put_voice_stub_mixer),
  15702. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15704. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15705. msm_routing_put_voice_stub_mixer),
  15706. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15708. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15709. msm_routing_put_voice_stub_mixer),
  15710. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15712. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15713. msm_routing_put_voice_stub_mixer),
  15714. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15716. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15717. msm_routing_put_voice_stub_mixer),
  15718. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  15720. 1, 0, msm_routing_get_voice_stub_mixer,
  15721. msm_routing_put_voice_stub_mixer),
  15722. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  15724. 1, 0, msm_routing_get_voice_stub_mixer,
  15725. msm_routing_put_voice_stub_mixer),
  15726. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  15728. 1, 0, msm_routing_get_voice_stub_mixer,
  15729. msm_routing_put_voice_stub_mixer),
  15730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  15732. 1, 0, msm_routing_get_voice_stub_mixer,
  15733. msm_routing_put_voice_stub_mixer),
  15734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15735. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  15736. 1, 0, msm_routing_get_voice_stub_mixer,
  15737. msm_routing_put_voice_stub_mixer),
  15738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  15740. 1, 0, msm_routing_get_voice_stub_mixer,
  15741. msm_routing_put_voice_stub_mixer),
  15742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  15744. 1, 0, msm_routing_get_voice_stub_mixer,
  15745. msm_routing_put_voice_stub_mixer),
  15746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  15748. 1, 0, msm_routing_get_voice_stub_mixer,
  15749. msm_routing_put_voice_stub_mixer),
  15750. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  15752. 1, 0, msm_routing_get_voice_stub_mixer,
  15753. msm_routing_put_voice_stub_mixer),
  15754. };
  15755. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  15756. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_EXTPROC_TX,
  15758. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15759. msm_routing_put_voice_stub_mixer),
  15760. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15761. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15762. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15763. msm_routing_put_voice_stub_mixer),
  15764. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15765. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15766. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15767. msm_routing_put_voice_stub_mixer),
  15768. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_AUXPCM_TX,
  15770. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15771. msm_routing_put_voice_stub_mixer),
  15772. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15774. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15775. msm_routing_put_voice_stub_mixer),
  15776. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15778. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15779. msm_routing_put_voice_stub_mixer),
  15780. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15782. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15783. msm_routing_put_voice_stub_mixer),
  15784. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15786. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15787. msm_routing_put_voice_stub_mixer),
  15788. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15790. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15791. msm_routing_put_voice_stub_mixer),
  15792. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15794. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15795. msm_routing_put_voice_stub_mixer),
  15796. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15798. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15799. msm_routing_put_voice_stub_mixer),
  15800. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15801. MSM_BACKEND_DAI_AFE_PCM_TX,
  15802. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15803. msm_routing_put_voice_stub_mixer),
  15804. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15805. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15806. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15807. msm_routing_put_voice_stub_mixer),
  15808. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15809. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15810. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15811. msm_routing_put_voice_stub_mixer),
  15812. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15813. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15814. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15815. msm_routing_put_voice_stub_mixer),
  15816. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15817. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15818. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15819. msm_routing_put_voice_stub_mixer),
  15820. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  15822. 1, 0, msm_routing_get_voice_stub_mixer,
  15823. msm_routing_put_voice_stub_mixer),
  15824. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  15826. 1, 0, msm_routing_get_voice_stub_mixer,
  15827. msm_routing_put_voice_stub_mixer),
  15828. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  15830. 1, 0, msm_routing_get_voice_stub_mixer,
  15831. msm_routing_put_voice_stub_mixer),
  15832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  15834. 1, 0, msm_routing_get_voice_stub_mixer,
  15835. msm_routing_put_voice_stub_mixer),
  15836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  15838. 1, 0, msm_routing_get_voice_stub_mixer,
  15839. msm_routing_put_voice_stub_mixer),
  15840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  15842. 1, 0, msm_routing_get_voice_stub_mixer,
  15843. msm_routing_put_voice_stub_mixer),
  15844. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  15846. 1, 0, msm_routing_get_voice_stub_mixer,
  15847. msm_routing_put_voice_stub_mixer),
  15848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  15850. 1, 0, msm_routing_get_voice_stub_mixer,
  15851. msm_routing_put_voice_stub_mixer),
  15852. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  15854. 1, 0, msm_routing_get_voice_stub_mixer,
  15855. msm_routing_put_voice_stub_mixer),
  15856. };
  15857. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  15858. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_PRI_I2S_TX,
  15860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15864. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15868. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  15869. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_AFE_PCM_TX,
  15872. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15873. msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_AUXPCM_TX,
  15876. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15880. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15881. msm_routing_put_voice_mixer),
  15882. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15884. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15885. msm_routing_put_voice_mixer),
  15886. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15888. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15889. msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15892. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15893. msm_routing_put_voice_mixer),
  15894. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15896. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15897. msm_routing_put_voice_mixer),
  15898. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_MI2S_TX,
  15900. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15901. msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15904. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15905. msm_routing_put_voice_mixer),
  15906. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15908. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15909. msm_routing_put_voice_mixer),
  15910. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15912. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15913. msm_routing_put_voice_mixer),
  15914. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15916. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15917. msm_routing_put_voice_mixer),
  15918. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15920. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15921. msm_routing_put_voice_mixer),
  15922. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_USB_TX,
  15924. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15925. msm_routing_put_voice_mixer),
  15926. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  15928. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  15931. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15932. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  15934. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  15936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  15937. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15938. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  15940. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  15942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  15943. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  15946. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  15949. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15950. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  15952. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15953. };
  15954. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  15955. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15957. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15958. msm_routing_put_port_mixer),
  15959. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15960. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15961. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15962. msm_routing_put_port_mixer),
  15963. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15964. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15965. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15966. msm_routing_put_port_mixer),
  15967. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15968. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15969. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15970. msm_routing_put_port_mixer),
  15971. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15972. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15973. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15974. msm_routing_put_port_mixer),
  15975. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15976. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15977. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15978. msm_routing_put_port_mixer),
  15979. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15980. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15981. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15982. msm_routing_put_port_mixer),
  15983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15986. msm_routing_put_port_mixer),
  15987. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15989. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15990. msm_routing_put_port_mixer),
  15991. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15993. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15994. msm_routing_put_port_mixer),
  15995. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15997. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15998. msm_routing_put_port_mixer),
  15999. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16000. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16001. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16002. msm_routing_put_port_mixer),
  16003. };
  16004. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16005. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16007. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16008. msm_routing_put_port_mixer),
  16009. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16010. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16011. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16012. msm_routing_put_port_mixer),
  16013. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16015. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16016. msm_routing_put_port_mixer),
  16017. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16019. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16020. msm_routing_put_port_mixer),
  16021. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16023. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16024. msm_routing_put_port_mixer),
  16025. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16027. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16028. msm_routing_put_port_mixer),
  16029. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16030. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16031. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16032. msm_routing_put_port_mixer),
  16033. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16034. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16035. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16036. msm_routing_put_port_mixer),
  16037. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16038. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16039. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16040. msm_routing_put_port_mixer),
  16041. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16042. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16043. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16044. msm_routing_put_port_mixer),
  16045. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16046. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16047. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16048. msm_routing_put_port_mixer),
  16049. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16050. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16051. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16052. msm_routing_put_port_mixer),
  16053. };
  16054. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16055. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16056. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16057. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16058. msm_routing_put_port_mixer),
  16059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16060. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16062. msm_routing_put_port_mixer),
  16063. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16065. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16066. msm_routing_put_port_mixer),
  16067. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16068. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16069. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16070. msm_routing_put_port_mixer),
  16071. };
  16072. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16073. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16075. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16076. msm_routing_put_port_mixer),
  16077. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16079. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16080. msm_routing_put_port_mixer),
  16081. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16083. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16084. msm_routing_put_port_mixer),
  16085. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16087. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16088. msm_routing_put_port_mixer),
  16089. };
  16090. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16091. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16093. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16094. msm_routing_put_port_mixer),
  16095. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16097. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16098. msm_routing_put_port_mixer),
  16099. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16101. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16102. msm_routing_put_port_mixer),
  16103. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16105. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16106. msm_routing_put_port_mixer),
  16107. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16109. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16110. msm_routing_put_port_mixer),
  16111. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16112. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16113. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16114. msm_routing_put_port_mixer),
  16115. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16117. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16118. msm_routing_put_port_mixer),
  16119. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16121. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16122. msm_routing_put_port_mixer),
  16123. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16125. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16126. msm_routing_put_port_mixer),
  16127. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16129. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16130. msm_routing_put_port_mixer),
  16131. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16133. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16134. msm_routing_put_port_mixer),
  16135. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16136. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16137. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16138. msm_routing_put_port_mixer),
  16139. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16141. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16142. msm_routing_put_port_mixer),
  16143. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16145. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16146. msm_routing_put_port_mixer),
  16147. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16148. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16149. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16150. msm_routing_put_port_mixer),
  16151. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16152. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16153. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16154. msm_routing_put_port_mixer),
  16155. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16157. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16158. msm_routing_put_port_mixer),
  16159. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16161. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16162. msm_routing_put_port_mixer),
  16163. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16164. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16165. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16166. msm_routing_put_port_mixer),
  16167. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16169. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16170. msm_routing_put_port_mixer),
  16171. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16173. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16174. msm_routing_put_port_mixer),
  16175. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16176. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16177. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16178. msm_routing_put_port_mixer),
  16179. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16180. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16181. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16182. msm_routing_put_port_mixer),
  16183. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16185. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16186. msm_routing_put_port_mixer),
  16187. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16189. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16190. msm_routing_put_port_mixer),
  16191. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16193. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16194. msm_routing_put_port_mixer),
  16195. };
  16196. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16197. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16198. MSM_BACKEND_DAI_AUXPCM_RX,
  16199. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16200. msm_routing_put_port_mixer),
  16201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16202. MSM_BACKEND_DAI_AUXPCM_RX,
  16203. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16204. msm_routing_put_port_mixer),
  16205. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16206. MSM_BACKEND_DAI_AUXPCM_RX,
  16207. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16208. msm_routing_put_port_mixer),
  16209. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16210. MSM_BACKEND_DAI_AUXPCM_RX,
  16211. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16212. msm_routing_put_port_mixer),
  16213. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16214. MSM_BACKEND_DAI_AUXPCM_RX,
  16215. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16216. msm_routing_put_port_mixer),
  16217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16218. MSM_BACKEND_DAI_AUXPCM_RX,
  16219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16220. msm_routing_put_port_mixer),
  16221. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_AUXPCM_RX,
  16223. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16224. msm_routing_put_port_mixer),
  16225. };
  16226. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16227. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16229. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16230. msm_routing_put_port_mixer),
  16231. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16233. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16234. msm_routing_put_port_mixer),
  16235. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16236. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16237. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16238. msm_routing_put_port_mixer),
  16239. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16241. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16242. msm_routing_put_port_mixer),
  16243. };
  16244. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16245. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16246. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16247. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16248. msm_routing_put_port_mixer),
  16249. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16250. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16251. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16252. msm_routing_put_port_mixer),
  16253. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16254. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16255. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16256. msm_routing_put_port_mixer),
  16257. };
  16258. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16259. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16260. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16261. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16262. msm_routing_put_port_mixer),
  16263. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16264. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16265. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16266. msm_routing_put_port_mixer),
  16267. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16268. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16269. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16270. msm_routing_put_port_mixer),
  16271. };
  16272. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16273. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16274. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16275. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16276. msm_routing_put_port_mixer),
  16277. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16278. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16279. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16280. msm_routing_put_port_mixer),
  16281. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16283. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16284. msm_routing_put_port_mixer),
  16285. };
  16286. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16287. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16288. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16289. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16290. msm_routing_put_port_mixer),
  16291. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16292. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16293. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16294. msm_routing_put_port_mixer),
  16295. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16296. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16297. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16298. msm_routing_put_port_mixer),
  16299. };
  16300. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16301. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16303. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16304. msm_routing_put_port_mixer),
  16305. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16306. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16307. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16308. msm_routing_put_port_mixer),
  16309. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16311. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16312. msm_routing_put_port_mixer),
  16313. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16314. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16315. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16316. msm_routing_put_port_mixer),
  16317. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16318. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16319. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16320. msm_routing_put_port_mixer),
  16321. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16323. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16324. msm_routing_put_port_mixer),
  16325. };
  16326. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16327. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16328. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16329. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16330. msm_routing_put_port_mixer),
  16331. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16333. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16334. msm_routing_put_port_mixer),
  16335. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16337. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16338. msm_routing_put_port_mixer),
  16339. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16340. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16341. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16342. msm_routing_put_port_mixer),
  16343. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16344. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16345. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16346. msm_routing_put_port_mixer),
  16347. };
  16348. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16349. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16351. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16352. msm_routing_put_port_mixer),
  16353. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16355. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16356. msm_routing_put_port_mixer),
  16357. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16358. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16359. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16363. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16364. msm_routing_put_port_mixer),
  16365. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16367. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16368. msm_routing_put_port_mixer),
  16369. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16371. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16372. msm_routing_put_port_mixer),
  16373. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16375. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16376. msm_routing_put_port_mixer),
  16377. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16378. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16379. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16383. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16384. msm_routing_put_port_mixer),
  16385. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16387. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16388. msm_routing_put_port_mixer),
  16389. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16392. msm_routing_put_port_mixer),
  16393. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16394. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16395. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16396. msm_routing_put_port_mixer),
  16397. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16398. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16399. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16400. msm_routing_put_port_mixer),
  16401. };
  16402. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16403. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16405. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16406. msm_routing_put_port_mixer),
  16407. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16409. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16410. msm_routing_put_port_mixer),
  16411. };
  16412. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16413. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16414. MSM_BACKEND_DAI_AFE_PCM_RX,
  16415. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16416. msm_routing_put_port_mixer),
  16417. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16418. MSM_BACKEND_DAI_AFE_PCM_RX,
  16419. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16420. msm_routing_put_port_mixer),
  16421. };
  16422. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16423. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_HDMI_RX,
  16425. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16426. msm_routing_put_port_mixer),
  16427. };
  16428. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16429. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16430. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16431. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16432. msm_routing_put_port_mixer),
  16433. };
  16434. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16435. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16437. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16438. msm_routing_put_port_mixer),
  16439. };
  16440. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16441. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16442. MSM_BACKEND_DAI_SEC_I2S_RX,
  16443. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16444. msm_routing_put_port_mixer),
  16445. };
  16446. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16447. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16448. MSM_BACKEND_DAI_MI2S_RX,
  16449. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16450. msm_routing_put_port_mixer),
  16451. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16452. MSM_BACKEND_DAI_MI2S_RX,
  16453. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16454. msm_routing_put_port_mixer),
  16455. };
  16456. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16457. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16459. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16460. msm_routing_put_port_mixer),
  16461. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16462. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16463. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16464. msm_routing_put_port_mixer),
  16465. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16466. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16467. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16468. msm_routing_put_port_mixer),
  16469. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16470. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16471. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16472. msm_routing_put_port_mixer),
  16473. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16474. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16475. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16476. msm_routing_put_port_mixer),
  16477. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16479. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16480. msm_routing_put_port_mixer),
  16481. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16483. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16487. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16488. msm_routing_put_port_mixer),
  16489. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16491. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16492. msm_routing_put_port_mixer),
  16493. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16495. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16496. msm_routing_put_port_mixer),
  16497. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16499. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16500. msm_routing_put_port_mixer),
  16501. };
  16502. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16503. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16504. MSM_BACKEND_DAI_USB_RX,
  16505. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16506. msm_routing_put_port_mixer),
  16507. };
  16508. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16509. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16511. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16512. msm_routing_put_port_mixer),
  16513. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16515. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16516. msm_routing_put_port_mixer),
  16517. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16519. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16520. msm_routing_put_port_mixer),
  16521. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16523. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16527. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16528. msm_routing_put_port_mixer),
  16529. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16531. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16532. msm_routing_put_port_mixer),
  16533. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16535. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16536. msm_routing_put_port_mixer),
  16537. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16539. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16540. msm_routing_put_port_mixer),
  16541. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16543. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16547. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16548. msm_routing_put_port_mixer),
  16549. };
  16550. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16551. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16552. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16553. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16554. msm_routing_put_port_mixer),
  16555. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16557. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16558. msm_routing_put_port_mixer),
  16559. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16561. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16562. msm_routing_put_port_mixer),
  16563. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16565. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16566. msm_routing_put_port_mixer),
  16567. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16568. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16569. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16570. msm_routing_put_port_mixer),
  16571. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16572. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16573. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16574. msm_routing_put_port_mixer),
  16575. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16577. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16578. msm_routing_put_port_mixer),
  16579. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16581. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16582. msm_routing_put_port_mixer),
  16583. };
  16584. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16585. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16587. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16588. msm_routing_put_port_mixer),
  16589. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16591. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16592. msm_routing_put_port_mixer),
  16593. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16595. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16596. msm_routing_put_port_mixer),
  16597. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16598. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16599. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16600. msm_routing_put_port_mixer),
  16601. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16603. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16604. msm_routing_put_port_mixer),
  16605. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16607. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16608. msm_routing_put_port_mixer),
  16609. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16611. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16612. msm_routing_put_port_mixer),
  16613. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16615. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16616. msm_routing_put_port_mixer),
  16617. };
  16618. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  16619. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16621. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16622. msm_routing_get_port_mixer,
  16623. msm_routing_put_port_mixer),
  16624. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16625. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16626. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16627. msm_routing_get_port_mixer,
  16628. msm_routing_put_port_mixer),
  16629. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16631. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16632. msm_routing_get_port_mixer,
  16633. msm_routing_put_port_mixer),
  16634. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16635. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16636. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16637. msm_routing_get_port_mixer,
  16638. msm_routing_put_port_mixer),
  16639. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16641. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16642. msm_routing_get_port_mixer,
  16643. msm_routing_put_port_mixer),
  16644. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16646. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16647. msm_routing_get_port_mixer,
  16648. msm_routing_put_port_mixer),
  16649. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16651. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16652. msm_routing_get_port_mixer,
  16653. msm_routing_put_port_mixer),
  16654. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16655. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16656. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16657. msm_routing_get_port_mixer,
  16658. msm_routing_put_port_mixer),
  16659. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16661. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16662. msm_routing_get_port_mixer,
  16663. msm_routing_put_port_mixer),
  16664. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16666. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16667. msm_routing_get_port_mixer,
  16668. msm_routing_put_port_mixer),
  16669. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16670. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16671. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16672. msm_routing_get_port_mixer,
  16673. msm_routing_put_port_mixer),
  16674. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16676. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16677. msm_routing_get_port_mixer,
  16678. msm_routing_put_port_mixer),
  16679. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16680. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16681. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16682. msm_routing_get_port_mixer,
  16683. msm_routing_put_port_mixer),
  16684. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16686. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16687. msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16691. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16692. msm_routing_get_port_mixer,
  16693. msm_routing_put_port_mixer),
  16694. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16696. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16697. msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16701. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16702. msm_routing_get_port_mixer,
  16703. msm_routing_put_port_mixer),
  16704. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16706. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16707. msm_routing_get_port_mixer,
  16708. msm_routing_put_port_mixer),
  16709. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16711. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16712. msm_routing_get_port_mixer,
  16713. msm_routing_put_port_mixer),
  16714. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16716. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16717. msm_routing_get_port_mixer,
  16718. msm_routing_put_port_mixer),
  16719. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16721. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16722. msm_routing_get_port_mixer,
  16723. msm_routing_put_port_mixer),
  16724. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16726. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16727. msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16731. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16732. msm_routing_get_port_mixer,
  16733. msm_routing_put_port_mixer),
  16734. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16736. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16737. msm_routing_get_port_mixer,
  16738. msm_routing_put_port_mixer),
  16739. };
  16740. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  16741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16742. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16744. msm_routing_get_port_mixer,
  16745. msm_routing_put_port_mixer),
  16746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16749. msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16754. msm_routing_get_port_mixer,
  16755. msm_routing_put_port_mixer),
  16756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16757. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16759. msm_routing_get_port_mixer,
  16760. msm_routing_put_port_mixer),
  16761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16764. msm_routing_get_port_mixer,
  16765. msm_routing_put_port_mixer),
  16766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16769. msm_routing_get_port_mixer,
  16770. msm_routing_put_port_mixer),
  16771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16774. msm_routing_get_port_mixer,
  16775. msm_routing_put_port_mixer),
  16776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16779. msm_routing_get_port_mixer,
  16780. msm_routing_put_port_mixer),
  16781. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16783. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16784. msm_routing_get_port_mixer,
  16785. msm_routing_put_port_mixer),
  16786. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16787. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16788. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16789. msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16793. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16794. msm_routing_get_port_mixer,
  16795. msm_routing_put_port_mixer),
  16796. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16797. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16798. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16799. msm_routing_get_port_mixer,
  16800. msm_routing_put_port_mixer),
  16801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16804. msm_routing_get_port_mixer,
  16805. msm_routing_put_port_mixer),
  16806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16807. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16809. msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16814. msm_routing_get_port_mixer,
  16815. msm_routing_put_port_mixer),
  16816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16819. msm_routing_get_port_mixer,
  16820. msm_routing_put_port_mixer),
  16821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16824. msm_routing_get_port_mixer,
  16825. msm_routing_put_port_mixer),
  16826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16827. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16829. msm_routing_get_port_mixer,
  16830. msm_routing_put_port_mixer),
  16831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16834. msm_routing_get_port_mixer,
  16835. msm_routing_put_port_mixer),
  16836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16839. msm_routing_get_port_mixer,
  16840. msm_routing_put_port_mixer),
  16841. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16843. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16844. msm_routing_get_port_mixer,
  16845. msm_routing_put_port_mixer),
  16846. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16848. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16849. msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16853. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16854. msm_routing_get_port_mixer,
  16855. msm_routing_put_port_mixer),
  16856. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16857. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16858. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16859. msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. };
  16862. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  16863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16865. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16866. msm_routing_get_port_mixer,
  16867. msm_routing_put_port_mixer),
  16868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16869. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16871. msm_routing_get_port_mixer,
  16872. msm_routing_put_port_mixer),
  16873. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16874. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16875. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16876. msm_routing_get_port_mixer,
  16877. msm_routing_put_port_mixer),
  16878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16881. msm_routing_get_port_mixer,
  16882. msm_routing_put_port_mixer),
  16883. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16886. msm_routing_get_port_mixer,
  16887. msm_routing_put_port_mixer),
  16888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16889. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16890. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16891. msm_routing_get_port_mixer,
  16892. msm_routing_put_port_mixer),
  16893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16896. msm_routing_get_port_mixer,
  16897. msm_routing_put_port_mixer),
  16898. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16901. msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16905. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16906. msm_routing_get_port_mixer,
  16907. msm_routing_put_port_mixer),
  16908. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16909. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16910. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16911. msm_routing_get_port_mixer,
  16912. msm_routing_put_port_mixer),
  16913. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16915. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16916. msm_routing_get_port_mixer,
  16917. msm_routing_put_port_mixer),
  16918. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16919. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16920. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16921. msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16925. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16926. msm_routing_get_port_mixer,
  16927. msm_routing_put_port_mixer),
  16928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16929. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16930. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16931. msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16935. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16936. msm_routing_get_port_mixer,
  16937. msm_routing_put_port_mixer),
  16938. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16940. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16941. msm_routing_get_port_mixer,
  16942. msm_routing_put_port_mixer),
  16943. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16944. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16945. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16946. msm_routing_get_port_mixer,
  16947. msm_routing_put_port_mixer),
  16948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16949. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16950. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16951. msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16955. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16956. msm_routing_get_port_mixer,
  16957. msm_routing_put_port_mixer),
  16958. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16960. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16961. msm_routing_get_port_mixer,
  16962. msm_routing_put_port_mixer),
  16963. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16965. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16966. msm_routing_get_port_mixer,
  16967. msm_routing_put_port_mixer),
  16968. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16970. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16971. msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16975. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16976. msm_routing_get_port_mixer,
  16977. msm_routing_put_port_mixer),
  16978. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16979. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16980. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16981. msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. };
  16984. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  16985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16987. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16988. msm_routing_get_port_mixer,
  16989. msm_routing_put_port_mixer),
  16990. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16991. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16992. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16993. msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16996. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16997. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16998. msm_routing_get_port_mixer,
  16999. msm_routing_put_port_mixer),
  17000. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17002. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17003. msm_routing_get_port_mixer,
  17004. msm_routing_put_port_mixer),
  17005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17007. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17008. msm_routing_get_port_mixer,
  17009. msm_routing_put_port_mixer),
  17010. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17011. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17012. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17013. msm_routing_get_port_mixer,
  17014. msm_routing_put_port_mixer),
  17015. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17017. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17018. msm_routing_get_port_mixer,
  17019. msm_routing_put_port_mixer),
  17020. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17022. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17023. msm_routing_get_port_mixer,
  17024. msm_routing_put_port_mixer),
  17025. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17026. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17027. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17028. msm_routing_get_port_mixer,
  17029. msm_routing_put_port_mixer),
  17030. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17031. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17032. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17033. msm_routing_get_port_mixer,
  17034. msm_routing_put_port_mixer),
  17035. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17037. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17038. msm_routing_get_port_mixer,
  17039. msm_routing_put_port_mixer),
  17040. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17041. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17042. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17043. msm_routing_get_port_mixer,
  17044. msm_routing_put_port_mixer),
  17045. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17046. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17047. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17048. msm_routing_get_port_mixer,
  17049. msm_routing_put_port_mixer),
  17050. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17051. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17052. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17053. msm_routing_get_port_mixer,
  17054. msm_routing_put_port_mixer),
  17055. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17057. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17058. msm_routing_get_port_mixer,
  17059. msm_routing_put_port_mixer),
  17060. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17062. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17063. msm_routing_get_port_mixer,
  17064. msm_routing_put_port_mixer),
  17065. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17066. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17067. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17068. msm_routing_get_port_mixer,
  17069. msm_routing_put_port_mixer),
  17070. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17071. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17072. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17073. msm_routing_get_port_mixer,
  17074. msm_routing_put_port_mixer),
  17075. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17077. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17078. msm_routing_get_port_mixer,
  17079. msm_routing_put_port_mixer),
  17080. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17082. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17083. msm_routing_get_port_mixer,
  17084. msm_routing_put_port_mixer),
  17085. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17086. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17087. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17088. msm_routing_get_port_mixer,
  17089. msm_routing_put_port_mixer),
  17090. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17092. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17093. msm_routing_get_port_mixer,
  17094. msm_routing_put_port_mixer),
  17095. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17097. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17098. msm_routing_get_port_mixer,
  17099. msm_routing_put_port_mixer),
  17100. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17101. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17102. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17103. msm_routing_get_port_mixer,
  17104. msm_routing_put_port_mixer),
  17105. };
  17106. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17107. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17109. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17110. msm_routing_get_port_mixer,
  17111. msm_routing_put_port_mixer),
  17112. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17113. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17114. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17115. msm_routing_get_port_mixer,
  17116. msm_routing_put_port_mixer),
  17117. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17118. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17119. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17120. msm_routing_get_port_mixer,
  17121. msm_routing_put_port_mixer),
  17122. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17124. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17125. msm_routing_get_port_mixer,
  17126. msm_routing_put_port_mixer),
  17127. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17128. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17129. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17130. msm_routing_get_port_mixer,
  17131. msm_routing_put_port_mixer),
  17132. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17133. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17134. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17135. msm_routing_get_port_mixer,
  17136. msm_routing_put_port_mixer),
  17137. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17140. msm_routing_get_port_mixer,
  17141. msm_routing_put_port_mixer),
  17142. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17143. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17144. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17145. msm_routing_get_port_mixer,
  17146. msm_routing_put_port_mixer),
  17147. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17148. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17149. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17150. msm_routing_get_port_mixer,
  17151. msm_routing_put_port_mixer),
  17152. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17153. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17154. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17155. msm_routing_get_port_mixer,
  17156. msm_routing_put_port_mixer),
  17157. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17159. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17160. msm_routing_get_port_mixer,
  17161. msm_routing_put_port_mixer),
  17162. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17163. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17164. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17165. msm_routing_get_port_mixer,
  17166. msm_routing_put_port_mixer),
  17167. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17168. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17169. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17170. msm_routing_get_port_mixer,
  17171. msm_routing_put_port_mixer),
  17172. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17173. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17174. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17175. msm_routing_get_port_mixer,
  17176. msm_routing_put_port_mixer),
  17177. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17178. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17179. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17180. msm_routing_get_port_mixer,
  17181. msm_routing_put_port_mixer),
  17182. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17183. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17184. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17185. msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17189. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17190. msm_routing_get_port_mixer,
  17191. msm_routing_put_port_mixer),
  17192. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17194. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17195. msm_routing_get_port_mixer,
  17196. msm_routing_put_port_mixer),
  17197. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17198. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17199. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17200. msm_routing_get_port_mixer,
  17201. msm_routing_put_port_mixer),
  17202. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17203. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17204. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17205. msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17209. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17210. msm_routing_get_port_mixer,
  17211. msm_routing_put_port_mixer),
  17212. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17214. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17215. msm_routing_get_port_mixer,
  17216. msm_routing_put_port_mixer),
  17217. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17218. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17219. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17220. msm_routing_get_port_mixer,
  17221. msm_routing_put_port_mixer),
  17222. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17223. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17224. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17225. msm_routing_get_port_mixer,
  17226. msm_routing_put_port_mixer),
  17227. };
  17228. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17229. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17230. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17231. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17232. msm_routing_get_port_mixer,
  17233. msm_routing_put_port_mixer),
  17234. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17235. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17236. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17237. msm_routing_get_port_mixer,
  17238. msm_routing_put_port_mixer),
  17239. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17240. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17241. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17242. msm_routing_get_port_mixer,
  17243. msm_routing_put_port_mixer),
  17244. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17245. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17246. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17247. msm_routing_get_port_mixer,
  17248. msm_routing_put_port_mixer),
  17249. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17250. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17251. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17252. msm_routing_get_port_mixer,
  17253. msm_routing_put_port_mixer),
  17254. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17255. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17256. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17257. msm_routing_get_port_mixer,
  17258. msm_routing_put_port_mixer),
  17259. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17261. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17262. msm_routing_get_port_mixer,
  17263. msm_routing_put_port_mixer),
  17264. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17265. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17266. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17267. msm_routing_get_port_mixer,
  17268. msm_routing_put_port_mixer),
  17269. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17270. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17271. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17272. msm_routing_get_port_mixer,
  17273. msm_routing_put_port_mixer),
  17274. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17276. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17277. msm_routing_get_port_mixer,
  17278. msm_routing_put_port_mixer),
  17279. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17281. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17282. msm_routing_get_port_mixer,
  17283. msm_routing_put_port_mixer),
  17284. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17286. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17287. msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17291. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17292. msm_routing_get_port_mixer,
  17293. msm_routing_put_port_mixer),
  17294. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17295. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17296. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17297. msm_routing_get_port_mixer,
  17298. msm_routing_put_port_mixer),
  17299. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17301. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17302. msm_routing_get_port_mixer,
  17303. msm_routing_put_port_mixer),
  17304. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17305. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17306. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17307. msm_routing_get_port_mixer,
  17308. msm_routing_put_port_mixer),
  17309. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17311. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17312. msm_routing_get_port_mixer,
  17313. msm_routing_put_port_mixer),
  17314. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17316. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17317. msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17321. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17322. msm_routing_get_port_mixer,
  17323. msm_routing_put_port_mixer),
  17324. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17326. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17327. msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17331. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17332. msm_routing_get_port_mixer,
  17333. msm_routing_put_port_mixer),
  17334. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17335. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17336. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17337. msm_routing_get_port_mixer,
  17338. msm_routing_put_port_mixer),
  17339. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17340. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17341. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17342. msm_routing_get_port_mixer,
  17343. msm_routing_put_port_mixer),
  17344. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17345. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17346. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17347. msm_routing_get_port_mixer,
  17348. msm_routing_put_port_mixer),
  17349. };
  17350. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17351. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17352. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17353. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17354. msm_routing_get_port_mixer,
  17355. msm_routing_put_port_mixer),
  17356. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17357. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17358. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17359. msm_routing_get_port_mixer,
  17360. msm_routing_put_port_mixer),
  17361. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17363. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17364. msm_routing_get_port_mixer,
  17365. msm_routing_put_port_mixer),
  17366. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17368. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17369. msm_routing_get_port_mixer,
  17370. msm_routing_put_port_mixer),
  17371. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17372. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17373. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17374. msm_routing_get_port_mixer,
  17375. msm_routing_put_port_mixer),
  17376. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17377. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17378. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17379. msm_routing_get_port_mixer,
  17380. msm_routing_put_port_mixer),
  17381. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17382. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17383. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17384. msm_routing_get_port_mixer,
  17385. msm_routing_put_port_mixer),
  17386. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17387. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17388. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17389. msm_routing_get_port_mixer,
  17390. msm_routing_put_port_mixer),
  17391. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17392. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17393. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17394. msm_routing_get_port_mixer,
  17395. msm_routing_put_port_mixer),
  17396. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17397. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17398. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17399. msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17402. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17403. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17404. msm_routing_get_port_mixer,
  17405. msm_routing_put_port_mixer),
  17406. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17407. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17408. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17409. msm_routing_get_port_mixer,
  17410. msm_routing_put_port_mixer),
  17411. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17413. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17414. msm_routing_get_port_mixer,
  17415. msm_routing_put_port_mixer),
  17416. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17418. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17419. msm_routing_get_port_mixer,
  17420. msm_routing_put_port_mixer),
  17421. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17422. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17423. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17424. msm_routing_get_port_mixer,
  17425. msm_routing_put_port_mixer),
  17426. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17427. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17428. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17429. msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17433. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17434. msm_routing_get_port_mixer,
  17435. msm_routing_put_port_mixer),
  17436. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17437. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17438. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17439. msm_routing_get_port_mixer,
  17440. msm_routing_put_port_mixer),
  17441. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17442. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17443. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17444. msm_routing_get_port_mixer,
  17445. msm_routing_put_port_mixer),
  17446. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17447. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17448. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17449. msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17453. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17454. msm_routing_get_port_mixer,
  17455. msm_routing_put_port_mixer),
  17456. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17457. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17458. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17459. msm_routing_get_port_mixer,
  17460. msm_routing_put_port_mixer),
  17461. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17462. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17463. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17464. msm_routing_get_port_mixer,
  17465. msm_routing_put_port_mixer),
  17466. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17467. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17468. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17469. msm_routing_get_port_mixer,
  17470. msm_routing_put_port_mixer),
  17471. };
  17472. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17473. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17475. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17476. msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17480. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17481. msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17485. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17486. msm_routing_get_port_mixer,
  17487. msm_routing_put_port_mixer),
  17488. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17489. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17490. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17491. msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17495. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17496. msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17500. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17501. msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17505. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17506. msm_routing_get_port_mixer,
  17507. msm_routing_put_port_mixer),
  17508. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17509. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17510. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17511. msm_routing_get_port_mixer,
  17512. msm_routing_put_port_mixer),
  17513. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17515. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17516. msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17520. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17521. msm_routing_get_port_mixer,
  17522. msm_routing_put_port_mixer),
  17523. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17524. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17525. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17526. msm_routing_get_port_mixer,
  17527. msm_routing_put_port_mixer),
  17528. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17529. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17530. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17531. msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17535. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17536. msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17540. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17541. msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17545. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17546. msm_routing_get_port_mixer,
  17547. msm_routing_put_port_mixer),
  17548. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17550. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17551. msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17555. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17556. msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17559. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17560. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17561. msm_routing_get_port_mixer,
  17562. msm_routing_put_port_mixer),
  17563. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17565. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17566. msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17570. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17571. msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17574. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17575. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17576. msm_routing_get_port_mixer,
  17577. msm_routing_put_port_mixer),
  17578. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17579. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17580. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17581. msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17585. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17586. msm_routing_get_port_mixer,
  17587. msm_routing_put_port_mixer),
  17588. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17589. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17590. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17591. msm_routing_get_port_mixer,
  17592. msm_routing_put_port_mixer),
  17593. };
  17594. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17595. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  17597. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  17598. msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. };
  17601. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  17602. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17604. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17605. msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17609. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17610. msm_routing_get_port_mixer,
  17611. msm_routing_put_port_mixer),
  17612. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17614. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17615. msm_routing_get_port_mixer,
  17616. msm_routing_put_port_mixer),
  17617. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17618. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17619. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17620. msm_routing_get_port_mixer,
  17621. msm_routing_put_port_mixer),
  17622. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17623. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17624. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17625. msm_routing_get_port_mixer,
  17626. msm_routing_put_port_mixer),
  17627. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17628. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17629. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17630. msm_routing_get_port_mixer,
  17631. msm_routing_put_port_mixer),
  17632. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17633. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17634. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17635. msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17639. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17640. msm_routing_get_port_mixer,
  17641. msm_routing_put_port_mixer),
  17642. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17643. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17644. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17645. msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17648. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17649. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17650. msm_routing_get_port_mixer,
  17651. msm_routing_put_port_mixer),
  17652. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17653. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17654. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17655. msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17658. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17659. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17660. msm_routing_get_port_mixer,
  17661. msm_routing_put_port_mixer),
  17662. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17663. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17664. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17665. msm_routing_get_port_mixer,
  17666. msm_routing_put_port_mixer),
  17667. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17668. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17669. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17670. msm_routing_get_port_mixer,
  17671. msm_routing_put_port_mixer),
  17672. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17674. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17675. msm_routing_get_port_mixer,
  17676. msm_routing_put_port_mixer),
  17677. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17678. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17679. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17680. msm_routing_get_port_mixer,
  17681. msm_routing_put_port_mixer),
  17682. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17683. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17684. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17685. msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17689. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17690. msm_routing_get_port_mixer,
  17691. msm_routing_put_port_mixer),
  17692. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17693. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17694. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17695. msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17699. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17700. msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17704. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17705. msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17709. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17710. msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17714. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17715. msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17719. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17720. msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. };
  17723. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  17724. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17725. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17726. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17727. msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17731. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17732. msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17735. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17736. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17737. msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17740. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17741. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17742. msm_routing_get_port_mixer,
  17743. msm_routing_put_port_mixer),
  17744. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17745. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17746. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17747. msm_routing_get_port_mixer,
  17748. msm_routing_put_port_mixer),
  17749. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17750. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17751. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17752. msm_routing_get_port_mixer,
  17753. msm_routing_put_port_mixer),
  17754. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17755. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17756. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17757. msm_routing_get_port_mixer,
  17758. msm_routing_put_port_mixer),
  17759. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17760. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17761. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17762. msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17766. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17767. msm_routing_get_port_mixer,
  17768. msm_routing_put_port_mixer),
  17769. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17770. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17771. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17772. msm_routing_get_port_mixer,
  17773. msm_routing_put_port_mixer),
  17774. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17775. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17776. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17777. msm_routing_get_port_mixer,
  17778. msm_routing_put_port_mixer),
  17779. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17780. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17781. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17782. msm_routing_get_port_mixer,
  17783. msm_routing_put_port_mixer),
  17784. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17785. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17786. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17787. msm_routing_get_port_mixer,
  17788. msm_routing_put_port_mixer),
  17789. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17791. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17792. msm_routing_get_port_mixer,
  17793. msm_routing_put_port_mixer),
  17794. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17795. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17796. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17797. msm_routing_get_port_mixer,
  17798. msm_routing_put_port_mixer),
  17799. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17800. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17801. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17802. msm_routing_get_port_mixer,
  17803. msm_routing_put_port_mixer),
  17804. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17805. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17806. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17807. msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17811. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17812. msm_routing_get_port_mixer,
  17813. msm_routing_put_port_mixer),
  17814. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17816. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17817. msm_routing_get_port_mixer,
  17818. msm_routing_put_port_mixer),
  17819. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17821. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17822. msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17826. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17827. msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17831. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17832. msm_routing_get_port_mixer,
  17833. msm_routing_put_port_mixer),
  17834. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17835. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17836. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17837. msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17841. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17842. msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. };
  17845. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  17846. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17847. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17848. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17849. msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17854. msm_routing_get_port_mixer,
  17855. msm_routing_put_port_mixer),
  17856. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17858. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17859. msm_routing_get_port_mixer,
  17860. msm_routing_put_port_mixer),
  17861. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17862. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17863. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17864. msm_routing_get_port_mixer,
  17865. msm_routing_put_port_mixer),
  17866. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17867. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17868. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17869. msm_routing_get_port_mixer,
  17870. msm_routing_put_port_mixer),
  17871. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17872. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17873. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17874. msm_routing_get_port_mixer,
  17875. msm_routing_put_port_mixer),
  17876. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17877. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17878. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17879. msm_routing_get_port_mixer,
  17880. msm_routing_put_port_mixer),
  17881. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17882. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17883. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17884. msm_routing_get_port_mixer,
  17885. msm_routing_put_port_mixer),
  17886. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17887. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17888. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17889. msm_routing_get_port_mixer,
  17890. msm_routing_put_port_mixer),
  17891. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17892. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17893. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17894. msm_routing_get_port_mixer,
  17895. msm_routing_put_port_mixer),
  17896. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17897. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17898. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17899. msm_routing_get_port_mixer,
  17900. msm_routing_put_port_mixer),
  17901. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17902. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17903. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17904. msm_routing_get_port_mixer,
  17905. msm_routing_put_port_mixer),
  17906. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17907. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17908. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17909. msm_routing_get_port_mixer,
  17910. msm_routing_put_port_mixer),
  17911. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17912. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17913. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17914. msm_routing_get_port_mixer,
  17915. msm_routing_put_port_mixer),
  17916. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17917. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17918. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17919. msm_routing_get_port_mixer,
  17920. msm_routing_put_port_mixer),
  17921. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17923. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17924. msm_routing_get_port_mixer,
  17925. msm_routing_put_port_mixer),
  17926. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17928. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17929. msm_routing_get_port_mixer,
  17930. msm_routing_put_port_mixer),
  17931. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17932. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17933. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17934. msm_routing_get_port_mixer,
  17935. msm_routing_put_port_mixer),
  17936. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17937. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17938. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17939. msm_routing_get_port_mixer,
  17940. msm_routing_put_port_mixer),
  17941. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17943. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17944. msm_routing_get_port_mixer,
  17945. msm_routing_put_port_mixer),
  17946. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17948. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17949. msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17953. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17954. msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17958. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17959. msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17963. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17964. msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. };
  17967. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  17968. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17969. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17970. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17971. msm_routing_get_port_mixer,
  17972. msm_routing_put_port_mixer),
  17973. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17975. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17976. msm_routing_get_port_mixer,
  17977. msm_routing_put_port_mixer),
  17978. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17979. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17980. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17981. msm_routing_get_port_mixer,
  17982. msm_routing_put_port_mixer),
  17983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17984. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17986. msm_routing_get_port_mixer,
  17987. msm_routing_put_port_mixer),
  17988. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17989. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17990. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17991. msm_routing_get_port_mixer,
  17992. msm_routing_put_port_mixer),
  17993. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17995. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17996. msm_routing_get_port_mixer,
  17997. msm_routing_put_port_mixer),
  17998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18000. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18001. msm_routing_get_port_mixer,
  18002. msm_routing_put_port_mixer),
  18003. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18005. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18006. msm_routing_get_port_mixer,
  18007. msm_routing_put_port_mixer),
  18008. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18009. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18010. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18011. msm_routing_get_port_mixer,
  18012. msm_routing_put_port_mixer),
  18013. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18015. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18016. msm_routing_get_port_mixer,
  18017. msm_routing_put_port_mixer),
  18018. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18020. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18021. msm_routing_get_port_mixer,
  18022. msm_routing_put_port_mixer),
  18023. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18025. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18026. msm_routing_get_port_mixer,
  18027. msm_routing_put_port_mixer),
  18028. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18029. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18030. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18031. msm_routing_get_port_mixer,
  18032. msm_routing_put_port_mixer),
  18033. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18034. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18035. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18036. msm_routing_get_port_mixer,
  18037. msm_routing_put_port_mixer),
  18038. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18039. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18040. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18041. msm_routing_get_port_mixer,
  18042. msm_routing_put_port_mixer),
  18043. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18044. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18045. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18046. msm_routing_get_port_mixer,
  18047. msm_routing_put_port_mixer),
  18048. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18049. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18050. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18051. msm_routing_get_port_mixer,
  18052. msm_routing_put_port_mixer),
  18053. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18054. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18055. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18056. msm_routing_get_port_mixer,
  18057. msm_routing_put_port_mixer),
  18058. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18059. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18060. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18061. msm_routing_get_port_mixer,
  18062. msm_routing_put_port_mixer),
  18063. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18064. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18065. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18066. msm_routing_get_port_mixer,
  18067. msm_routing_put_port_mixer),
  18068. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18069. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18070. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18071. msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18074. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18075. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18076. msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18079. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18080. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18081. msm_routing_get_port_mixer,
  18082. msm_routing_put_port_mixer),
  18083. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18084. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18085. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18086. msm_routing_get_port_mixer,
  18087. msm_routing_put_port_mixer),
  18088. };
  18089. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18090. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18091. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18092. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18093. msm_routing_get_port_mixer,
  18094. msm_routing_put_port_mixer),
  18095. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18096. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18097. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18098. msm_routing_get_port_mixer,
  18099. msm_routing_put_port_mixer),
  18100. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18101. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18102. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18103. msm_routing_get_port_mixer,
  18104. msm_routing_put_port_mixer),
  18105. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18106. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18107. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18108. msm_routing_get_port_mixer,
  18109. msm_routing_put_port_mixer),
  18110. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18111. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18112. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18113. msm_routing_get_port_mixer,
  18114. msm_routing_put_port_mixer),
  18115. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18116. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18117. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18118. msm_routing_get_port_mixer,
  18119. msm_routing_put_port_mixer),
  18120. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18121. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18122. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18123. msm_routing_get_port_mixer,
  18124. msm_routing_put_port_mixer),
  18125. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18126. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18127. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18128. msm_routing_get_port_mixer,
  18129. msm_routing_put_port_mixer),
  18130. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18131. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18132. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18133. msm_routing_get_port_mixer,
  18134. msm_routing_put_port_mixer),
  18135. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18136. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18137. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18138. msm_routing_get_port_mixer,
  18139. msm_routing_put_port_mixer),
  18140. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18141. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18142. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18143. msm_routing_get_port_mixer,
  18144. msm_routing_put_port_mixer),
  18145. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18146. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18147. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18148. msm_routing_get_port_mixer,
  18149. msm_routing_put_port_mixer),
  18150. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18151. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18152. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18153. msm_routing_get_port_mixer,
  18154. msm_routing_put_port_mixer),
  18155. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18156. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18157. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18158. msm_routing_get_port_mixer,
  18159. msm_routing_put_port_mixer),
  18160. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18161. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18162. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18163. msm_routing_get_port_mixer,
  18164. msm_routing_put_port_mixer),
  18165. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18166. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18167. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18168. msm_routing_get_port_mixer,
  18169. msm_routing_put_port_mixer),
  18170. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18171. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18172. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18173. msm_routing_get_port_mixer,
  18174. msm_routing_put_port_mixer),
  18175. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18176. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18177. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18178. msm_routing_get_port_mixer,
  18179. msm_routing_put_port_mixer),
  18180. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18181. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18182. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18183. msm_routing_get_port_mixer,
  18184. msm_routing_put_port_mixer),
  18185. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18186. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18187. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18188. msm_routing_get_port_mixer,
  18189. msm_routing_put_port_mixer),
  18190. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18191. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18192. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18193. msm_routing_get_port_mixer,
  18194. msm_routing_put_port_mixer),
  18195. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18196. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18197. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18198. msm_routing_get_port_mixer,
  18199. msm_routing_put_port_mixer),
  18200. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18201. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18202. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18203. msm_routing_get_port_mixer,
  18204. msm_routing_put_port_mixer),
  18205. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18206. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18207. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18208. msm_routing_get_port_mixer,
  18209. msm_routing_put_port_mixer),
  18210. };
  18211. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18212. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18213. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18214. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18215. msm_routing_get_port_mixer,
  18216. msm_routing_put_port_mixer),
  18217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18218. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18220. msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18223. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18224. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18225. msm_routing_get_port_mixer,
  18226. msm_routing_put_port_mixer),
  18227. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18228. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18229. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18230. msm_routing_get_port_mixer,
  18231. msm_routing_put_port_mixer),
  18232. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18233. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18234. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18235. msm_routing_get_port_mixer,
  18236. msm_routing_put_port_mixer),
  18237. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18238. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18239. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18240. msm_routing_get_port_mixer,
  18241. msm_routing_put_port_mixer),
  18242. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18243. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18244. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18245. msm_routing_get_port_mixer,
  18246. msm_routing_put_port_mixer),
  18247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18248. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18249. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18250. msm_routing_get_port_mixer,
  18251. msm_routing_put_port_mixer),
  18252. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18253. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18254. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18255. msm_routing_get_port_mixer,
  18256. msm_routing_put_port_mixer),
  18257. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18258. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18259. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18260. msm_routing_get_port_mixer,
  18261. msm_routing_put_port_mixer),
  18262. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18263. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18264. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18265. msm_routing_get_port_mixer,
  18266. msm_routing_put_port_mixer),
  18267. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18268. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18269. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18270. msm_routing_get_port_mixer,
  18271. msm_routing_put_port_mixer),
  18272. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18273. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18274. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18275. msm_routing_get_port_mixer,
  18276. msm_routing_put_port_mixer),
  18277. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18278. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18279. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18280. msm_routing_get_port_mixer,
  18281. msm_routing_put_port_mixer),
  18282. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18283. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18284. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18285. msm_routing_get_port_mixer,
  18286. msm_routing_put_port_mixer),
  18287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18288. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18289. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18290. msm_routing_get_port_mixer,
  18291. msm_routing_put_port_mixer),
  18292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18293. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18294. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18295. msm_routing_get_port_mixer,
  18296. msm_routing_put_port_mixer),
  18297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18298. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18299. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18300. msm_routing_get_port_mixer,
  18301. msm_routing_put_port_mixer),
  18302. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18303. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18304. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18305. msm_routing_get_port_mixer,
  18306. msm_routing_put_port_mixer),
  18307. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18308. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18309. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18310. msm_routing_get_port_mixer,
  18311. msm_routing_put_port_mixer),
  18312. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18314. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18315. msm_routing_get_port_mixer,
  18316. msm_routing_put_port_mixer),
  18317. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18318. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18319. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18320. msm_routing_get_port_mixer,
  18321. msm_routing_put_port_mixer),
  18322. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18323. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18324. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18325. msm_routing_get_port_mixer,
  18326. msm_routing_put_port_mixer),
  18327. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18328. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18329. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18330. msm_routing_get_port_mixer,
  18331. msm_routing_put_port_mixer),
  18332. };
  18333. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18334. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18336. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18337. msm_routing_get_port_mixer,
  18338. msm_routing_put_port_mixer),
  18339. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18341. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18342. msm_routing_get_port_mixer,
  18343. msm_routing_put_port_mixer),
  18344. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18345. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18346. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18347. msm_routing_get_port_mixer,
  18348. msm_routing_put_port_mixer),
  18349. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18350. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18351. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18352. msm_routing_get_port_mixer,
  18353. msm_routing_put_port_mixer),
  18354. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18355. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18356. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18357. msm_routing_get_port_mixer,
  18358. msm_routing_put_port_mixer),
  18359. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18360. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18361. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18362. msm_routing_get_port_mixer,
  18363. msm_routing_put_port_mixer),
  18364. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18365. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18366. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18367. msm_routing_get_port_mixer,
  18368. msm_routing_put_port_mixer),
  18369. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18370. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18371. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18372. msm_routing_get_port_mixer,
  18373. msm_routing_put_port_mixer),
  18374. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18375. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18376. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18377. msm_routing_get_port_mixer,
  18378. msm_routing_put_port_mixer),
  18379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18380. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18381. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18382. msm_routing_get_port_mixer,
  18383. msm_routing_put_port_mixer),
  18384. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18386. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18387. msm_routing_get_port_mixer,
  18388. msm_routing_put_port_mixer),
  18389. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18390. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18391. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18392. msm_routing_get_port_mixer,
  18393. msm_routing_put_port_mixer),
  18394. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18395. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18396. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18397. msm_routing_get_port_mixer,
  18398. msm_routing_put_port_mixer),
  18399. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18400. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18401. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18402. msm_routing_get_port_mixer,
  18403. msm_routing_put_port_mixer),
  18404. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18405. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18406. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18407. msm_routing_get_port_mixer,
  18408. msm_routing_put_port_mixer),
  18409. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18410. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18411. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18412. msm_routing_get_port_mixer,
  18413. msm_routing_put_port_mixer),
  18414. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18415. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18416. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18417. msm_routing_get_port_mixer,
  18418. msm_routing_put_port_mixer),
  18419. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18420. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18421. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18422. msm_routing_get_port_mixer,
  18423. msm_routing_put_port_mixer),
  18424. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18425. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18426. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18427. msm_routing_get_port_mixer,
  18428. msm_routing_put_port_mixer),
  18429. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18430. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18431. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18432. msm_routing_get_port_mixer,
  18433. msm_routing_put_port_mixer),
  18434. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18435. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18436. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18437. msm_routing_get_port_mixer,
  18438. msm_routing_put_port_mixer),
  18439. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18440. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18441. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18442. msm_routing_get_port_mixer,
  18443. msm_routing_put_port_mixer),
  18444. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18445. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18446. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18447. msm_routing_get_port_mixer,
  18448. msm_routing_put_port_mixer),
  18449. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18450. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18451. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18452. msm_routing_get_port_mixer,
  18453. msm_routing_put_port_mixer),
  18454. };
  18455. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18456. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18458. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18463. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18473. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18474. msm_routing_get_port_mixer,
  18475. msm_routing_put_port_mixer),
  18476. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18478. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18479. msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18483. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18484. msm_routing_get_port_mixer,
  18485. msm_routing_put_port_mixer),
  18486. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18488. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18489. msm_routing_get_port_mixer,
  18490. msm_routing_put_port_mixer),
  18491. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18492. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18493. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18494. msm_routing_get_port_mixer,
  18495. msm_routing_put_port_mixer),
  18496. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18497. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18498. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18499. msm_routing_get_port_mixer,
  18500. msm_routing_put_port_mixer),
  18501. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18502. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18503. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18504. msm_routing_get_port_mixer,
  18505. msm_routing_put_port_mixer),
  18506. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18507. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18508. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18509. msm_routing_get_port_mixer,
  18510. msm_routing_put_port_mixer),
  18511. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18512. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18513. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18514. msm_routing_get_port_mixer,
  18515. msm_routing_put_port_mixer),
  18516. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18517. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18518. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18519. msm_routing_get_port_mixer,
  18520. msm_routing_put_port_mixer),
  18521. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18522. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18523. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18524. msm_routing_get_port_mixer,
  18525. msm_routing_put_port_mixer),
  18526. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18527. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18528. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18529. msm_routing_get_port_mixer,
  18530. msm_routing_put_port_mixer),
  18531. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18532. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18533. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18534. msm_routing_get_port_mixer,
  18535. msm_routing_put_port_mixer),
  18536. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18537. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18538. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18539. msm_routing_get_port_mixer,
  18540. msm_routing_put_port_mixer),
  18541. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18542. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18543. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18544. msm_routing_get_port_mixer,
  18545. msm_routing_put_port_mixer),
  18546. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18547. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18548. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18549. msm_routing_get_port_mixer,
  18550. msm_routing_put_port_mixer),
  18551. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18552. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18553. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18554. msm_routing_get_port_mixer,
  18555. msm_routing_put_port_mixer),
  18556. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18557. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18558. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18559. msm_routing_get_port_mixer,
  18560. msm_routing_put_port_mixer),
  18561. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18562. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18563. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18564. msm_routing_get_port_mixer,
  18565. msm_routing_put_port_mixer),
  18566. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18567. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18568. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18569. msm_routing_get_port_mixer,
  18570. msm_routing_put_port_mixer),
  18571. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18572. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18573. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18574. msm_routing_get_port_mixer,
  18575. msm_routing_put_port_mixer),
  18576. };
  18577. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18578. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18580. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18585. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. };
  18589. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18590. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18591. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18592. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18593. msm_routing_get_port_mixer,
  18594. msm_routing_put_port_mixer),
  18595. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18596. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18597. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18598. msm_routing_get_port_mixer,
  18599. msm_routing_put_port_mixer),
  18600. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18601. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18602. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18603. msm_routing_get_port_mixer,
  18604. msm_routing_put_port_mixer),
  18605. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18606. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18607. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18608. msm_routing_get_port_mixer,
  18609. msm_routing_put_port_mixer),
  18610. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18611. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18612. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18613. msm_routing_get_port_mixer,
  18614. msm_routing_put_port_mixer),
  18615. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18616. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18617. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18618. msm_routing_get_port_mixer,
  18619. msm_routing_put_port_mixer),
  18620. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18621. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18622. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18623. msm_routing_get_port_mixer,
  18624. msm_routing_put_port_mixer),
  18625. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18627. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18628. msm_routing_get_port_mixer,
  18629. msm_routing_put_port_mixer),
  18630. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18632. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18633. msm_routing_get_port_mixer,
  18634. msm_routing_put_port_mixer),
  18635. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18636. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18637. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18638. msm_routing_get_port_mixer,
  18639. msm_routing_put_port_mixer),
  18640. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18642. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18643. msm_routing_get_port_mixer,
  18644. msm_routing_put_port_mixer),
  18645. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18647. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18648. msm_routing_get_port_mixer,
  18649. msm_routing_put_port_mixer),
  18650. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18652. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18653. msm_routing_get_port_mixer,
  18654. msm_routing_put_port_mixer),
  18655. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18657. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18658. msm_routing_get_port_mixer,
  18659. msm_routing_put_port_mixer),
  18660. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18662. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18663. msm_routing_get_port_mixer,
  18664. msm_routing_put_port_mixer),
  18665. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18667. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18668. msm_routing_get_port_mixer,
  18669. msm_routing_put_port_mixer),
  18670. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18672. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18673. msm_routing_get_port_mixer,
  18674. msm_routing_put_port_mixer),
  18675. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18677. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18678. msm_routing_get_port_mixer,
  18679. msm_routing_put_port_mixer),
  18680. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18682. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18687. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18692. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18697. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18702. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18707. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. };
  18711. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  18712. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18713. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18714. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18715. msm_routing_get_port_mixer,
  18716. msm_routing_put_port_mixer),
  18717. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18719. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18720. msm_routing_get_port_mixer,
  18721. msm_routing_put_port_mixer),
  18722. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18723. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18724. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18725. msm_routing_get_port_mixer,
  18726. msm_routing_put_port_mixer),
  18727. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18728. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18729. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18730. msm_routing_get_port_mixer,
  18731. msm_routing_put_port_mixer),
  18732. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18733. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18734. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18735. msm_routing_get_port_mixer,
  18736. msm_routing_put_port_mixer),
  18737. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18738. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18739. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18740. msm_routing_get_port_mixer,
  18741. msm_routing_put_port_mixer),
  18742. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18743. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18744. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18745. msm_routing_get_port_mixer,
  18746. msm_routing_put_port_mixer),
  18747. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18748. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18749. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18750. msm_routing_get_port_mixer,
  18751. msm_routing_put_port_mixer),
  18752. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18754. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18755. msm_routing_get_port_mixer,
  18756. msm_routing_put_port_mixer),
  18757. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18759. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18760. msm_routing_get_port_mixer,
  18761. msm_routing_put_port_mixer),
  18762. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18764. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18765. msm_routing_get_port_mixer,
  18766. msm_routing_put_port_mixer),
  18767. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18768. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18769. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18770. msm_routing_get_port_mixer,
  18771. msm_routing_put_port_mixer),
  18772. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18774. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18775. msm_routing_get_port_mixer,
  18776. msm_routing_put_port_mixer),
  18777. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18779. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18780. msm_routing_get_port_mixer,
  18781. msm_routing_put_port_mixer),
  18782. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18784. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18785. msm_routing_get_port_mixer,
  18786. msm_routing_put_port_mixer),
  18787. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18788. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18789. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18790. msm_routing_get_port_mixer,
  18791. msm_routing_put_port_mixer),
  18792. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18793. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18794. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18795. msm_routing_get_port_mixer,
  18796. msm_routing_put_port_mixer),
  18797. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18799. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18800. msm_routing_get_port_mixer,
  18801. msm_routing_put_port_mixer),
  18802. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18804. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18809. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18814. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18819. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18824. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18829. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. };
  18833. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  18834. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18835. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18836. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18837. msm_routing_get_port_mixer,
  18838. msm_routing_put_port_mixer),
  18839. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18840. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18841. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18842. msm_routing_get_port_mixer,
  18843. msm_routing_put_port_mixer),
  18844. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18845. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18846. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18847. msm_routing_get_port_mixer,
  18848. msm_routing_put_port_mixer),
  18849. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18850. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18851. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18852. msm_routing_get_port_mixer,
  18853. msm_routing_put_port_mixer),
  18854. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18855. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18856. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18857. msm_routing_get_port_mixer,
  18858. msm_routing_put_port_mixer),
  18859. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18860. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18861. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18862. msm_routing_get_port_mixer,
  18863. msm_routing_put_port_mixer),
  18864. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18865. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18866. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18867. msm_routing_get_port_mixer,
  18868. msm_routing_put_port_mixer),
  18869. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18870. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18871. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18872. msm_routing_get_port_mixer,
  18873. msm_routing_put_port_mixer),
  18874. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18875. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18876. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18877. msm_routing_get_port_mixer,
  18878. msm_routing_put_port_mixer),
  18879. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18880. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18881. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18882. msm_routing_get_port_mixer,
  18883. msm_routing_put_port_mixer),
  18884. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18885. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18886. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18887. msm_routing_get_port_mixer,
  18888. msm_routing_put_port_mixer),
  18889. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18890. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18891. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18892. msm_routing_get_port_mixer,
  18893. msm_routing_put_port_mixer),
  18894. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18895. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18896. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18897. msm_routing_get_port_mixer,
  18898. msm_routing_put_port_mixer),
  18899. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18900. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18901. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18902. msm_routing_get_port_mixer,
  18903. msm_routing_put_port_mixer),
  18904. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18905. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18906. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18907. msm_routing_get_port_mixer,
  18908. msm_routing_put_port_mixer),
  18909. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18910. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18911. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18912. msm_routing_get_port_mixer,
  18913. msm_routing_put_port_mixer),
  18914. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18916. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18917. msm_routing_get_port_mixer,
  18918. msm_routing_put_port_mixer),
  18919. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18920. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18921. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18922. msm_routing_get_port_mixer,
  18923. msm_routing_put_port_mixer),
  18924. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18925. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18926. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18927. msm_routing_get_port_mixer,
  18928. msm_routing_put_port_mixer),
  18929. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18931. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18936. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18941. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18946. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18951. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18952. msm_routing_get_port_mixer,
  18953. msm_routing_put_port_mixer),
  18954. };
  18955. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  18956. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18957. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18958. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18959. msm_routing_get_port_mixer,
  18960. msm_routing_put_port_mixer),
  18961. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18962. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18963. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18964. msm_routing_get_port_mixer,
  18965. msm_routing_put_port_mixer),
  18966. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18967. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18968. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18969. msm_routing_get_port_mixer,
  18970. msm_routing_put_port_mixer),
  18971. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18972. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18973. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18974. msm_routing_get_port_mixer,
  18975. msm_routing_put_port_mixer),
  18976. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18977. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18978. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18979. msm_routing_get_port_mixer,
  18980. msm_routing_put_port_mixer),
  18981. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18982. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18983. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18984. msm_routing_get_port_mixer,
  18985. msm_routing_put_port_mixer),
  18986. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18987. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18988. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18989. msm_routing_get_port_mixer,
  18990. msm_routing_put_port_mixer),
  18991. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18992. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18993. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18994. msm_routing_get_port_mixer,
  18995. msm_routing_put_port_mixer),
  18996. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18997. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18998. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18999. msm_routing_get_port_mixer,
  19000. msm_routing_put_port_mixer),
  19001. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19002. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19003. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19004. msm_routing_get_port_mixer,
  19005. msm_routing_put_port_mixer),
  19006. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19007. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19008. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19009. msm_routing_get_port_mixer,
  19010. msm_routing_put_port_mixer),
  19011. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19012. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19013. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19014. msm_routing_get_port_mixer,
  19015. msm_routing_put_port_mixer),
  19016. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19017. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19018. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19019. msm_routing_get_port_mixer,
  19020. msm_routing_put_port_mixer),
  19021. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19022. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19023. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19024. msm_routing_get_port_mixer,
  19025. msm_routing_put_port_mixer),
  19026. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19027. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19028. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19029. msm_routing_get_port_mixer,
  19030. msm_routing_put_port_mixer),
  19031. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19032. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19033. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19034. msm_routing_get_port_mixer,
  19035. msm_routing_put_port_mixer),
  19036. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19037. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19038. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19039. msm_routing_get_port_mixer,
  19040. msm_routing_put_port_mixer),
  19041. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19042. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19043. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19044. msm_routing_get_port_mixer,
  19045. msm_routing_put_port_mixer),
  19046. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19047. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19048. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19049. msm_routing_get_port_mixer,
  19050. msm_routing_put_port_mixer),
  19051. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19052. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19053. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19054. msm_routing_get_port_mixer,
  19055. msm_routing_put_port_mixer),
  19056. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19057. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19058. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19059. msm_routing_get_port_mixer,
  19060. msm_routing_put_port_mixer),
  19061. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19062. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19063. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19064. msm_routing_get_port_mixer,
  19065. msm_routing_put_port_mixer),
  19066. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19067. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19068. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19069. msm_routing_get_port_mixer,
  19070. msm_routing_put_port_mixer),
  19071. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19072. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19073. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19074. msm_routing_get_port_mixer,
  19075. msm_routing_put_port_mixer),
  19076. };
  19077. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19078. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19079. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19080. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19081. msm_routing_get_port_mixer,
  19082. msm_routing_put_port_mixer),
  19083. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19084. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19085. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19086. msm_routing_get_port_mixer,
  19087. msm_routing_put_port_mixer),
  19088. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19089. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19090. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19091. msm_routing_get_port_mixer,
  19092. msm_routing_put_port_mixer),
  19093. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19094. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19095. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19096. msm_routing_get_port_mixer,
  19097. msm_routing_put_port_mixer),
  19098. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19099. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19100. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19101. msm_routing_get_port_mixer,
  19102. msm_routing_put_port_mixer),
  19103. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19104. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19105. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19106. msm_routing_get_port_mixer,
  19107. msm_routing_put_port_mixer),
  19108. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19109. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19110. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19111. msm_routing_get_port_mixer,
  19112. msm_routing_put_port_mixer),
  19113. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19114. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19115. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19116. msm_routing_get_port_mixer,
  19117. msm_routing_put_port_mixer),
  19118. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19119. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19120. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19121. msm_routing_get_port_mixer,
  19122. msm_routing_put_port_mixer),
  19123. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19124. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19125. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19126. msm_routing_get_port_mixer,
  19127. msm_routing_put_port_mixer),
  19128. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19129. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19130. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19131. msm_routing_get_port_mixer,
  19132. msm_routing_put_port_mixer),
  19133. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19134. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19135. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19136. msm_routing_get_port_mixer,
  19137. msm_routing_put_port_mixer),
  19138. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19139. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19140. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19141. msm_routing_get_port_mixer,
  19142. msm_routing_put_port_mixer),
  19143. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19144. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19145. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19146. msm_routing_get_port_mixer,
  19147. msm_routing_put_port_mixer),
  19148. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19149. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19150. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19151. msm_routing_get_port_mixer,
  19152. msm_routing_put_port_mixer),
  19153. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19154. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19155. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19156. msm_routing_get_port_mixer,
  19157. msm_routing_put_port_mixer),
  19158. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19159. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19160. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19161. msm_routing_get_port_mixer,
  19162. msm_routing_put_port_mixer),
  19163. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19164. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19165. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19166. msm_routing_get_port_mixer,
  19167. msm_routing_put_port_mixer),
  19168. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19169. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19170. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19171. msm_routing_get_port_mixer,
  19172. msm_routing_put_port_mixer),
  19173. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19174. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19175. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19176. msm_routing_get_port_mixer,
  19177. msm_routing_put_port_mixer),
  19178. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19179. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19180. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19181. msm_routing_get_port_mixer,
  19182. msm_routing_put_port_mixer),
  19183. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19184. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19185. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19186. msm_routing_get_port_mixer,
  19187. msm_routing_put_port_mixer),
  19188. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19189. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19190. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19191. msm_routing_get_port_mixer,
  19192. msm_routing_put_port_mixer),
  19193. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19194. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19195. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19196. msm_routing_get_port_mixer,
  19197. msm_routing_put_port_mixer),
  19198. };
  19199. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19200. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19201. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19202. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19203. msm_routing_get_port_mixer,
  19204. msm_routing_put_port_mixer),
  19205. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19206. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19207. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19208. msm_routing_get_port_mixer,
  19209. msm_routing_put_port_mixer),
  19210. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19211. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19212. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19213. msm_routing_get_port_mixer,
  19214. msm_routing_put_port_mixer),
  19215. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19216. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19217. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19218. msm_routing_get_port_mixer,
  19219. msm_routing_put_port_mixer),
  19220. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19221. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19222. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19223. msm_routing_get_port_mixer,
  19224. msm_routing_put_port_mixer),
  19225. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19226. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19227. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19228. msm_routing_get_port_mixer,
  19229. msm_routing_put_port_mixer),
  19230. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19231. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19232. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19233. msm_routing_get_port_mixer,
  19234. msm_routing_put_port_mixer),
  19235. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19236. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19237. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19238. msm_routing_get_port_mixer,
  19239. msm_routing_put_port_mixer),
  19240. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19241. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19242. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19243. msm_routing_get_port_mixer,
  19244. msm_routing_put_port_mixer),
  19245. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19246. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19247. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19248. msm_routing_get_port_mixer,
  19249. msm_routing_put_port_mixer),
  19250. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19251. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19252. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19253. msm_routing_get_port_mixer,
  19254. msm_routing_put_port_mixer),
  19255. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19256. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19257. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19258. msm_routing_get_port_mixer,
  19259. msm_routing_put_port_mixer),
  19260. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19261. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19262. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19263. msm_routing_get_port_mixer,
  19264. msm_routing_put_port_mixer),
  19265. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19266. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19267. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19268. msm_routing_get_port_mixer,
  19269. msm_routing_put_port_mixer),
  19270. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19271. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19272. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19273. msm_routing_get_port_mixer,
  19274. msm_routing_put_port_mixer),
  19275. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19276. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19277. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19278. msm_routing_get_port_mixer,
  19279. msm_routing_put_port_mixer),
  19280. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19281. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19282. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19283. msm_routing_get_port_mixer,
  19284. msm_routing_put_port_mixer),
  19285. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19286. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19287. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19288. msm_routing_get_port_mixer,
  19289. msm_routing_put_port_mixer),
  19290. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19291. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19292. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19293. msm_routing_get_port_mixer,
  19294. msm_routing_put_port_mixer),
  19295. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19296. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19297. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19298. msm_routing_get_port_mixer,
  19299. msm_routing_put_port_mixer),
  19300. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19301. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19302. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19303. msm_routing_get_port_mixer,
  19304. msm_routing_put_port_mixer),
  19305. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19306. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19307. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19308. msm_routing_get_port_mixer,
  19309. msm_routing_put_port_mixer),
  19310. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19311. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19312. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19313. msm_routing_get_port_mixer,
  19314. msm_routing_put_port_mixer),
  19315. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19316. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19317. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19318. msm_routing_get_port_mixer,
  19319. msm_routing_put_port_mixer),
  19320. };
  19321. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19322. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19323. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19324. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19325. msm_routing_get_port_mixer,
  19326. msm_routing_put_port_mixer),
  19327. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19328. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19329. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19330. msm_routing_get_port_mixer,
  19331. msm_routing_put_port_mixer),
  19332. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19333. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19334. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19335. msm_routing_get_port_mixer,
  19336. msm_routing_put_port_mixer),
  19337. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19338. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19339. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19340. msm_routing_get_port_mixer,
  19341. msm_routing_put_port_mixer),
  19342. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19343. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19344. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19345. msm_routing_get_port_mixer,
  19346. msm_routing_put_port_mixer),
  19347. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19348. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19349. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19350. msm_routing_get_port_mixer,
  19351. msm_routing_put_port_mixer),
  19352. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19353. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19354. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19355. msm_routing_get_port_mixer,
  19356. msm_routing_put_port_mixer),
  19357. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19358. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19359. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19360. msm_routing_get_port_mixer,
  19361. msm_routing_put_port_mixer),
  19362. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19363. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19364. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19365. msm_routing_get_port_mixer,
  19366. msm_routing_put_port_mixer),
  19367. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19368. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19369. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19370. msm_routing_get_port_mixer,
  19371. msm_routing_put_port_mixer),
  19372. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19373. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19374. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19375. msm_routing_get_port_mixer,
  19376. msm_routing_put_port_mixer),
  19377. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19378. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19379. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19380. msm_routing_get_port_mixer,
  19381. msm_routing_put_port_mixer),
  19382. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19383. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19384. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19385. msm_routing_get_port_mixer,
  19386. msm_routing_put_port_mixer),
  19387. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19388. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19389. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19390. msm_routing_get_port_mixer,
  19391. msm_routing_put_port_mixer),
  19392. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19393. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19394. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19395. msm_routing_get_port_mixer,
  19396. msm_routing_put_port_mixer),
  19397. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19398. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19399. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19400. msm_routing_get_port_mixer,
  19401. msm_routing_put_port_mixer),
  19402. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19403. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19404. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19405. msm_routing_get_port_mixer,
  19406. msm_routing_put_port_mixer),
  19407. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19408. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19409. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19410. msm_routing_get_port_mixer,
  19411. msm_routing_put_port_mixer),
  19412. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19413. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19414. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19415. msm_routing_get_port_mixer,
  19416. msm_routing_put_port_mixer),
  19417. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19418. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19419. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19420. msm_routing_get_port_mixer,
  19421. msm_routing_put_port_mixer),
  19422. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19423. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19424. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19425. msm_routing_get_port_mixer,
  19426. msm_routing_put_port_mixer),
  19427. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19428. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19429. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19430. msm_routing_get_port_mixer,
  19431. msm_routing_put_port_mixer),
  19432. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19433. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19434. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19435. msm_routing_get_port_mixer,
  19436. msm_routing_put_port_mixer),
  19437. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19438. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19439. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19440. msm_routing_get_port_mixer,
  19441. msm_routing_put_port_mixer),
  19442. };
  19443. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19444. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19446. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19451. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19455. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19456. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19457. msm_routing_get_port_mixer,
  19458. msm_routing_put_port_mixer),
  19459. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19460. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19461. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19462. msm_routing_get_port_mixer,
  19463. msm_routing_put_port_mixer),
  19464. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19465. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19466. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19467. msm_routing_get_port_mixer,
  19468. msm_routing_put_port_mixer),
  19469. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19470. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19471. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19472. msm_routing_get_port_mixer,
  19473. msm_routing_put_port_mixer),
  19474. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19475. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19476. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19477. msm_routing_get_port_mixer,
  19478. msm_routing_put_port_mixer),
  19479. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19480. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19481. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19482. msm_routing_get_port_mixer,
  19483. msm_routing_put_port_mixer),
  19484. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19485. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19486. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19487. msm_routing_get_port_mixer,
  19488. msm_routing_put_port_mixer),
  19489. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19490. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19491. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19492. msm_routing_get_port_mixer,
  19493. msm_routing_put_port_mixer),
  19494. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19495. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19496. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19497. msm_routing_get_port_mixer,
  19498. msm_routing_put_port_mixer),
  19499. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19500. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19501. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19502. msm_routing_get_port_mixer,
  19503. msm_routing_put_port_mixer),
  19504. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19505. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19506. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19507. msm_routing_get_port_mixer,
  19508. msm_routing_put_port_mixer),
  19509. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19510. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19511. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19512. msm_routing_get_port_mixer,
  19513. msm_routing_put_port_mixer),
  19514. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19515. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19516. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19517. msm_routing_get_port_mixer,
  19518. msm_routing_put_port_mixer),
  19519. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19520. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19521. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19522. msm_routing_get_port_mixer,
  19523. msm_routing_put_port_mixer),
  19524. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19525. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19526. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19527. msm_routing_get_port_mixer,
  19528. msm_routing_put_port_mixer),
  19529. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19530. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19531. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19532. msm_routing_get_port_mixer,
  19533. msm_routing_put_port_mixer),
  19534. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19535. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19536. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19537. msm_routing_get_port_mixer,
  19538. msm_routing_put_port_mixer),
  19539. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19540. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19541. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19542. msm_routing_get_port_mixer,
  19543. msm_routing_put_port_mixer),
  19544. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19545. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19546. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19547. msm_routing_get_port_mixer,
  19548. msm_routing_put_port_mixer),
  19549. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19550. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19551. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19552. msm_routing_get_port_mixer,
  19553. msm_routing_put_port_mixer),
  19554. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19555. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19556. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19557. msm_routing_get_port_mixer,
  19558. msm_routing_put_port_mixer),
  19559. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19560. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19561. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19562. msm_routing_get_port_mixer,
  19563. msm_routing_put_port_mixer),
  19564. };
  19565. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  19566. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19567. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19568. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19569. msm_routing_get_port_mixer,
  19570. msm_routing_put_port_mixer),
  19571. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19573. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19574. msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19577. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19578. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19579. msm_routing_get_port_mixer,
  19580. msm_routing_put_port_mixer),
  19581. };
  19582. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19583. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19584. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19585. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19586. msm_routing_put_port_mixer),
  19587. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19588. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19589. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19590. msm_routing_put_port_mixer),
  19591. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19592. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19593. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19594. msm_routing_put_port_mixer),
  19595. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19597. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19598. msm_routing_put_port_mixer),
  19599. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19600. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19601. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19602. msm_routing_put_port_mixer),
  19603. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19604. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19605. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19606. msm_routing_put_port_mixer),
  19607. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19608. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19609. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19610. msm_routing_put_port_mixer),
  19611. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19612. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19613. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19614. msm_routing_put_port_mixer),
  19615. };
  19616. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  19617. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19618. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19619. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19620. msm_routing_put_port_mixer),
  19621. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19622. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19623. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19624. msm_routing_put_port_mixer),
  19625. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19626. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19627. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19630. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19631. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19632. msm_routing_put_port_mixer),
  19633. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19634. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19635. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19636. msm_routing_put_port_mixer),
  19637. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19638. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19639. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19640. msm_routing_put_port_mixer),
  19641. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19642. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19643. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19644. msm_routing_put_port_mixer),
  19645. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19646. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19647. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  19648. msm_routing_put_port_mixer),
  19649. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19650. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19651. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19652. msm_routing_put_port_mixer),
  19653. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19654. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19655. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  19656. msm_routing_put_port_mixer),
  19657. };
  19658. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  19659. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19660. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19661. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19662. msm_routing_put_listen_mixer),
  19663. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19664. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19665. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19666. msm_routing_put_listen_mixer),
  19667. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19668. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19669. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19670. msm_routing_put_listen_mixer),
  19671. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19672. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19673. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19674. msm_routing_put_listen_mixer),
  19675. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19676. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19677. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19678. msm_routing_put_listen_mixer),
  19679. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19680. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19681. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19682. msm_routing_put_listen_mixer),
  19683. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19684. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19685. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19686. msm_routing_put_listen_mixer),
  19687. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19688. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19689. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19690. msm_routing_put_listen_mixer),
  19691. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19692. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19693. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19694. msm_routing_put_listen_mixer),
  19695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19697. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19698. msm_routing_put_listen_mixer),
  19699. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19700. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19701. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19702. msm_routing_put_listen_mixer),
  19703. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19704. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19705. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19706. msm_routing_put_listen_mixer),
  19707. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19708. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19709. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19710. msm_routing_put_listen_mixer),
  19711. };
  19712. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  19713. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19714. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19715. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19716. msm_routing_put_listen_mixer),
  19717. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  19718. SND_SOC_NOPM,
  19719. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19720. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19721. msm_routing_put_listen_mixer),
  19722. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19724. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19725. msm_routing_put_listen_mixer),
  19726. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19728. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19729. msm_routing_put_listen_mixer),
  19730. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19731. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19732. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19733. msm_routing_put_listen_mixer),
  19734. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19735. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19736. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19737. msm_routing_put_listen_mixer),
  19738. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19739. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19740. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19741. msm_routing_put_listen_mixer),
  19742. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19743. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19744. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19745. msm_routing_put_listen_mixer),
  19746. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19748. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19749. msm_routing_put_listen_mixer),
  19750. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19751. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19752. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19753. msm_routing_put_listen_mixer),
  19754. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19755. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19756. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19757. msm_routing_put_listen_mixer),
  19758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19760. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19761. msm_routing_put_listen_mixer),
  19762. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19764. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19765. msm_routing_put_listen_mixer),
  19766. };
  19767. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  19768. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19769. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19770. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19771. msm_routing_put_listen_mixer),
  19772. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19773. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19774. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19775. msm_routing_put_listen_mixer),
  19776. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19777. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19778. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19779. msm_routing_put_listen_mixer),
  19780. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19781. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19782. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19783. msm_routing_put_listen_mixer),
  19784. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19785. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19786. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19787. msm_routing_put_listen_mixer),
  19788. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19789. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19790. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19791. msm_routing_put_listen_mixer),
  19792. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19793. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19794. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19795. msm_routing_put_listen_mixer),
  19796. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19797. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19798. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19799. msm_routing_put_listen_mixer),
  19800. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19801. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19802. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19803. msm_routing_put_listen_mixer),
  19804. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19805. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19806. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19807. msm_routing_put_listen_mixer),
  19808. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19809. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19810. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19811. msm_routing_put_listen_mixer),
  19812. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19813. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19814. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19815. msm_routing_put_listen_mixer),
  19816. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19817. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19818. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19819. msm_routing_put_listen_mixer),
  19820. };
  19821. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  19822. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19823. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19824. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19825. msm_routing_put_listen_mixer),
  19826. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19827. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19828. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19829. msm_routing_put_listen_mixer),
  19830. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19831. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19832. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19833. msm_routing_put_listen_mixer),
  19834. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19835. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19836. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19837. msm_routing_put_listen_mixer),
  19838. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19839. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19840. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19841. msm_routing_put_listen_mixer),
  19842. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19843. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19844. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19845. msm_routing_put_listen_mixer),
  19846. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19847. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19848. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19849. msm_routing_put_listen_mixer),
  19850. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19851. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19852. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19853. msm_routing_put_listen_mixer),
  19854. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19855. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19856. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19857. msm_routing_put_listen_mixer),
  19858. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19859. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19860. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19861. msm_routing_put_listen_mixer),
  19862. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19863. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19864. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19865. msm_routing_put_listen_mixer),
  19866. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19867. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19868. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19869. msm_routing_put_listen_mixer),
  19870. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19871. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19872. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19873. msm_routing_put_listen_mixer),
  19874. };
  19875. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  19876. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19877. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19878. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19879. msm_routing_put_listen_mixer),
  19880. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19881. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19882. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19883. msm_routing_put_listen_mixer),
  19884. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19885. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19886. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19887. msm_routing_put_listen_mixer),
  19888. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19889. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19890. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19891. msm_routing_put_listen_mixer),
  19892. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19893. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19894. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19895. msm_routing_put_listen_mixer),
  19896. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19897. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19898. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19899. msm_routing_put_listen_mixer),
  19900. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19901. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19902. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19903. msm_routing_put_listen_mixer),
  19904. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19905. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19906. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19907. msm_routing_put_listen_mixer),
  19908. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19909. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19910. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19911. msm_routing_put_listen_mixer),
  19912. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19914. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19915. msm_routing_put_listen_mixer),
  19916. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19917. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19918. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19919. msm_routing_put_listen_mixer),
  19920. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19921. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19922. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19923. msm_routing_put_listen_mixer),
  19924. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19925. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19926. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19927. msm_routing_put_listen_mixer),
  19928. };
  19929. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  19930. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19931. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19932. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19933. msm_routing_put_listen_mixer),
  19934. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19935. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19936. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19937. msm_routing_put_listen_mixer),
  19938. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19939. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19940. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19941. msm_routing_put_listen_mixer),
  19942. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19943. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19944. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19945. msm_routing_put_listen_mixer),
  19946. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19947. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19948. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19949. msm_routing_put_listen_mixer),
  19950. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19951. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19952. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19953. msm_routing_put_listen_mixer),
  19954. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19955. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19956. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19957. msm_routing_put_listen_mixer),
  19958. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19959. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19960. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19961. msm_routing_put_listen_mixer),
  19962. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19963. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19964. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19965. msm_routing_put_listen_mixer),
  19966. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19967. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19968. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19969. msm_routing_put_listen_mixer),
  19970. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19971. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19972. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19973. msm_routing_put_listen_mixer),
  19974. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19975. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19976. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19977. msm_routing_put_listen_mixer),
  19978. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19979. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19980. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19981. msm_routing_put_listen_mixer),
  19982. };
  19983. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  19984. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19985. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19986. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19987. msm_routing_put_listen_mixer),
  19988. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19989. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19990. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19991. msm_routing_put_listen_mixer),
  19992. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19993. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19994. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19995. msm_routing_put_listen_mixer),
  19996. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19997. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19998. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19999. msm_routing_put_listen_mixer),
  20000. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20001. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20002. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20003. msm_routing_put_listen_mixer),
  20004. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20005. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20006. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20007. msm_routing_put_listen_mixer),
  20008. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20009. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20010. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20011. msm_routing_put_listen_mixer),
  20012. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20013. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20014. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20015. msm_routing_put_listen_mixer),
  20016. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20017. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20018. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20019. msm_routing_put_listen_mixer),
  20020. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20021. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20022. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20023. msm_routing_put_listen_mixer),
  20024. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20025. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20026. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20027. msm_routing_put_listen_mixer),
  20028. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20029. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20030. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20031. msm_routing_put_listen_mixer),
  20032. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20033. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20034. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20035. msm_routing_put_listen_mixer),
  20036. };
  20037. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20038. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20039. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20040. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20041. msm_routing_put_listen_mixer),
  20042. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20043. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20044. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20045. msm_routing_put_listen_mixer),
  20046. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20047. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20048. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20049. msm_routing_put_listen_mixer),
  20050. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20051. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20052. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20053. msm_routing_put_listen_mixer),
  20054. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20055. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20056. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20057. msm_routing_put_listen_mixer),
  20058. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20059. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20060. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20061. msm_routing_put_listen_mixer),
  20062. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20063. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20064. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20065. msm_routing_put_listen_mixer),
  20066. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20067. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20068. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20069. msm_routing_put_listen_mixer),
  20070. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20071. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20072. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20073. msm_routing_put_listen_mixer),
  20074. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20075. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20076. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20077. msm_routing_put_listen_mixer),
  20078. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20079. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20080. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20081. msm_routing_put_listen_mixer),
  20082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20084. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20085. msm_routing_put_listen_mixer),
  20086. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20087. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20088. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20089. msm_routing_put_listen_mixer),
  20090. };
  20091. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20092. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20093. 0, 1, 0, msm_routing_get_switch_mixer,
  20094. msm_routing_put_switch_mixer);
  20095. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20096. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20097. 0, 1, 0, msm_routing_get_switch_mixer,
  20098. msm_routing_put_switch_mixer);
  20099. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20100. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20101. 0, 1, 0, msm_routing_get_switch_mixer,
  20102. msm_routing_put_switch_mixer);
  20103. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20104. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20105. 0, 1, 0, msm_routing_get_switch_mixer,
  20106. msm_routing_put_switch_mixer);
  20107. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20108. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20109. 0, 1, 0, msm_routing_get_switch_mixer,
  20110. msm_routing_put_switch_mixer);
  20111. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20112. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20113. 0, 1, 0, msm_routing_get_switch_mixer,
  20114. msm_routing_put_switch_mixer);
  20115. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20116. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20117. 0, 1, 0, msm_routing_get_switch_mixer,
  20118. msm_routing_put_switch_mixer);
  20119. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20120. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20121. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20122. msm_routing_put_fm_pcmrx_switch_mixer);
  20123. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20124. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20125. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20126. msm_routing_put_int0_mi2s_switch_mixer);
  20127. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20128. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20129. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20130. msm_routing_put_int4_mi2s_switch_mixer);
  20131. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20132. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20133. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20134. msm_routing_put_pri_mi2s_switch_mixer);
  20135. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20136. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20137. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20138. msm_routing_put_sec_mi2s_switch_mixer);
  20139. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20140. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20141. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20142. msm_routing_put_tert_mi2s_switch_mixer);
  20143. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20144. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20145. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20146. msm_routing_put_quat_mi2s_switch_mixer);
  20147. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20148. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20149. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20150. msm_routing_put_quin_mi2s_switch_mixer);
  20151. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20152. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20153. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20154. msm_routing_put_sen_mi2s_switch_mixer);
  20155. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20156. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20157. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20158. msm_routing_put_hfp_switch_mixer);
  20159. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20160. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20161. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20162. msm_routing_put_hfp_switch_mixer);
  20163. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20164. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20165. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20166. msm_routing_put_hfp_switch_mixer);
  20167. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20168. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20169. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20170. msm_routing_put_hfp_switch_mixer);
  20171. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20172. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20173. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20174. msm_routing_put_usb_switch_mixer);
  20175. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20176. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20177. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20178. msm_routing_a2dp_switch_mixer_put);
  20179. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20180. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20181. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20182. msm_routing_sco_switch_mixer_put);
  20183. static const struct soc_enum lsm_port_enum =
  20184. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20185. static const char * const lsm_func_text[] = {
  20186. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20187. };
  20188. static const struct soc_enum lsm_func_enum =
  20189. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20190. static const struct snd_kcontrol_new lsm_controls[] = {
  20191. /* kcontrol of lsm_function */
  20192. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20193. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20194. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20195. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20196. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20197. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20198. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20199. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20200. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20201. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20202. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20203. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20204. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20205. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20206. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20207. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20208. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20209. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20210. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20211. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20212. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20213. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20214. /* kcontrol of lsm_port */
  20215. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20216. msm_routing_lsm_port_get,
  20217. msm_routing_lsm_port_put),
  20218. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20219. msm_routing_lsm_port_get,
  20220. msm_routing_lsm_port_put),
  20221. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20222. msm_routing_lsm_port_get,
  20223. msm_routing_lsm_port_put),
  20224. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20225. msm_routing_lsm_port_get,
  20226. msm_routing_lsm_port_put),
  20227. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20228. msm_routing_lsm_port_get,
  20229. msm_routing_lsm_port_put),
  20230. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20231. msm_routing_lsm_port_get,
  20232. msm_routing_lsm_port_put),
  20233. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20234. msm_routing_lsm_port_get,
  20235. msm_routing_lsm_port_put),
  20236. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20237. msm_routing_lsm_port_get,
  20238. msm_routing_lsm_port_put),
  20239. };
  20240. static const char * const aanc_slim_0_rx_text[] = {
  20241. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20242. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20243. };
  20244. static const struct soc_enum aanc_slim_0_rx_enum =
  20245. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20246. aanc_slim_0_rx_text);
  20247. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20248. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20249. msm_routing_slim_0_rx_aanc_mux_get,
  20250. msm_routing_slim_0_rx_aanc_mux_put)
  20251. };
  20252. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20253. struct snd_ctl_elem_value *ucontrol)
  20254. {
  20255. ucontrol->value.integer.value[0] = aanc_level;
  20256. return 0;
  20257. }
  20258. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20259. struct snd_ctl_elem_value *ucontrol)
  20260. {
  20261. int ret = 0;
  20262. mutex_lock(&routing_lock);
  20263. aanc_level = ucontrol->value.integer.value[0];
  20264. pr_debug("%s: value: %ld\n",
  20265. __func__, ucontrol->value.integer.value[0]);
  20266. ret = afe_set_aanc_noise_level(aanc_level);
  20267. mutex_unlock(&routing_lock);
  20268. return ret;
  20269. }
  20270. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20271. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20272. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20273. };
  20274. static int msm_routing_get_stereo_to_custom_stereo_control(
  20275. struct snd_kcontrol *kcontrol,
  20276. struct snd_ctl_elem_value *ucontrol)
  20277. {
  20278. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20279. return 0;
  20280. }
  20281. static int msm_routing_put_stereo_to_custom_stereo_control(
  20282. struct snd_kcontrol *kcontrol,
  20283. struct snd_ctl_elem_value *ucontrol)
  20284. {
  20285. int flag = 0, i = 0, rc = 0, idx = 0;
  20286. int be_index = 0, port_id, topo_id;
  20287. unsigned int session_id = 0;
  20288. uint16_t op_FL_ip_FL_weight = 0;
  20289. uint16_t op_FL_ip_FR_weight = 0;
  20290. uint16_t op_FR_ip_FL_weight = 0;
  20291. uint16_t op_FR_ip_FR_weight = 0;
  20292. flag = ucontrol->value.integer.value[0];
  20293. pr_debug("%s E flag %d\n", __func__, flag);
  20294. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20295. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20296. __func__, is_custom_stereo_on, flag);
  20297. return 0;
  20298. }
  20299. is_custom_stereo_on = flag ? true : false;
  20300. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20301. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20302. port_id = msm_bedais[be_index].port_id;
  20303. if (!msm_bedais[be_index].active)
  20304. continue;
  20305. if ((port_id != SLIMBUS_0_RX) &&
  20306. (port_id != RT_PROXY_PORT_001_RX) &&
  20307. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20308. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20309. continue;
  20310. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20311. MSM_FRONTEND_DAI_MM_SIZE) {
  20312. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20313. LEGACY_PCM_MODE)
  20314. goto skip_send_custom_stereo;
  20315. session_id =
  20316. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20317. if (is_custom_stereo_on) {
  20318. op_FL_ip_FL_weight =
  20319. Q14_GAIN_ZERO_POINT_FIVE;
  20320. op_FL_ip_FR_weight =
  20321. Q14_GAIN_ZERO_POINT_FIVE;
  20322. op_FR_ip_FL_weight =
  20323. Q14_GAIN_ZERO_POINT_FIVE;
  20324. op_FR_ip_FR_weight =
  20325. Q14_GAIN_ZERO_POINT_FIVE;
  20326. } else {
  20327. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20328. op_FL_ip_FR_weight = 0;
  20329. op_FR_ip_FL_weight = 0;
  20330. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20331. }
  20332. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20333. unsigned long copp =
  20334. session_copp_map[i]
  20335. [SESSION_TYPE_RX][be_index];
  20336. if (!test_bit(idx, &copp))
  20337. goto skip_send_custom_stereo;
  20338. topo_id = adm_get_topology_for_port_copp_idx(
  20339. msm_bedais[be_index].port_id, idx);
  20340. if (topo_id < 0)
  20341. pr_debug("%s:Err:custom stereo topo %d",
  20342. __func__, topo_id);
  20343. pr_debug("idx %d\n", idx);
  20344. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20345. rc = msm_ds2_dap_set_custom_stereo_onoff
  20346. (msm_bedais[be_index].port_id,
  20347. idx, is_custom_stereo_on);
  20348. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20349. rc = dolby_dap_set_custom_stereo_onoff(
  20350. msm_bedais[be_index].port_id,
  20351. idx, is_custom_stereo_on);
  20352. else
  20353. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20354. (msm_bedais[be_index].port_id,
  20355. idx, session_id,
  20356. op_FL_ip_FL_weight,
  20357. op_FL_ip_FR_weight,
  20358. op_FR_ip_FL_weight,
  20359. op_FR_ip_FR_weight);
  20360. if (rc < 0)
  20361. skip_send_custom_stereo:
  20362. pr_err("%s: err setting custom stereo\n",
  20363. __func__);
  20364. }
  20365. }
  20366. }
  20367. return 0;
  20368. }
  20369. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20370. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20371. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20372. msm_routing_put_stereo_to_custom_stereo_control),
  20373. };
  20374. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20375. struct snd_ctl_elem_value *ucontrol)
  20376. {
  20377. return 0;
  20378. }
  20379. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20380. struct snd_ctl_elem_value *ucontrol)
  20381. {
  20382. int i = 0, j;
  20383. int num_app_types = ucontrol->value.integer.value[i++];
  20384. pr_debug("%s\n", __func__);
  20385. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20386. sizeof(struct msm_pcm_routing_app_type_data));
  20387. if (num_app_types > MAX_APP_TYPES) {
  20388. pr_err("%s: number of app types exceed the max supported\n",
  20389. __func__);
  20390. return -EINVAL;
  20391. }
  20392. for (j = 0; j < num_app_types; j++) {
  20393. app_type_cfg[j].app_type =
  20394. ucontrol->value.integer.value[i++];
  20395. app_type_cfg[j].sample_rate =
  20396. ucontrol->value.integer.value[i++];
  20397. app_type_cfg[j].bit_width =
  20398. ucontrol->value.integer.value[i++];
  20399. }
  20400. return 0;
  20401. }
  20402. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20403. struct snd_ctl_elem_value *ucontrol)
  20404. {
  20405. int j, fe_id, be_id, port_type;
  20406. int ret = 0;
  20407. unsigned long copp;
  20408. struct msm_pcm_routing_bdai_data *bedai;
  20409. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20410. SESSION_TYPE_RX;
  20411. int app_type = ucontrol->value.integer.value[1];
  20412. int gain = (ucontrol->value.integer.value[2] +
  20413. ucontrol->value.integer.value[3])/2;
  20414. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20415. MSM_AFE_PORT_TYPE_TX;
  20416. mutex_lock(&routing_lock);
  20417. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20418. if (is_be_dai_extproc(be_id))
  20419. continue;
  20420. bedai = &msm_bedais[be_id];
  20421. if (afe_get_port_type(bedai->port_id) != port_type)
  20422. continue;
  20423. if (!bedai->active)
  20424. continue;
  20425. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20426. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20427. continue;
  20428. if (app_type !=
  20429. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20430. continue;
  20431. copp = session_copp_map[fe_id][dir][be_id];
  20432. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20433. if (!test_bit(j, &copp))
  20434. continue;
  20435. ret |= adm_set_volume(bedai->port_id, j, gain);
  20436. }
  20437. }
  20438. }
  20439. mutex_unlock(&routing_lock);
  20440. return ret ? -EINVAL : 0;
  20441. }
  20442. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20443. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20444. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20445. msm_routing_put_app_type_cfg_control),
  20446. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20447. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20448. };
  20449. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20450. struct snd_ctl_elem_value *ucontrol)
  20451. {
  20452. int copp_idx, fe_id, be_id, port_type;
  20453. int ret = 0;
  20454. unsigned long copp;
  20455. struct msm_pcm_routing_bdai_data *bedai;
  20456. u8 *packed_params = NULL;
  20457. struct param_hdr_v3 param_hdr;
  20458. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20459. sizeof(uint32_t));
  20460. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20461. SESSION_TYPE_RX;
  20462. int app_type = ucontrol->value.integer.value[1];
  20463. int module_id = ucontrol->value.integer.value[2];
  20464. int instance_id = ucontrol->value.integer.value[3];
  20465. int param_id = ucontrol->value.integer.value[4];
  20466. int param_value = ucontrol->value.integer.value[5];
  20467. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20468. MSM_AFE_PORT_TYPE_TX;
  20469. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20470. __func__, app_type, module_id,
  20471. instance_id, param_id, param_value);
  20472. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20473. if (!packed_params)
  20474. return -ENOMEM;
  20475. memset(&param_hdr, 0, sizeof(param_hdr));
  20476. param_hdr.module_id = module_id;
  20477. param_hdr.instance_id = instance_id;
  20478. param_hdr.param_id = param_id;
  20479. param_hdr.param_size = sizeof(uint32_t);
  20480. packed_param_size = 0;
  20481. mutex_lock(&routing_lock);
  20482. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20483. if (is_be_dai_extproc(be_id))
  20484. continue;
  20485. bedai = &msm_bedais[be_id];
  20486. if (afe_get_port_type(bedai->port_id) != port_type)
  20487. continue;
  20488. if (!bedai->active)
  20489. continue;
  20490. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20491. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20492. continue;
  20493. if (app_type !=
  20494. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20495. continue;
  20496. copp = session_copp_map[fe_id][dir][be_id];
  20497. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20498. copp_idx++) {
  20499. if (!test_bit(copp_idx, &copp))
  20500. continue;
  20501. ret = q6common_pack_pp_params(packed_params,
  20502. &param_hdr,
  20503. (u8 *) &param_value,
  20504. &packed_param_size);
  20505. if (ret) {
  20506. pr_err("%s: Failed to pack params, error %d\n",
  20507. __func__, ret);
  20508. goto done;
  20509. }
  20510. ret = adm_set_pp_params(bedai->port_id,
  20511. copp_idx, NULL,
  20512. packed_params,
  20513. packed_param_size);
  20514. if (ret) {
  20515. pr_err("%s: Setting param failed with err=%d\n",
  20516. __func__, ret);
  20517. ret = -EINVAL;
  20518. goto done;
  20519. }
  20520. }
  20521. }
  20522. }
  20523. done:
  20524. mutex_unlock(&routing_lock);
  20525. kfree(packed_params);
  20526. return ret;
  20527. }
  20528. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20529. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20530. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20531. };
  20532. static int msm_routing_get_lsm_app_type_cfg_control(
  20533. struct snd_kcontrol *kcontrol,
  20534. struct snd_ctl_elem_value *ucontrol)
  20535. {
  20536. int shift = ((struct soc_multi_mixer_control *)
  20537. kcontrol->private_value)->shift;
  20538. int i = 0, j = 0;
  20539. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20540. for (j = 0; j < num_app_cfg_types; ++j) {
  20541. ucontrol->value.integer.value[++i] =
  20542. lsm_app_type_cfg[j].app_type;
  20543. ucontrol->value.integer.value[++i] =
  20544. lsm_app_type_cfg[j].sample_rate;
  20545. ucontrol->value.integer.value[++i] =
  20546. lsm_app_type_cfg[j].bit_width;
  20547. if (shift == 1)
  20548. ucontrol->value.integer.value[++i] =
  20549. lsm_app_type_cfg[j].num_out_channels;
  20550. }
  20551. return 0;
  20552. }
  20553. static int msm_routing_put_lsm_app_type_cfg_control(
  20554. struct snd_kcontrol *kcontrol,
  20555. struct snd_ctl_elem_value *ucontrol)
  20556. {
  20557. int shift = ((struct soc_multi_mixer_control *)
  20558. kcontrol->private_value)->shift;
  20559. int i = 0, j;
  20560. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20561. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20562. sizeof(struct msm_pcm_routing_app_type_data));
  20563. if (num_app_cfg_types > MAX_APP_TYPES) {
  20564. pr_err("%s: number of app types exceed the max supported\n",
  20565. __func__);
  20566. return -EINVAL;
  20567. }
  20568. for (j = 0; j < num_app_cfg_types; j++) {
  20569. lsm_app_type_cfg[j].app_type =
  20570. ucontrol->value.integer.value[i++];
  20571. lsm_app_type_cfg[j].sample_rate =
  20572. ucontrol->value.integer.value[i++];
  20573. lsm_app_type_cfg[j].bit_width =
  20574. ucontrol->value.integer.value[i++];
  20575. /* Shift of 1 indicates this is V2 mixer control */
  20576. if (shift == 1)
  20577. lsm_app_type_cfg[j].num_out_channels =
  20578. ucontrol->value.integer.value[i++];
  20579. }
  20580. return 0;
  20581. }
  20582. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20583. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20584. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20585. msm_routing_put_lsm_app_type_cfg_control),
  20586. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20587. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20588. msm_routing_put_lsm_app_type_cfg_control),
  20589. };
  20590. static int msm_routing_get_use_ds1_or_ds2_control(
  20591. struct snd_kcontrol *kcontrol,
  20592. struct snd_ctl_elem_value *ucontrol)
  20593. {
  20594. ucontrol->value.integer.value[0] = is_ds2_on;
  20595. return 0;
  20596. }
  20597. static int msm_routing_put_use_ds1_or_ds2_control(
  20598. struct snd_kcontrol *kcontrol,
  20599. struct snd_ctl_elem_value *ucontrol)
  20600. {
  20601. is_ds2_on = ucontrol->value.integer.value[0];
  20602. return 0;
  20603. }
  20604. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  20605. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  20606. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  20607. msm_routing_put_use_ds1_or_ds2_control),
  20608. };
  20609. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  20610. struct snd_ctl_elem_value *ucontrol) {
  20611. int rc = 0;
  20612. int be_idx = 0;
  20613. char *param_value;
  20614. int *update_param_value;
  20615. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  20616. struct param_hdr_v3 param_hdr;
  20617. param_value = kzalloc(param_size, GFP_KERNEL);
  20618. if (!param_value)
  20619. return -ENOMEM;
  20620. memset(&param_hdr, 0, sizeof(param_hdr));
  20621. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  20622. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  20623. break;
  20624. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  20625. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  20626. param_hdr.instance_id = INSTANCE_ID_0;
  20627. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  20628. param_hdr.param_size = param_size;
  20629. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  20630. NULL, &param_hdr, (u8 *) param_value);
  20631. if (rc) {
  20632. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  20633. kfree(param_value);
  20634. return -EINVAL;
  20635. }
  20636. update_param_value = (int *)param_value;
  20637. ucontrol->value.integer.value[0] = update_param_value[0];
  20638. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  20639. __func__, update_param_value[0]);
  20640. }
  20641. kfree(param_value);
  20642. return 0;
  20643. }
  20644. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  20645. struct snd_ctl_elem_value *ucontrol)
  20646. {
  20647. voc_session_id = ucontrol->value.integer.value[0];
  20648. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  20649. return 0;
  20650. }
  20651. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  20652. struct snd_ctl_elem_value *ucontrol)
  20653. {
  20654. ucontrol->value.integer.value[0] = voc_session_id;
  20655. return 0;
  20656. }
  20657. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  20658. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  20659. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  20660. msm_voc_session_id_put),
  20661. };
  20662. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  20663. struct snd_ctl_elem_info *uinfo)
  20664. {
  20665. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20666. uinfo->count = sizeof(struct sound_focus_param);
  20667. return 0;
  20668. }
  20669. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  20670. struct snd_ctl_elem_value *ucontrol)
  20671. {
  20672. int ret = 0;
  20673. struct sound_focus_param soundFocusData;
  20674. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  20675. sizeof(struct sound_focus_param));
  20676. ret = voc_set_sound_focus(soundFocusData);
  20677. if (ret) {
  20678. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  20679. __func__, ret);
  20680. ret = -EINVAL;
  20681. }
  20682. return ret;
  20683. }
  20684. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  20685. struct snd_ctl_elem_value *ucontrol)
  20686. {
  20687. int ret = 0;
  20688. struct sound_focus_param soundFocusData;
  20689. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  20690. ret = voc_get_sound_focus(&soundFocusData);
  20691. if (ret) {
  20692. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  20693. __func__, ret);
  20694. ret = -EINVAL;
  20695. goto done;
  20696. }
  20697. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  20698. sizeof(struct sound_focus_param));
  20699. done:
  20700. return ret;
  20701. }
  20702. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  20703. struct snd_ctl_elem_info *uinfo)
  20704. {
  20705. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20706. uinfo->count = sizeof(struct source_tracking_param);
  20707. return 0;
  20708. }
  20709. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  20710. struct snd_ctl_elem_value *ucontrol)
  20711. {
  20712. int ret = 0;
  20713. struct source_tracking_param sourceTrackingData;
  20714. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  20715. ret = voc_get_source_tracking(&sourceTrackingData);
  20716. if (ret) {
  20717. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  20718. __func__, ret);
  20719. ret = -EINVAL;
  20720. goto done;
  20721. }
  20722. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  20723. sizeof(struct source_tracking_param));
  20724. done:
  20725. return ret;
  20726. }
  20727. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  20728. int *copp_idx)
  20729. {
  20730. int i, idx, be_idx;
  20731. int ret = 0;
  20732. unsigned long copp;
  20733. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  20734. ret = q6audio_validate_port(port_id);
  20735. if (ret < 0) {
  20736. pr_err("%s: port validation failed id 0x%x ret %d\n",
  20737. __func__, port_id, ret);
  20738. ret = -EINVAL;
  20739. goto done;
  20740. }
  20741. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  20742. if (msm_bedais[be_idx].port_id == port_id)
  20743. break;
  20744. }
  20745. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  20746. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  20747. ret = -EINVAL;
  20748. goto done;
  20749. }
  20750. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  20751. MSM_FRONTEND_DAI_MAX) {
  20752. if (!(is_mm_lsm_fe_id(i) &&
  20753. route_check_fe_id_adm_support(i)))
  20754. continue;
  20755. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20756. copp = session_copp_map[i]
  20757. [session_type][be_idx];
  20758. if (test_bit(idx, &copp))
  20759. break;
  20760. }
  20761. if (idx >= MAX_COPPS_PER_PORT)
  20762. continue;
  20763. else
  20764. break;
  20765. }
  20766. if (i >= MSM_FRONTEND_DAI_MAX) {
  20767. pr_debug("%s: Invalid FE, exiting\n", __func__);
  20768. ret = -EINVAL;
  20769. goto done;
  20770. }
  20771. *copp_idx = idx;
  20772. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  20773. done:
  20774. return ret;
  20775. }
  20776. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  20777. const char *prefix, int *port_id)
  20778. {
  20779. int ret = 0;
  20780. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  20781. /*
  20782. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  20783. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  20784. * and compare the string with the backend name to derive the port id.
  20785. */
  20786. if (!strcmp(kcontrol->id.name + strlen(prefix),
  20787. "SLIMBUS_0")) {
  20788. *port_id = SLIMBUS_0_TX;
  20789. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20790. "TERT_MI2S")) {
  20791. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  20792. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20793. "INT3_MI2S")) {
  20794. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  20795. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20796. "VA_CDC_DMA_TX_0")) {
  20797. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  20798. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20799. "TX_CDC_DMA_TX_3")) {
  20800. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  20801. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20802. "QUIN_TDM_TX_0")) {
  20803. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  20804. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20805. "PRIMARY_TDM")) {
  20806. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  20807. } else {
  20808. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  20809. __func__, kcontrol->id.name);
  20810. ret = -EINVAL;
  20811. goto done;
  20812. }
  20813. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  20814. __func__, kcontrol->id.name, *port_id);
  20815. done:
  20816. return ret;
  20817. }
  20818. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  20819. struct snd_ctl_elem_value *ucontrol)
  20820. {
  20821. int ret = 0;
  20822. struct sound_focus_param soundFocusData;
  20823. int port_id, copp_idx;
  20824. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20825. "Sound Focus Audio Tx ", &port_id);
  20826. if (ret != 0) {
  20827. pr_err("%s: Error in deriving port id, err=%d\n",
  20828. __func__, ret);
  20829. ret = -EINVAL;
  20830. goto done;
  20831. }
  20832. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20833. &copp_idx);
  20834. if (ret) {
  20835. pr_err("%s: Could not get copp idx for port_id=%d\n",
  20836. __func__, port_id);
  20837. ret = -EINVAL;
  20838. goto done;
  20839. }
  20840. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  20841. sizeof(struct sound_focus_param));
  20842. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  20843. if (ret) {
  20844. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  20845. __func__, ret);
  20846. ret = -EINVAL;
  20847. goto done;
  20848. }
  20849. done:
  20850. return ret;
  20851. }
  20852. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  20853. struct snd_ctl_elem_value *ucontrol)
  20854. {
  20855. int ret = 0;
  20856. struct sound_focus_param soundFocusData;
  20857. int port_id, copp_idx;
  20858. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20859. "Sound Focus Audio Tx ", &port_id);
  20860. if (ret) {
  20861. pr_err("%s: Error in deriving port id, err=%d\n",
  20862. __func__, ret);
  20863. ret = -EINVAL;
  20864. goto done;
  20865. }
  20866. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20867. &copp_idx);
  20868. if (ret) {
  20869. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  20870. __func__, port_id);
  20871. ret = -EINVAL;
  20872. goto done;
  20873. }
  20874. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  20875. if (ret) {
  20876. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  20877. __func__, ret);
  20878. ret = -EINVAL;
  20879. goto done;
  20880. }
  20881. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  20882. sizeof(struct sound_focus_param));
  20883. done:
  20884. return ret;
  20885. }
  20886. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  20887. struct snd_ctl_elem_value *ucontrol)
  20888. {
  20889. int ret = 0;
  20890. struct source_tracking_param sourceTrackingData;
  20891. int port_id, copp_idx;
  20892. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20893. "Source Tracking Audio Tx ", &port_id);
  20894. if (ret) {
  20895. pr_err("%s: Error in deriving port id, err=%d\n",
  20896. __func__, ret);
  20897. ret = -EINVAL;
  20898. goto done;
  20899. }
  20900. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20901. &copp_idx);
  20902. if (ret) {
  20903. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  20904. __func__, port_id);
  20905. ret = -EINVAL;
  20906. goto done;
  20907. }
  20908. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  20909. if (ret) {
  20910. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  20911. __func__, ret);
  20912. ret = -EINVAL;
  20913. goto done;
  20914. }
  20915. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  20916. sizeof(struct source_tracking_param));
  20917. done:
  20918. return ret;
  20919. }
  20920. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  20921. struct snd_ctl_elem_info *uinfo)
  20922. {
  20923. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20924. uinfo->count = sizeof(struct doa_tracking_mon_param);
  20925. return 0;
  20926. }
  20927. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  20928. struct snd_ctl_elem_value *ucontrol)
  20929. {
  20930. int ret = 0;
  20931. struct doa_tracking_mon_param doa_tracking_data;
  20932. int port_id, copp_idx;
  20933. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  20934. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20935. "Doa Tracking Monitor Listen ", &port_id);
  20936. if (ret) {
  20937. pr_err("%s: Error in deriving port id, err=%d\n",
  20938. __func__, ret);
  20939. ret = -EINVAL;
  20940. goto done;
  20941. }
  20942. /*
  20943. * If copp id exists for given port id, query adm to get doa data.
  20944. * Else query afe for doa tracking params.
  20945. * This is to support in cases where LSM directly connects to
  20946. * AFE for FFNS.
  20947. */
  20948. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20949. &copp_idx);
  20950. if (!ret)
  20951. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  20952. &doa_tracking_data);
  20953. else
  20954. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  20955. if (ret) {
  20956. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  20957. __func__, ret);
  20958. ret = -EINVAL;
  20959. goto done;
  20960. }
  20961. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  20962. sizeof(struct doa_tracking_mon_param));
  20963. done:
  20964. return ret;
  20965. }
  20966. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  20967. {
  20968. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20970. .name = "Sound Focus Voice Tx SLIMBUS_0",
  20971. .info = msm_sound_focus_info,
  20972. .get = msm_voice_sound_focus_get,
  20973. .put = msm_voice_sound_focus_put,
  20974. },
  20975. {
  20976. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20977. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20978. .name = "Source Tracking Voice Tx SLIMBUS_0",
  20979. .info = msm_source_tracking_info,
  20980. .get = msm_voice_source_tracking_get,
  20981. },
  20982. {
  20983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20985. .name = "Sound Focus Audio Tx SLIMBUS_0",
  20986. .info = msm_sound_focus_info,
  20987. .get = msm_audio_sound_focus_get,
  20988. .put = msm_audio_sound_focus_put,
  20989. },
  20990. {
  20991. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20993. .name = "Source Tracking Audio Tx SLIMBUS_0",
  20994. .info = msm_source_tracking_info,
  20995. .get = msm_audio_source_tracking_get,
  20996. },
  20997. {
  20998. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21000. .name = "Sound Focus Voice Tx TERT_MI2S",
  21001. .info = msm_sound_focus_info,
  21002. .get = msm_voice_sound_focus_get,
  21003. .put = msm_voice_sound_focus_put,
  21004. },
  21005. {
  21006. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21007. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21008. .name = "Source Tracking Voice Tx TERT_MI2S",
  21009. .info = msm_source_tracking_info,
  21010. .get = msm_voice_source_tracking_get,
  21011. },
  21012. {
  21013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21015. .name = "Sound Focus Audio Tx TERT_MI2S",
  21016. .info = msm_sound_focus_info,
  21017. .get = msm_audio_sound_focus_get,
  21018. .put = msm_audio_sound_focus_put,
  21019. },
  21020. {
  21021. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21023. .name = "Source Tracking Audio Tx TERT_MI2S",
  21024. .info = msm_source_tracking_info,
  21025. .get = msm_audio_source_tracking_get,
  21026. },
  21027. {
  21028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21030. .name = "Sound Focus Voice Tx INT3_MI2S",
  21031. .info = msm_sound_focus_info,
  21032. .get = msm_voice_sound_focus_get,
  21033. .put = msm_voice_sound_focus_put,
  21034. },
  21035. {
  21036. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21038. .name = "Source Tracking Voice Tx INT3_MI2S",
  21039. .info = msm_source_tracking_info,
  21040. .get = msm_voice_source_tracking_get,
  21041. },
  21042. {
  21043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21045. .name = "Sound Focus Audio Tx INT3_MI2S",
  21046. .info = msm_sound_focus_info,
  21047. .get = msm_audio_sound_focus_get,
  21048. .put = msm_audio_sound_focus_put,
  21049. },
  21050. {
  21051. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21053. .name = "Source Tracking Audio Tx INT3_MI2S",
  21054. .info = msm_source_tracking_info,
  21055. .get = msm_audio_source_tracking_get,
  21056. },
  21057. {
  21058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21060. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21061. .info = msm_sound_focus_info,
  21062. .get = msm_voice_sound_focus_get,
  21063. .put = msm_voice_sound_focus_put,
  21064. },
  21065. {
  21066. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21067. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21068. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21069. .info = msm_source_tracking_info,
  21070. .get = msm_voice_source_tracking_get,
  21071. },
  21072. {
  21073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21074. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21075. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21076. .info = msm_sound_focus_info,
  21077. .get = msm_audio_sound_focus_get,
  21078. .put = msm_audio_sound_focus_put,
  21079. },
  21080. {
  21081. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21083. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21084. .info = msm_source_tracking_info,
  21085. .get = msm_audio_source_tracking_get,
  21086. },
  21087. {
  21088. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21090. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21091. .info = msm_sound_focus_info,
  21092. .get = msm_voice_sound_focus_get,
  21093. .put = msm_voice_sound_focus_put,
  21094. },
  21095. {
  21096. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21097. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21098. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21099. .info = msm_source_tracking_info,
  21100. .get = msm_voice_source_tracking_get,
  21101. },
  21102. {
  21103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21104. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21105. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21106. .info = msm_sound_focus_info,
  21107. .get = msm_audio_sound_focus_get,
  21108. .put = msm_audio_sound_focus_put,
  21109. },
  21110. {
  21111. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21113. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21114. .info = msm_source_tracking_info,
  21115. .get = msm_audio_source_tracking_get,
  21116. },
  21117. {
  21118. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21120. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21121. .info = msm_sound_focus_info,
  21122. .get = msm_voice_sound_focus_get,
  21123. .put = msm_voice_sound_focus_put,
  21124. },
  21125. {
  21126. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21127. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21128. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21129. .info = msm_source_tracking_info,
  21130. .get = msm_voice_source_tracking_get,
  21131. },
  21132. {
  21133. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21134. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21135. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21136. .info = msm_sound_focus_info,
  21137. .get = msm_audio_sound_focus_get,
  21138. .put = msm_audio_sound_focus_put,
  21139. },
  21140. {
  21141. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21142. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21143. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21144. .info = msm_source_tracking_info,
  21145. .get = msm_audio_source_tracking_get,
  21146. },
  21147. {
  21148. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21150. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21151. .info = msm_sound_focus_info,
  21152. .get = msm_audio_sound_focus_get,
  21153. .put = msm_audio_sound_focus_put,
  21154. },
  21155. {
  21156. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21157. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21158. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21159. .info = msm_source_tracking_info,
  21160. .get = msm_audio_source_tracking_get,
  21161. },
  21162. {
  21163. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21164. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21165. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21166. .info = msm_doa_tracking_mon_info,
  21167. .get = msm_doa_tracking_mon_get,
  21168. },
  21169. };
  21170. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21171. struct snd_ctl_elem_value *ucontrol)
  21172. {
  21173. int ret = 0;
  21174. int item;
  21175. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21176. pr_debug("%s item is %d\n", __func__,
  21177. ucontrol->value.enumerated.item[0]);
  21178. mutex_lock(&routing_lock);
  21179. item = ucontrol->value.enumerated.item[0];
  21180. if (item < e->items) {
  21181. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21182. __func__, e->shift_l, e->values[item]);
  21183. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21184. e->values[item] < MSM_BACKEND_DAI_MAX)
  21185. /* Enable feedback TX path */
  21186. ret = afe_spk_prot_feed_back_cfg(
  21187. msm_bedais[e->values[item]].port_id,
  21188. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21189. else {
  21190. pr_debug("%s values are out of range item %d\n",
  21191. __func__, e->values[item]);
  21192. /* Disable feedback TX path */
  21193. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21194. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21195. else
  21196. ret = -EINVAL;
  21197. }
  21198. } else {
  21199. pr_err("%s item value is out of range item\n", __func__);
  21200. ret = -EINVAL;
  21201. }
  21202. mutex_unlock(&routing_lock);
  21203. return ret;
  21204. }
  21205. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21206. struct snd_ctl_elem_value *ucontrol)
  21207. {
  21208. int ret = 0;
  21209. int item;
  21210. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21211. pr_debug("%s item is %d\n", __func__,
  21212. ucontrol->value.enumerated.item[0]);
  21213. mutex_lock(&routing_lock);
  21214. item = ucontrol->value.enumerated.item[0];
  21215. if (item < e->items) {
  21216. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21217. __func__, e->shift_l, e->values[item]);
  21218. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21219. e->values[item] < MSM_BACKEND_DAI_MAX)
  21220. /* Enable feedback TX path */
  21221. ret = afe_spk_prot_feed_back_cfg(
  21222. msm_bedais[e->values[item]].port_id,
  21223. msm_bedais[e->shift_l].port_id,
  21224. 1, 1, 1);
  21225. else {
  21226. pr_debug("%s values are out of range item %d\n",
  21227. __func__, e->values[item]);
  21228. /* Disable feedback TX path */
  21229. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21230. ret = afe_spk_prot_feed_back_cfg(0,
  21231. 0, 0, 0, 0);
  21232. else
  21233. ret = -EINVAL;
  21234. }
  21235. } else {
  21236. pr_err("%s item value is out of range item\n", __func__);
  21237. ret = -EINVAL;
  21238. }
  21239. mutex_unlock(&routing_lock);
  21240. return ret;
  21241. }
  21242. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21243. struct snd_ctl_elem_value *ucontrol)
  21244. {
  21245. pr_debug("%s\n", __func__);
  21246. return 0;
  21247. }
  21248. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21249. struct snd_ctl_elem_value *ucontrol)
  21250. {
  21251. pr_debug("%s\n", __func__);
  21252. ucontrol->value.enumerated.item[0] = 0;
  21253. return 0;
  21254. }
  21255. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21256. "ZERO", "SLIM4_TX"
  21257. };
  21258. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21259. "ZERO", "SLIM4_TX"
  21260. };
  21261. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21262. "ZERO", "WSA_CDC_DMA_TX_0"
  21263. };
  21264. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21265. "ZERO", "WSA_CDC_DMA_TX_0"
  21266. };
  21267. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21268. "ZERO", "SENARY_TX"
  21269. };
  21270. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21271. "ZERO", "INT5_MI2S_TX"
  21272. };
  21273. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21274. "ZERO", "INT5_MI2S_TX"
  21275. };
  21276. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21277. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21278. };
  21279. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21280. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21281. };
  21282. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21283. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21284. };
  21285. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21286. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21287. };
  21288. static const int mi2s_rx_vi_fb_tx_value[] = {
  21289. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21290. };
  21291. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21292. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21293. };
  21294. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21295. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21296. };
  21297. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21298. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21299. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21300. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21301. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21302. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21303. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21304. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21305. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21306. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21307. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21308. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21309. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21310. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21311. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21312. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21313. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21314. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21315. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21316. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21317. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21318. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21319. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21320. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21321. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21322. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21323. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21324. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21325. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21326. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21327. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21328. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21329. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21330. spkr_prot_put_vi_lch_port);
  21331. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21332. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21333. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21334. spkr_prot_put_vi_rch_port);
  21335. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21336. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21337. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21338. spkr_prot_put_vi_lch_port);
  21339. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21340. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21341. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21342. spkr_prot_put_vi_rch_port);
  21343. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21344. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21345. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21346. spkr_prot_put_vi_lch_port);
  21347. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21348. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21349. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21350. spkr_prot_put_vi_lch_port);
  21351. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21352. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21353. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21354. spkr_prot_put_vi_rch_port);
  21355. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21356. /* Frontend AIF */
  21357. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21358. * Stream name must contains substring of front-end dai name
  21359. */
  21360. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21361. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21362. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21363. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21364. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21365. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21366. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21367. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21368. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21369. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21370. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21371. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21372. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21373. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21374. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21375. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21376. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21377. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21378. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21379. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21380. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21381. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21382. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21383. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21384. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21385. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  21386. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  21387. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  21388. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  21389. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  21390. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  21391. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  21392. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  21393. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  21394. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  21395. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  21396. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  21397. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  21398. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  21399. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  21400. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  21401. "VoiceMMode1 Playback", 0, 0, 0, 0),
  21402. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  21403. "VoiceMMode1 Capture", 0, 0, 0, 0),
  21404. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  21405. "VoiceMMode2 Playback", 0, 0, 0, 0),
  21406. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  21407. "VoiceMMode2 Capture", 0, 0, 0, 0),
  21408. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  21409. 0, 0, 0, 0),
  21410. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21411. 0, 0, 0, 0),
  21412. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21413. 0, 0, 0, 0),
  21414. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21415. 0, 0, 0, 0),
  21416. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21417. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21418. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21419. 0, 0, 0, 0),
  21420. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21421. 0, 0, 0, 0),
  21422. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21423. 0, 0, 0, 0),
  21424. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21425. 0, 0, 0, 0),
  21426. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21427. 0, 0, 0, 0),
  21428. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21429. 0, 0, 0, 0),
  21430. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21431. 0, 0, 0, 0),
  21432. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21433. 0, 0, 0, 0),
  21434. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21435. 0, 0, 0, 0),
  21436. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21437. 0, 0, 0, 0),
  21438. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21439. 0, 0, 0, 0),
  21440. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21441. 0, 0, 0, 0),
  21442. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21443. 0, 0, 0, 0),
  21444. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21445. 0, 0, 0, 0),
  21446. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21447. 0, 0, 0, 0),
  21448. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21449. 0, 0, 0, 0),
  21450. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21451. 0, 0, 0, 0),
  21452. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21453. 0, 0, 0, 0),
  21454. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21455. 0, 0, 0, 0),
  21456. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21457. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21458. 0, 0, 0, 0),
  21459. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21460. "INT0 MI2S_RX Hostless Playback",
  21461. 0, 0, 0, 0),
  21462. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21463. "INT4 MI2S_RX Hostless Playback",
  21464. 0, 0, 0, 0),
  21465. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21466. "Primary MI2S_RX Hostless Playback",
  21467. 0, 0, 0, 0),
  21468. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21469. "Secondary MI2S_RX Hostless Playback",
  21470. 0, 0, 0, 0),
  21471. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21472. "Tertiary MI2S_RX Hostless Playback",
  21473. 0, 0, 0, 0),
  21474. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21475. "Quaternary MI2S_RX Hostless Playback",
  21476. 0, 0, 0, 0),
  21477. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21478. "Quinary MI2S_RX Hostless Playback",
  21479. 0, 0, 0, 0),
  21480. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21481. "Senary MI2S_RX Hostless Playback",
  21482. 0, 0, 0, 0),
  21483. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21484. 0, 0, 0, 0),
  21485. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21486. 0, 0, 0, 0),
  21487. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21488. 0, 0, 0, 0),
  21489. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21490. 0, 0, 0, 0),
  21491. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21492. 0, 0, 0, 0),
  21493. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21494. "INT3 MI2S_TX Hostless Capture",
  21495. 0, 0, 0, 0),
  21496. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21497. "Tertiary MI2S_TX Hostless Capture",
  21498. 0, 0, 0, 0),
  21499. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21500. "Secondary MI2S_TX Hostless Capture",
  21501. 0, 0, 0, 0),
  21502. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21503. "Primary MI2S_TX Hostless Capture",
  21504. 0, 0, 0, 0),
  21505. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21506. 0, 0, 0, 0),
  21507. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21508. 0, 0, 0, 0),
  21509. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21510. "Quaternary MI2S_TX Hostless Capture",
  21511. 0, 0, 0, 0),
  21512. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21513. "Quinary MI2S_TX Hostless Capture",
  21514. 0, 0, 0, 0),
  21515. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21516. "Senary MI2S_TX Hostless Capture",
  21517. 0, 0, 0, 0),
  21518. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21519. "Primary TDM0 Hostless Playback",
  21520. 0, 0, 0, 0),
  21521. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21522. "Primary TDM0 Hostless Capture",
  21523. 0, 0, 0, 0),
  21524. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21525. "Primary TDM1 Hostless Playback",
  21526. 0, 0, 0, 0),
  21527. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21528. "Primary TDM1 Hostless Capture",
  21529. 0, 0, 0, 0),
  21530. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21531. "Primary TDM2 Hostless Playback",
  21532. 0, 0, 0, 0),
  21533. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21534. "Primary TDM2 Hostless Capture",
  21535. 0, 0, 0, 0),
  21536. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21537. "Primary TDM3 Hostless Playback",
  21538. 0, 0, 0, 0),
  21539. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21540. "Primary TDM3 Hostless Capture",
  21541. 0, 0, 0, 0),
  21542. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21543. "Primary TDM4 Hostless Playback",
  21544. 0, 0, 0, 0),
  21545. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21546. "Primary TDM4 Hostless Capture",
  21547. 0, 0, 0, 0),
  21548. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21549. "Primary TDM5 Hostless Playback",
  21550. 0, 0, 0, 0),
  21551. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21552. "Primary TDM5 Hostless Capture",
  21553. 0, 0, 0, 0),
  21554. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21555. "Primary TDM6 Hostless Playback",
  21556. 0, 0, 0, 0),
  21557. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21558. "Primary TDM6 Hostless Capture",
  21559. 0, 0, 0, 0),
  21560. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21561. "Primary TDM7 Hostless Playback",
  21562. 0, 0, 0, 0),
  21563. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21564. "Primary TDM7 Hostless Capture",
  21565. 0, 0, 0, 0),
  21566. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21567. "Secondary TDM0 Hostless Playback",
  21568. 0, 0, 0, 0),
  21569. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21570. "Secondary TDM0 Hostless Capture",
  21571. 0, 0, 0, 0),
  21572. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21573. "Secondary TDM1 Hostless Playback",
  21574. 0, 0, 0, 0),
  21575. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  21576. "Secondary TDM1 Hostless Capture",
  21577. 0, 0, 0, 0),
  21578. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  21579. "Secondary TDM2 Hostless Playback",
  21580. 0, 0, 0, 0),
  21581. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  21582. "Secondary TDM2 Hostless Capture",
  21583. 0, 0, 0, 0),
  21584. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  21585. "Secondary TDM3 Hostless Playback",
  21586. 0, 0, 0, 0),
  21587. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  21588. "Secondary TDM3 Hostless Capture",
  21589. 0, 0, 0, 0),
  21590. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  21591. "Secondary TDM4 Hostless Playback",
  21592. 0, 0, 0, 0),
  21593. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  21594. "Secondary TDM4 Hostless Capture",
  21595. 0, 0, 0, 0),
  21596. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  21597. "Secondary TDM5 Hostless Playback",
  21598. 0, 0, 0, 0),
  21599. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  21600. "Secondary TDM5 Hostless Capture",
  21601. 0, 0, 0, 0),
  21602. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  21603. "Secondary TDM6 Hostless Playback",
  21604. 0, 0, 0, 0),
  21605. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  21606. "Secondary TDM6 Hostless Capture",
  21607. 0, 0, 0, 0),
  21608. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  21609. "Secondary TDM7 Hostless Playback",
  21610. 0, 0, 0, 0),
  21611. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  21612. "Secondary TDM7 Hostless Capture",
  21613. 0, 0, 0, 0),
  21614. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  21615. "Tertiary TDM0 Hostless Playback",
  21616. 0, 0, 0, 0),
  21617. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  21618. "Tertiary TDM0 Hostless Capture",
  21619. 0, 0, 0, 0),
  21620. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  21621. "Tertiary TDM1 Hostless Playback",
  21622. 0, 0, 0, 0),
  21623. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  21624. "Tertiary TDM1 Hostless Capture",
  21625. 0, 0, 0, 0),
  21626. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  21627. "Tertiary TDM2 Hostless Playback",
  21628. 0, 0, 0, 0),
  21629. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  21630. "Tertiary TDM2 Hostless Capture",
  21631. 0, 0, 0, 0),
  21632. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  21633. "Tertiary TDM3 Hostless Playback",
  21634. 0, 0, 0, 0),
  21635. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  21636. "Tertiary TDM3 Hostless Capture",
  21637. 0, 0, 0, 0),
  21638. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  21639. "Tertiary TDM4 Hostless Playback",
  21640. 0, 0, 0, 0),
  21641. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  21642. "Tertiary TDM4 Hostless Capture",
  21643. 0, 0, 0, 0),
  21644. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  21645. "Tertiary TDM5 Hostless Playback",
  21646. 0, 0, 0, 0),
  21647. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  21648. "Tertiary TDM5 Hostless Capture",
  21649. 0, 0, 0, 0),
  21650. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  21651. "Tertiary TDM6 Hostless Playback",
  21652. 0, 0, 0, 0),
  21653. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  21654. "Tertiary TDM6 Hostless Capture",
  21655. 0, 0, 0, 0),
  21656. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  21657. "Tertiary TDM7 Hostless Playback",
  21658. 0, 0, 0, 0),
  21659. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  21660. "Tertiary TDM7 Hostless Capture",
  21661. 0, 0, 0, 0),
  21662. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  21663. "Quaternary TDM0 Hostless Playback",
  21664. 0, 0, 0, 0),
  21665. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  21666. "Quaternary TDM0 Hostless Capture",
  21667. 0, 0, 0, 0),
  21668. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  21669. "Quaternary TDM1 Hostless Playback",
  21670. 0, 0, 0, 0),
  21671. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  21672. "Quaternary TDM1 Hostless Capture",
  21673. 0, 0, 0, 0),
  21674. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  21675. "Quaternary TDM2 Hostless Playback",
  21676. 0, 0, 0, 0),
  21677. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  21678. "Quaternary TDM2 Hostless Capture",
  21679. 0, 0, 0, 0),
  21680. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  21681. "Quaternary TDM3 Hostless Playback",
  21682. 0, 0, 0, 0),
  21683. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  21684. "Quaternary TDM3 Hostless Capture",
  21685. 0, 0, 0, 0),
  21686. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  21687. "Quaternary TDM4 Hostless Playback",
  21688. 0, 0, 0, 0),
  21689. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  21690. "Quaternary TDM4 Hostless Capture",
  21691. 0, 0, 0, 0),
  21692. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  21693. "Quaternary TDM5 Hostless Playback",
  21694. 0, 0, 0, 0),
  21695. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  21696. "Quaternary TDM5 Hostless Capture",
  21697. 0, 0, 0, 0),
  21698. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  21699. "Quaternary TDM6 Hostless Playback",
  21700. 0, 0, 0, 0),
  21701. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  21702. "Quaternary TDM6 Hostless Capture",
  21703. 0, 0, 0, 0),
  21704. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  21705. "Quaternary TDM7 Hostless Playback",
  21706. 0, 0, 0, 0),
  21707. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  21708. "Quaternary TDM7 Hostless Capture",
  21709. 0, 0, 0, 0),
  21710. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  21711. "Quinary TDM0 Hostless Playback",
  21712. 0, 0, 0, 0),
  21713. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  21714. "Quinary TDM0 Hostless Capture",
  21715. 0, 0, 0, 0),
  21716. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  21717. "Quinary TDM1 Hostless Playback",
  21718. 0, 0, 0, 0),
  21719. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  21720. "Quinary TDM1 Hostless Capture",
  21721. 0, 0, 0, 0),
  21722. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  21723. "Quinary TDM2 Hostless Playback",
  21724. 0, 0, 0, 0),
  21725. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  21726. "Quinary TDM2 Hostless Capture",
  21727. 0, 0, 0, 0),
  21728. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  21729. "Quinary TDM3 Hostless Playback",
  21730. 0, 0, 0, 0),
  21731. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  21732. "Quinary TDM3 Hostless Capture",
  21733. 0, 0, 0, 0),
  21734. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  21735. "Quinary TDM4 Hostless Playback",
  21736. 0, 0, 0, 0),
  21737. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  21738. "Quinary TDM4 Hostless Capture",
  21739. 0, 0, 0, 0),
  21740. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  21741. "Quinary TDM5 Hostless Playback",
  21742. 0, 0, 0, 0),
  21743. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  21744. "Quinary TDM5 Hostless Capture",
  21745. 0, 0, 0, 0),
  21746. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  21747. "Quinary TDM6 Hostless Playback",
  21748. 0, 0, 0, 0),
  21749. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  21750. "Quinary TDM6 Hostless Capture",
  21751. 0, 0, 0, 0),
  21752. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  21753. "Quinary TDM7 Hostless Playback",
  21754. 0, 0, 0, 0),
  21755. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  21756. "Quinary TDM7 Hostless Capture",
  21757. 0, 0, 0, 0),
  21758. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  21759. "Senary TDM0 Hostless Playback",
  21760. 0, 0, 0, 0),
  21761. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  21762. "Senary TDM0 Hostless Capture",
  21763. 0, 0, 0, 0),
  21764. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  21765. "Senary TDM1 Hostless Playback",
  21766. 0, 0, 0, 0),
  21767. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  21768. "Senary TDM1 Hostless Capture",
  21769. 0, 0, 0, 0),
  21770. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  21771. "Senary TDM2 Hostless Playback",
  21772. 0, 0, 0, 0),
  21773. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  21774. "Senary TDM2 Hostless Capture",
  21775. 0, 0, 0, 0),
  21776. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  21777. "Senary TDM3 Hostless Playback",
  21778. 0, 0, 0, 0),
  21779. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  21780. "Senary TDM3 Hostless Capture",
  21781. 0, 0, 0, 0),
  21782. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  21783. "Senary TDM4 Hostless Playback",
  21784. 0, 0, 0, 0),
  21785. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  21786. "Senary TDM4 Hostless Capture",
  21787. 0, 0, 0, 0),
  21788. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  21789. "Senary TDM5 Hostless Playback",
  21790. 0, 0, 0, 0),
  21791. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  21792. "Senary TDM5 Hostless Capture",
  21793. 0, 0, 0, 0),
  21794. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  21795. "Senary TDM6 Hostless Playback",
  21796. 0, 0, 0, 0),
  21797. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  21798. "Senary TDM6 Hostless Capture",
  21799. 0, 0, 0, 0),
  21800. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  21801. "Senary TDM7 Hostless Playback",
  21802. 0, 0, 0, 0),
  21803. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  21804. "Senary TDM7 Hostless Capture",
  21805. 0, 0, 0, 0),
  21806. /* LSM */
  21807. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  21808. 0, 0, 0, 0),
  21809. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  21810. 0, 0, 0, 0),
  21811. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  21812. 0, 0, 0, 0),
  21813. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  21814. 0, 0, 0, 0),
  21815. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  21816. 0, 0, 0, 0),
  21817. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  21818. 0, 0, 0, 0),
  21819. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  21820. 0, 0, 0, 0),
  21821. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  21822. 0, 0, 0, 0),
  21823. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  21824. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  21825. /* Backend AIF */
  21826. /* Stream name equals to backend dai link stream name */
  21827. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  21828. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  21829. 0, 0, 0, 0),
  21830. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  21831. 0, 0, 0, 0),
  21832. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  21833. 0, 0, 0, 0),
  21834. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  21835. 0, 0, 0, 0),
  21836. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  21837. 0, 0, 0, 0),
  21838. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  21839. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  21840. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  21841. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  21842. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  21843. 0, 0, 0, 0),
  21844. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  21845. 0, 0, 0, 0),
  21846. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  21847. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  21848. 0, 0, 0, 0),
  21849. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  21850. 0, 0, 0, 0),
  21851. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  21852. 0, 0, 0, 0),
  21853. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  21854. "Secondary MI2S Playback SD1",
  21855. 0, 0, 0, 0),
  21856. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  21857. 0, 0, 0, 0),
  21858. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  21859. 0, 0, 0, 0),
  21860. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  21861. 0, 0, 0, 0),
  21862. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  21863. 0, 0, 0, 0),
  21864. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  21865. 0, 0, 0, 0),
  21866. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  21867. 0, 0, 0, 0),
  21868. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  21869. 0, 0, 0, 0),
  21870. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  21871. 0, 0, 0, 0),
  21872. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  21873. 0, 0, 0, 0),
  21874. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  21875. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  21876. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  21877. 0, 0, 0, 0),
  21878. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  21879. 0, 0, 0, 0),
  21880. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  21881. 0, 0, 0, 0),
  21882. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  21883. 0, 0, 0, 0),
  21884. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  21885. 0, 0, 0, 0),
  21886. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  21887. 0, 0, 0, 0),
  21888. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  21889. 0, 0, 0, 0),
  21890. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  21891. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  21892. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  21893. 0, 0, 0, 0),
  21894. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  21895. 0, 0, 0, 0),
  21896. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  21897. 0, 0, 0, 0),
  21898. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  21899. 0, 0, 0, 0),
  21900. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  21901. 0, 0, 0, 0),
  21902. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  21903. 0, 0, 0, 0),
  21904. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  21905. 0, 0, 0, 0),
  21906. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  21907. 0, 0, 0, 0),
  21908. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  21909. 0, 0, 0, 0),
  21910. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  21911. 0, 0, 0, 0),
  21912. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  21913. 0, 0, 0, 0),
  21914. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  21915. 0, 0, 0, 0),
  21916. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  21917. 0, 0, 0, 0),
  21918. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  21919. 0, 0, 0, 0),
  21920. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  21921. 0, 0, 0, 0),
  21922. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  21923. 0, 0, 0, 0),
  21924. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  21925. 0, 0, 0, 0),
  21926. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  21927. 0, 0, 0, 0),
  21928. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  21929. 0, 0, 0, 0),
  21930. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  21931. 0, 0, 0, 0),
  21932. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  21933. 0, 0, 0, 0),
  21934. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  21935. 0, 0, 0, 0),
  21936. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  21937. 0, 0, 0, 0),
  21938. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  21939. 0, 0, 0, 0),
  21940. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  21941. 0, 0, 0, 0),
  21942. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  21943. 0, 0, 0, 0),
  21944. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  21945. 0, 0, 0, 0),
  21946. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  21947. 0, 0, 0, 0),
  21948. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  21949. 0, 0, 0, 0),
  21950. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  21951. 0, 0, 0, 0),
  21952. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  21953. 0, 0, 0, 0),
  21954. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  21955. 0, 0, 0, 0),
  21956. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  21957. 0, 0, 0, 0),
  21958. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  21959. 0, 0, 0, 0),
  21960. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  21961. 0, 0, 0, 0),
  21962. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  21963. 0, 0, 0, 0),
  21964. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  21965. 0, 0, 0, 0),
  21966. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  21967. 0, 0, 0, 0),
  21968. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  21969. 0, 0, 0, 0),
  21970. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  21971. 0, 0, 0, 0),
  21972. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  21973. 0, 0, 0, 0),
  21974. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  21975. 0, 0, 0, 0),
  21976. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  21977. 0, 0, 0, 0),
  21978. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  21979. 0, 0, 0, 0),
  21980. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  21981. 0, 0, 0, 0),
  21982. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  21983. 0, 0, 0, 0),
  21984. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  21985. 0, 0, 0, 0),
  21986. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  21987. 0, 0, 0, 0),
  21988. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  21989. 0, 0, 0, 0),
  21990. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  21991. 0, 0, 0, 0),
  21992. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  21993. 0, 0, 0, 0),
  21994. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  21995. 0, 0, 0, 0),
  21996. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  21997. 0, 0, 0, 0),
  21998. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  21999. 0, 0, 0, 0),
  22000. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22001. 0, 0, 0, 0),
  22002. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22003. 0, 0, 0, 0),
  22004. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22005. 0, 0, 0, 0),
  22006. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22007. 0, 0, 0, 0),
  22008. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22009. 0, 0, 0, 0),
  22010. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22011. 0, 0, 0, 0),
  22012. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22013. 0, 0, 0, 0),
  22014. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22015. 0, 0, 0, 0),
  22016. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22017. 0, 0, 0, 0),
  22018. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22019. 0, 0, 0, 0),
  22020. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22021. 0, 0, 0, 0),
  22022. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22023. 0, 0, 0, 0),
  22024. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22025. 0, 0, 0, 0),
  22026. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22027. 0, 0, 0, 0),
  22028. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22029. 0, 0, 0, 0),
  22030. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22031. 0, 0, 0, 0),
  22032. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22033. 0, 0, 0, 0),
  22034. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22035. 0, 0, 0, 0),
  22036. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22037. 0, 0, 0, 0),
  22038. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22039. 0, 0, 0, 0),
  22040. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22041. 0, 0, 0, 0),
  22042. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22043. 0, 0, 0, 0),
  22044. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22045. 0, 0, 0, 0),
  22046. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22047. 0, 0, 0, 0),
  22048. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22049. 0, 0, 0, 0),
  22050. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22051. 0, 0, 0, 0),
  22052. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22053. 0, 0, 0, 0),
  22054. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22055. 0, 0, 0, 0),
  22056. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22057. 0, 0, 0, 0),
  22058. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22059. 0, 0, 0, 0),
  22060. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22061. 0, 0, 0, 0),
  22062. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22063. 0, 0, 0, 0),
  22064. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22065. 0, 0, 0, 0),
  22066. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22067. 0, 0, 0, 0),
  22068. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22069. 0, 0, 0, 0),
  22070. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22071. 0, 0, 0, 0),
  22072. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22073. 0, 0, 0, 0),
  22074. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22075. 0, 0, 0, 0),
  22076. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22077. 0, 0, 0, 0),
  22078. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22079. 0, 0, 0, 0),
  22080. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22081. 0, 0, 0, 0),
  22082. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22083. 0, 0, 0, 0),
  22084. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22085. 0, 0, 0, 0),
  22086. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22087. 0, 0, 0, 0),
  22088. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22089. 0, 0, 0, 0),
  22090. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22091. 0, 0, 0, 0),
  22092. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22093. 0, 0, 0, 0),
  22094. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22095. 0, 0, 0, 0),
  22096. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22097. 0, 0, 0, 0),
  22098. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22099. 0, 0, 0, 0),
  22100. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22101. 0, 0, 0, 0),
  22102. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22103. 0, 0, 0, 0),
  22104. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22105. 0, 0, 0, 0),
  22106. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22107. 0, 0, 0, 0),
  22108. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22109. 0, 0, 0, 0),
  22110. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22111. 0, 0, 0, 0),
  22112. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22113. 0, 0, 0, 0),
  22114. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22115. 0, 0, 0, 0),
  22116. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22117. 0, 0, 0, 0),
  22118. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22119. 0, 0, 0, 0),
  22120. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22121. 0, 0, 0, 0),
  22122. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22123. 0, 0, 0, 0),
  22124. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22125. 0, 0, 0, 0),
  22126. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22127. 0, 0, 0, 0),
  22128. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22129. 0, 0, 0, 0),
  22130. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22131. 0, 0, 0, 0),
  22132. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22133. 0, 0, 0, 0),
  22134. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22135. 0, 0, 0, 0),
  22136. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22137. 0, 0, 0, 0),
  22138. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22139. 0, 0, 0, 0),
  22140. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22141. 0, 0, 0, 0),
  22142. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22143. 0, 0, 0, 0),
  22144. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22145. 0, 0, 0, 0),
  22146. /* incall */
  22147. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22148. 0, 0, 0, 0),
  22149. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22150. 0, 0, 0, 0),
  22151. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22152. 0, 0, 0, 0),
  22153. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22154. 0, 0, 0, 0),
  22155. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22156. 0, 0, 0, 0),
  22157. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22158. 0, 0, 0, 0),
  22159. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22160. 0, 0, 0, 0),
  22161. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22162. 0, 0, 0, 0),
  22163. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22164. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22165. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22166. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22167. 0, 0, 0, 0),
  22168. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22169. 0, 0, 0, 0),
  22170. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22171. 0, 0, 0, 0),
  22172. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22173. 0, 0, 0, 0),
  22174. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22175. 0, 0, 0, 0),
  22176. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22177. 0, 0, 0, 0),
  22178. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22179. 0, 0, 0, 0),
  22180. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22181. 0, 0, 0, 0),
  22182. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22183. 0, 0, 0, 0),
  22184. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22185. 0, 0, 0, 0),
  22186. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22187. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22188. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22189. 0, 0, 0, 0),
  22190. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22191. 0, 0, 0, 0),
  22192. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22193. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22194. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22195. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22196. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22197. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22198. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22199. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22200. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22201. /* In- call recording */
  22202. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22203. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22204. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22205. 0, 0, 0, 0),
  22206. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22207. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22208. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22209. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22210. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22211. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22212. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22213. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22214. /* Switch Definitions */
  22215. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22216. &slim_fm_switch_mixer_controls),
  22217. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22218. &slim1_fm_switch_mixer_controls),
  22219. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22220. &slim3_fm_switch_mixer_controls),
  22221. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22222. &slim4_fm_switch_mixer_controls),
  22223. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22224. &slim6_fm_switch_mixer_controls),
  22225. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22226. &pcm_rx_switch_mixer_controls),
  22227. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22228. &int0_mi2s_rx_switch_mixer_controls),
  22229. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22230. &int4_mi2s_rx_switch_mixer_controls),
  22231. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22232. &pri_mi2s_rx_switch_mixer_controls),
  22233. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22234. &sec_mi2s_rx_switch_mixer_controls),
  22235. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22236. &tert_mi2s_rx_switch_mixer_controls),
  22237. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22238. &quat_mi2s_rx_switch_mixer_controls),
  22239. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22240. &quin_mi2s_rx_switch_mixer_controls),
  22241. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22242. &sco_slim7_switch_mixer_controls),
  22243. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22244. &sen_mi2s_rx_switch_mixer_controls),
  22245. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22246. &hfp_pri_aux_switch_mixer_controls),
  22247. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22248. &hfp_aux_switch_mixer_controls),
  22249. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22250. &hfp_int_switch_mixer_controls),
  22251. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22252. &hfp_slim7_switch_mixer_controls),
  22253. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22254. &usb_switch_mixer_controls),
  22255. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22256. &a2dp_slim7_switch_mixer_controls),
  22257. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22258. &cdc_dma_wsa_switch_mixer_controls),
  22259. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22260. &cdc_dma_rx_switch_mixer_controls),
  22261. /* Mixer definitions */
  22262. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22263. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22264. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22265. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22266. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22267. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22268. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22269. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22270. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22271. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22272. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22273. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22274. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22275. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22276. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22277. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22278. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22279. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22280. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22281. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22282. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22283. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22284. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22285. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22286. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22287. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22288. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22289. quaternary_mi2s_rx_mixer_controls,
  22290. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22291. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22292. tertiary_mi2s_rx_mixer_controls,
  22293. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22294. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22295. secondary_mi2s_rx_mixer_controls,
  22296. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22297. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22298. secondary_mi2s_rx2_mixer_controls,
  22299. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22300. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22301. primary_mi2s_rx_mixer_controls,
  22302. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22303. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22304. int0_mi2s_rx_mixer_controls,
  22305. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22306. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22307. int4_mi2s_rx_mixer_controls,
  22308. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22309. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22310. quinary_mi2s_rx_mixer_controls,
  22311. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22312. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22313. senary_mi2s_rx_mixer_controls,
  22314. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22315. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22316. pri_tdm_rx_0_mixer_controls,
  22317. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22318. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22319. pri_tdm_rx_1_mixer_controls,
  22320. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22321. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22322. pri_tdm_rx_2_mixer_controls,
  22323. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22324. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22325. pri_tdm_rx_3_mixer_controls,
  22326. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22327. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22328. pri_tdm_tx_0_mixer_controls,
  22329. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22330. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22331. sec_tdm_rx_0_mixer_controls,
  22332. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22333. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22334. sec_tdm_rx_1_mixer_controls,
  22335. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22336. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22337. sec_tdm_rx_2_mixer_controls,
  22338. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22339. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22340. sec_tdm_rx_3_mixer_controls,
  22341. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22342. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22343. sec_tdm_tx_0_mixer_controls,
  22344. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22345. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22346. tert_tdm_rx_0_mixer_controls,
  22347. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22348. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22349. tert_tdm_tx_0_mixer_controls,
  22350. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22351. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22352. tert_tdm_rx_1_mixer_controls,
  22353. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22354. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22355. tert_tdm_rx_2_mixer_controls,
  22356. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22357. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22358. tert_tdm_rx_3_mixer_controls,
  22359. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22360. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22361. tert_tdm_rx_4_mixer_controls,
  22362. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22363. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22364. quat_tdm_rx_0_mixer_controls,
  22365. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22366. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22367. quat_tdm_tx_0_mixer_controls,
  22368. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22369. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22370. quat_tdm_rx_1_mixer_controls,
  22371. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22372. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22373. quat_tdm_rx_2_mixer_controls,
  22374. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22375. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22376. quat_tdm_rx_3_mixer_controls,
  22377. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22378. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22379. quin_tdm_rx_0_mixer_controls,
  22380. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  22381. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22382. quin_tdm_tx_0_mixer_controls,
  22383. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  22384. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22385. quin_tdm_rx_1_mixer_controls,
  22386. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  22387. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22388. quin_tdm_rx_2_mixer_controls,
  22389. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  22390. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22391. quin_tdm_rx_3_mixer_controls,
  22392. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  22393. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22394. sen_tdm_tx_0_mixer_controls,
  22395. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  22396. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22397. sen_tdm_rx_0_mixer_controls,
  22398. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  22399. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22400. sen_tdm_rx_1_mixer_controls,
  22401. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  22402. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22403. sen_tdm_rx_2_mixer_controls,
  22404. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  22405. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22406. sen_tdm_rx_3_mixer_controls,
  22407. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  22408. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22409. wsa_cdc_dma_rx_0_mixer_controls,
  22410. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22411. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22412. wsa_cdc_dma_rx_1_mixer_controls,
  22413. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22414. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22415. rx_cdc_dma_rx_0_mixer_controls,
  22416. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22417. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22418. rx_cdc_dma_rx_1_mixer_controls,
  22419. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22420. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22421. rx_cdc_dma_rx_2_mixer_controls,
  22422. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22423. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22424. rx_cdc_dma_rx_3_mixer_controls,
  22425. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22426. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22427. rx_cdc_dma_rx_4_mixer_controls,
  22428. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22429. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22430. rx_cdc_dma_rx_5_mixer_controls,
  22431. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22432. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22433. rx_cdc_dma_rx_6_mixer_controls,
  22434. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22435. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22436. rx_cdc_dma_rx_7_mixer_controls,
  22437. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22438. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22439. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22440. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22441. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22442. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22443. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22444. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22445. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22446. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22447. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22448. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22449. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22450. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22451. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22452. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22453. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22454. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22455. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22456. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22457. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22458. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22459. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22460. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22461. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22462. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22463. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22464. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22465. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22466. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22467. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22468. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22469. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22470. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22471. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22472. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22473. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22474. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  22475. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  22476. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22477. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22478. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22479. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22480. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22481. tert_auxpcm_rx_mixer_controls,
  22482. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22483. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22484. quat_auxpcm_rx_mixer_controls,
  22485. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22486. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22487. quin_auxpcm_rx_mixer_controls,
  22488. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22489. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22490. sen_auxpcm_rx_mixer_controls,
  22491. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22492. /* incall */
  22493. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22494. incall_music_delivery_mixer_controls,
  22495. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22496. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22497. incall_music2_delivery_mixer_controls,
  22498. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22499. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22500. slimbus_4_rx_mixer_controls,
  22501. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22502. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22503. slimbus_6_rx_mixer_controls,
  22504. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22505. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22506. usb_audio_rx_mixer_controls,
  22507. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22508. /* Voice Mixer */
  22509. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22510. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22511. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22512. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22513. SND_SOC_NOPM, 0, 0,
  22514. sec_i2s_rx_voice_mixer_controls,
  22515. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22516. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22517. SND_SOC_NOPM, 0, 0,
  22518. sec_mi2s_rx_voice_mixer_controls,
  22519. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22520. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22521. SND_SOC_NOPM, 0, 0,
  22522. slimbus_rx_voice_mixer_controls,
  22523. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22524. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22525. SND_SOC_NOPM, 0, 0,
  22526. bt_sco_rx_voice_mixer_controls,
  22527. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22528. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22529. SND_SOC_NOPM, 0, 0,
  22530. afe_pcm_rx_voice_mixer_controls,
  22531. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22532. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22533. SND_SOC_NOPM, 0, 0,
  22534. aux_pcm_rx_voice_mixer_controls,
  22535. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22536. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22537. SND_SOC_NOPM, 0, 0,
  22538. sec_aux_pcm_rx_voice_mixer_controls,
  22539. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22540. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22541. SND_SOC_NOPM, 0, 0,
  22542. tert_aux_pcm_rx_voice_mixer_controls,
  22543. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22544. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22545. SND_SOC_NOPM, 0, 0,
  22546. quat_aux_pcm_rx_voice_mixer_controls,
  22547. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22548. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22549. SND_SOC_NOPM, 0, 0,
  22550. quin_aux_pcm_rx_voice_mixer_controls,
  22551. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22552. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22553. SND_SOC_NOPM, 0, 0,
  22554. sen_aux_pcm_rx_voice_mixer_controls,
  22555. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22556. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22557. SND_SOC_NOPM, 0, 0,
  22558. hdmi_rx_voice_mixer_controls,
  22559. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22560. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22561. SND_SOC_NOPM, 0, 0,
  22562. mi2s_rx_voice_mixer_controls,
  22563. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  22564. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  22565. SND_SOC_NOPM, 0, 0,
  22566. pri_mi2s_rx_voice_mixer_controls,
  22567. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  22568. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  22569. SND_SOC_NOPM, 0, 0,
  22570. int0_mi2s_rx_voice_mixer_controls,
  22571. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  22572. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  22573. SND_SOC_NOPM, 0, 0,
  22574. int4_mi2s_rx_voice_mixer_controls,
  22575. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  22576. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  22577. SND_SOC_NOPM, 0, 0,
  22578. tert_mi2s_rx_voice_mixer_controls,
  22579. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  22580. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  22581. SND_SOC_NOPM, 0, 0,
  22582. quat_mi2s_rx_voice_mixer_controls,
  22583. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  22584. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  22585. SND_SOC_NOPM, 0, 0,
  22586. quin_mi2s_rx_voice_mixer_controls,
  22587. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  22588. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  22589. SND_SOC_NOPM, 0, 0,
  22590. pri_tdm_rx_0_voice_mixer_controls,
  22591. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  22592. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  22593. SND_SOC_NOPM, 0, 0,
  22594. pri_tdm_rx_1_voice_mixer_controls,
  22595. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  22596. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  22597. SND_SOC_NOPM, 0, 0,
  22598. pri_tdm_rx_2_voice_mixer_controls,
  22599. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  22600. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  22601. SND_SOC_NOPM, 0, 0,
  22602. pri_tdm_rx_3_voice_mixer_controls,
  22603. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  22604. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  22605. SND_SOC_NOPM, 0, 0,
  22606. sen_mi2s_rx_voice_mixer_controls,
  22607. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  22608. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  22609. SND_SOC_NOPM, 0, 0,
  22610. quat_tdm_rx_2_voice_mixer_controls,
  22611. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  22612. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  22613. SND_SOC_NOPM, 0, 0,
  22614. wsa_cdc_dma_rx_0_voice_mixer_controls,
  22615. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  22616. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  22617. SND_SOC_NOPM, 0, 0,
  22618. rx_cdc_dma_rx_0_voice_mixer_controls,
  22619. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  22620. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  22621. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  22622. ARRAY_SIZE(tx_voip_mixer_controls)),
  22623. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  22624. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  22625. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  22626. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  22627. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  22628. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  22629. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22630. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  22631. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22632. int_bt_a2dp_rx_mixer_controls,
  22633. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  22634. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22635. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  22636. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22637. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  22638. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22639. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  22640. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22641. tx_voice2_stub_mixer_controls,
  22642. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  22643. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22644. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  22645. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  22646. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  22647. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  22648. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  22649. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22650. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  22651. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  22652. SND_SOC_NOPM, 0, 0,
  22653. slimbus_6_rx_voice_mixer_controls,
  22654. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  22655. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22656. slimbus_7_rx_voice_mixer_controls,
  22657. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  22658. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22659. slimbus_8_rx_voice_mixer_controls,
  22660. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  22661. /* port mixer */
  22662. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  22663. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  22664. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  22665. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  22666. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  22667. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  22668. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  22669. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  22670. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  22671. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  22672. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  22673. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  22674. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  22675. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  22676. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  22677. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  22678. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  22679. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  22680. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  22681. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  22682. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  22683. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22684. sbus_1_rx_port_mixer_controls,
  22685. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  22686. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22687. bt_sco_rx_port_mixer_controls,
  22688. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  22689. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  22690. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  22691. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  22692. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  22693. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  22694. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  22695. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  22696. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  22697. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  22698. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  22699. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  22700. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  22701. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  22702. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  22703. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  22704. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  22705. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  22706. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  22707. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  22708. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  22709. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  22710. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22711. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  22712. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22713. primary_mi2s_rx_port_mixer_controls,
  22714. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  22715. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22716. sec_mi2s_rx_port_mixer_controls,
  22717. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  22718. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22719. tert_mi2s_rx_port_mixer_controls,
  22720. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  22721. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22722. quat_mi2s_rx_port_mixer_controls,
  22723. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  22724. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22725. quin_mi2s_rx_port_mixer_controls,
  22726. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  22727. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22728. sen_mi2s_rx_port_mixer_controls,
  22729. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  22730. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22731. pri_tdm_rx_0_port_mixer_controls,
  22732. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  22733. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22734. pri_tdm_rx_1_port_mixer_controls,
  22735. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  22736. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22737. pri_tdm_rx_2_port_mixer_controls,
  22738. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  22739. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22740. pri_tdm_rx_3_port_mixer_controls,
  22741. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  22742. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22743. sec_tdm_rx_0_port_mixer_controls,
  22744. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  22745. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22746. sec_tdm_rx_1_port_mixer_controls,
  22747. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  22748. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22749. sec_tdm_rx_2_port_mixer_controls,
  22750. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  22751. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22752. sec_tdm_rx_3_port_mixer_controls,
  22753. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  22754. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22755. sec_tdm_rx_7_port_mixer_controls,
  22756. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  22757. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22758. tert_tdm_rx_0_port_mixer_controls,
  22759. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  22760. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22761. tert_tdm_rx_1_port_mixer_controls,
  22762. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  22763. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22764. tert_tdm_rx_2_port_mixer_controls,
  22765. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  22766. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22767. tert_tdm_rx_3_port_mixer_controls,
  22768. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  22769. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22770. quat_tdm_rx_0_port_mixer_controls,
  22771. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  22772. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22773. quat_tdm_rx_1_port_mixer_controls,
  22774. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  22775. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22776. quat_tdm_rx_2_port_mixer_controls,
  22777. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  22778. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22779. quat_tdm_rx_3_port_mixer_controls,
  22780. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  22781. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22782. quat_tdm_rx_7_port_mixer_controls,
  22783. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  22784. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22785. quin_tdm_rx_0_port_mixer_controls,
  22786. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  22787. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22788. quin_tdm_rx_1_port_mixer_controls,
  22789. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  22790. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22791. quin_tdm_rx_2_port_mixer_controls,
  22792. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  22793. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22794. quin_tdm_rx_3_port_mixer_controls,
  22795. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  22796. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22797. quin_tdm_rx_7_port_mixer_controls,
  22798. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  22799. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22800. sen_tdm_rx_0_port_mixer_controls,
  22801. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  22802. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22803. sen_tdm_rx_1_port_mixer_controls,
  22804. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  22805. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22806. sen_tdm_rx_2_port_mixer_controls,
  22807. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  22808. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22809. sen_tdm_rx_3_port_mixer_controls,
  22810. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  22811. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22812. int0_mi2s_rx_port_mixer_controls,
  22813. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  22814. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22815. int4_mi2s_rx_port_mixer_controls,
  22816. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  22817. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22818. wsa_cdc_dma_rx_0_port_mixer_controls,
  22819. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  22820. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22821. rx_cdc_dma_rx_0_port_mixer_controls,
  22822. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  22823. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  22824. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  22825. ARRAY_SIZE(tx_qchat_mixer_controls)),
  22826. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  22827. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  22828. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  22829. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  22830. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  22831. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  22832. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  22833. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  22834. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  22835. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  22836. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  22837. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  22838. /* lsm mixer definitions */
  22839. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  22840. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  22841. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  22842. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  22843. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  22844. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  22845. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  22846. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  22847. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  22848. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  22849. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  22850. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  22851. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  22852. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  22853. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  22854. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  22855. /* Virtual Pins to force backends ON atm */
  22856. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  22857. SND_SOC_DAPM_INPUT("BE_IN"),
  22858. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  22859. &slim0_rx_vi_fb_lch_mux),
  22860. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  22861. &slim0_rx_vi_fb_rch_mux),
  22862. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  22863. &wsa_rx_0_vi_fb_lch_mux),
  22864. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  22865. &wsa_rx_0_vi_fb_rch_mux),
  22866. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  22867. &mi2s_rx_vi_fb_mux),
  22868. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  22869. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  22870. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  22871. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  22872. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  22873. &voc_ext_ec_mux),
  22874. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  22875. &ext_ec_ref_mux_ul1),
  22876. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  22877. &ext_ec_ref_mux_ul2),
  22878. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  22879. &ext_ec_ref_mux_ul3),
  22880. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  22881. &ext_ec_ref_mux_ul4),
  22882. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  22883. &ext_ec_ref_mux_ul5),
  22884. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  22885. &ext_ec_ref_mux_ul6),
  22886. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  22887. &ext_ec_ref_mux_ul8),
  22888. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  22889. &ext_ec_ref_mux_ul9),
  22890. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  22891. &ext_ec_ref_mux_ul10),
  22892. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  22893. &ext_ec_ref_mux_ul16),
  22894. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  22895. &ext_ec_ref_mux_ul17),
  22896. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  22897. &ext_ec_ref_mux_ul18),
  22898. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  22899. &ext_ec_ref_mux_ul19),
  22900. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  22901. &ext_ec_ref_mux_ul28),
  22902. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  22903. &ext_ec_ref_mux_ul29),
  22904. };
  22905. static const struct snd_soc_dapm_route intercon[] = {
  22906. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22907. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22908. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22909. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22910. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22911. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22912. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22913. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22914. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22915. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22916. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22917. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22918. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22919. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22920. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22921. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22922. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22923. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  22924. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22925. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22926. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22927. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22928. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22929. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22930. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22931. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22932. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22933. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22934. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22935. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22936. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22937. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22938. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22939. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22940. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22941. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  22942. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22943. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22944. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22945. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22946. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22947. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22948. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22949. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22950. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22951. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22952. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22953. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22954. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22955. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22956. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22957. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22958. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22959. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  22960. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22961. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22962. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22963. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22964. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22965. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22966. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22967. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22968. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22969. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22970. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22971. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22972. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22973. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22974. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22975. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22976. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22977. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  22978. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22979. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22980. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22981. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22982. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22983. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22984. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22985. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22986. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22987. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22988. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22989. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22990. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22991. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22992. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22993. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22994. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22995. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  22996. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22997. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22998. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22999. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23000. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23001. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23002. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23003. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23004. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23005. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23006. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23007. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23008. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23009. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23010. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23011. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23012. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23013. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23014. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23015. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23016. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23017. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23018. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23019. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23020. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23021. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23022. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23023. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23024. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23025. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23026. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23027. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23028. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23029. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23030. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23031. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23032. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23033. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23034. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23035. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23036. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23037. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23038. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23039. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23040. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23041. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23042. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23043. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23044. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23045. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23046. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23047. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23048. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23049. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23050. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23051. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23052. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23053. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23054. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23055. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23056. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23057. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23058. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23059. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23060. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23061. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23062. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23063. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23064. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23065. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23066. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23067. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23068. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23069. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23070. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23071. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23072. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23073. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23074. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23075. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23076. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23077. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23078. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23079. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23080. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23081. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23082. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23083. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23084. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23085. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23086. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23087. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23088. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23089. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23090. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23091. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23092. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23093. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23094. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23095. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23096. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23097. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23098. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23099. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23100. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23101. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23102. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23103. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23104. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23105. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23106. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23107. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23108. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23109. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23110. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23111. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23112. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23113. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23114. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23115. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23116. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23117. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23118. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23119. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23120. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23121. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23122. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23123. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23124. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23125. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23126. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23127. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23128. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23129. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23130. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23131. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23132. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23133. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23134. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23135. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23136. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23137. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23138. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23139. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23140. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23141. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23142. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23143. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23144. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23145. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23146. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23147. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23148. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23149. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23150. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23151. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23152. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23153. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23154. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23155. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23156. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23157. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23158. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23159. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23160. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23161. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23162. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23163. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23164. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23165. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23166. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23167. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23168. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23169. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23170. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23171. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23172. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23173. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23174. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23175. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23176. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23177. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23178. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23179. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23180. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23181. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23182. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23183. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23184. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23185. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23186. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23187. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23188. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23189. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23190. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23191. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23192. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23193. {"HDMI", NULL, "HDMI Mixer"},
  23194. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23195. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23196. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23197. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23198. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23199. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23200. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23201. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23202. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23203. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23204. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23205. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23206. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23207. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23208. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23209. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23210. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23211. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23212. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23213. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23214. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23215. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23216. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23217. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23218. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23219. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23220. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23221. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23222. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23223. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23224. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23225. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23226. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23227. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23228. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23229. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23230. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23231. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23232. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23233. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23234. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23235. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23236. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23237. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23238. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23239. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23240. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23241. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23242. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23243. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23244. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23245. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23246. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23247. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23248. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23249. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23250. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23251. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23252. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23253. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23254. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23255. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23256. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23257. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23258. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23259. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23260. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23261. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23262. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23263. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23264. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23265. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23266. /* incall */
  23267. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23268. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23269. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23270. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23271. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23272. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23273. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23274. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23275. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23276. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23277. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23278. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23279. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23280. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23281. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23282. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23283. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23284. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23285. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23286. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23287. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23288. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23289. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23290. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23291. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23292. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23293. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23294. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23295. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23296. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23297. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23298. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23299. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23300. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23301. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23302. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23303. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23304. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23305. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23306. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23307. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23308. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23309. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23310. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23311. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23312. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23313. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23314. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23315. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23316. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23317. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23318. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23319. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23320. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23321. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23322. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23323. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23324. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23325. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23326. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23327. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23328. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23329. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23330. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23331. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23332. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23333. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23334. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23335. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23336. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23337. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23338. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23339. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23340. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23341. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23342. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23343. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23344. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23345. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23346. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23347. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23348. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23349. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23350. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23351. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23352. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23353. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23354. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23355. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23356. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23357. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23358. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23359. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23360. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  23361. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23362. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23363. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23364. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23365. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23366. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23367. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23368. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23369. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23370. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23371. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23372. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23373. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23374. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23375. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23376. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23377. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23378. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23379. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23380. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23381. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23382. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23383. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23384. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23385. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23386. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23387. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23388. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23389. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23390. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23391. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23392. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23393. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23394. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23395. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23396. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23397. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23398. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23399. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23400. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23401. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23402. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23403. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23404. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23405. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23406. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23407. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23408. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23409. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23410. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23411. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23412. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23413. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23414. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23415. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23416. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23417. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23418. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23419. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23420. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23421. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23422. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23423. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23424. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23425. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23426. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23427. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23428. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23429. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23430. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23431. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23432. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23433. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23434. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23435. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23436. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23437. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23438. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23439. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23440. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23441. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23442. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23443. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23444. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23445. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23446. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23447. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23448. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23449. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23450. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23451. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23452. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23453. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23454. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23455. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23456. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23457. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23458. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23459. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23460. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23461. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23462. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23463. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23464. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23465. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23466. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23467. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23468. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23469. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23470. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23471. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23472. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23473. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23474. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23475. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23476. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23477. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23478. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23479. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23480. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23481. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23482. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23483. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23484. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23485. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23486. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23487. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23488. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23489. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23490. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23491. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23492. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23493. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23494. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23495. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23496. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23497. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23498. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23499. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23500. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23501. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23502. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23503. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23504. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23505. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23506. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23507. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23508. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23509. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23510. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23511. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23512. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23513. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23514. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23515. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23516. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23517. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23518. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23519. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23520. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23521. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23522. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23523. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23524. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23525. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23526. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23527. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23528. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23529. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23530. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23531. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23532. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23533. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23534. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23535. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23536. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23537. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23538. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23539. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23540. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23541. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23542. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23543. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23544. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23545. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23546. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23547. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23548. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23549. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23550. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23551. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23552. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23553. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23554. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23555. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23556. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23557. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23558. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23559. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23560. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23561. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23562. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23563. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23564. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23565. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23566. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23567. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23568. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23569. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23570. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23571. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23572. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  23573. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23574. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23575. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23576. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23577. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23578. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23579. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23580. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23581. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23582. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23583. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23584. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23585. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23586. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23587. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23588. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  23589. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23590. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23591. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23592. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23593. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23594. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23595. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23596. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23597. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23598. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23599. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23600. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23601. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23602. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23603. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23604. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23605. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23606. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  23607. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23608. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23609. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23610. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23611. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23612. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23613. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23614. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23615. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23616. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23617. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23618. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23619. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23620. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23621. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23622. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23623. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23624. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  23625. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23626. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23627. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23628. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23629. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23630. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23631. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23632. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23633. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23634. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23635. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23636. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23637. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23638. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23639. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23640. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23641. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23642. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  23643. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23644. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23645. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23646. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23647. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23648. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23649. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23650. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23651. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23652. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23653. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23654. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23655. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23656. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23657. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23658. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23659. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23660. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  23661. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23662. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23663. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23664. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23665. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23666. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23667. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23668. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23669. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23670. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23671. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23672. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23673. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23674. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23675. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23676. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23677. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  23678. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23679. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23680. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23681. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23682. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23683. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23684. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23685. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23686. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23687. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23688. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23689. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23690. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23691. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23692. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23693. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23694. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23695. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  23696. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23697. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23698. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23699. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23700. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23701. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23702. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23703. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23704. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23705. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23706. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23707. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23708. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23709. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23710. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23711. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23712. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23713. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  23714. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23715. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23716. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23717. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23718. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23719. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23720. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23721. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23722. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23723. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23724. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23725. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23726. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23727. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23728. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23729. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23730. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23731. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  23732. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23733. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23734. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23735. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23736. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23737. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23738. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23739. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23740. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23741. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23742. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23743. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23744. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23745. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23746. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23747. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23748. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23749. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  23750. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23751. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23752. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23753. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23754. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23755. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23756. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23757. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23758. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23759. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23760. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23761. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23762. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23763. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23764. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23765. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23766. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  23767. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23768. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23769. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23770. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23771. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23772. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23773. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23774. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23775. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23776. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23777. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23778. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23779. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23780. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23781. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23782. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23783. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23784. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  23785. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23786. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23787. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23788. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23789. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23790. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23791. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23792. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23793. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23794. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23795. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23796. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23797. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23798. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23799. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23800. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23801. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  23802. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23803. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23804. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23805. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23806. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23807. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23808. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23809. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23810. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23811. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23812. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23813. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23814. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23815. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23816. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23817. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23818. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23819. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  23820. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23821. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23822. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23823. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23824. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23825. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23826. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23827. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23828. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23829. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23830. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23831. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23832. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23833. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23834. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23835. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23836. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23837. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  23838. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23839. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23840. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23841. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23842. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23843. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23844. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23845. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23846. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23847. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23848. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23849. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23850. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23851. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23852. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23853. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23854. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23855. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  23856. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23857. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23858. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23859. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23860. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23861. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23862. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23863. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23864. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23865. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23866. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23867. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23868. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23869. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23870. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23871. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23872. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23873. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  23874. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23875. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23876. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23877. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23878. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23879. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23880. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23881. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23882. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23883. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23884. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23885. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23886. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23887. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23888. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23889. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23890. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23891. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23892. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  23893. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23894. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23895. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23896. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23897. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23898. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23899. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23900. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23901. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23902. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23903. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23904. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23905. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23906. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23907. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23908. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23909. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  23910. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23911. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23912. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23913. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23914. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23915. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23916. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23917. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23918. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23919. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23920. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23921. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23922. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23923. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23924. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23925. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23926. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23927. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23928. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  23929. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23930. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23931. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23932. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23933. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23934. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23935. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23936. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23937. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23938. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23939. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23940. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23941. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23942. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23943. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23944. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23945. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23946. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23947. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  23948. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23949. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23950. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23951. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23952. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23953. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23954. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23955. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23956. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23957. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23958. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23959. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23960. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23961. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23962. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23963. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23964. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23965. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23966. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  23967. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23968. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23969. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23970. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23971. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23972. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23973. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23974. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23975. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23976. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23977. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23978. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23979. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23980. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23981. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23982. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23983. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23984. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23985. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  23986. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23987. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23988. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23989. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23990. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23991. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23992. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23993. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23994. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23995. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23996. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23997. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23998. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23999. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24000. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24001. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24002. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24003. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24004. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24005. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24006. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24007. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24008. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24009. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24010. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24011. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24012. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24013. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24014. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24015. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24016. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24017. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24018. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24019. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24020. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24021. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24022. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24023. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24024. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24025. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24026. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24027. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24028. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24029. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24030. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24031. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24032. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24033. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24034. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24035. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24036. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24037. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24038. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24039. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24040. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24041. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24042. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24043. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24044. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24045. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24046. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24047. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24048. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24049. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24050. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24051. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24052. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24053. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24054. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24055. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24056. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24057. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24058. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24059. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24060. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24061. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24062. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24063. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24064. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24065. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24066. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24067. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24068. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24069. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24070. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24071. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24072. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24073. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24074. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24075. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24076. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24077. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24078. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24079. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24080. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24081. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24082. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24083. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24084. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24085. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24086. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24087. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24088. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24089. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24090. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24091. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24092. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24093. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24094. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24095. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24096. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24097. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24098. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24099. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24100. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24101. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24102. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24103. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24104. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24105. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24106. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24107. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24108. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24109. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24110. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24111. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24112. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24113. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24114. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24115. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24116. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24117. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24118. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24119. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24120. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24121. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24122. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24123. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24124. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24125. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24126. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24127. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24128. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24129. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24130. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24131. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24132. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24133. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24134. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24135. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24136. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24137. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24138. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24139. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24140. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24141. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24142. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24143. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24144. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24145. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24146. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24147. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24148. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24149. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24150. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24151. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24152. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24153. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24154. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24155. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24156. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24157. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24158. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24159. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24160. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24161. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24162. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24163. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24164. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24165. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24166. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24167. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24168. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24169. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24170. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24171. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24172. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24173. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24174. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24175. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24176. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24177. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24178. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24179. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24180. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24181. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24182. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24183. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24184. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24185. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24186. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24187. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24188. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24189. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24190. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24191. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24192. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24193. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24194. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24195. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24196. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24197. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24198. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24199. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24200. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24201. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24202. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24203. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24204. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24205. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24206. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24207. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24208. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24209. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24210. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24211. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24212. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24213. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24214. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24215. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24216. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24217. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24218. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24219. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24220. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24221. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24222. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24223. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24224. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24225. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24226. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24227. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24228. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24229. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24230. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24231. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24232. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24233. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24234. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24235. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24236. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24237. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24238. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24239. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24240. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24241. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24242. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24243. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24244. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24245. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24246. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24247. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24248. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24249. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24250. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24251. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24252. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24253. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24254. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24255. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24256. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24257. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24258. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24259. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24260. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24261. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24262. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24263. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24264. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24265. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24266. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24267. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24268. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24269. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24270. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24271. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24272. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24273. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24274. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24275. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24276. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24277. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24278. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24279. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24280. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24281. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24282. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24283. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24284. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24285. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24286. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24287. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24288. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24289. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24290. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24291. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24292. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24293. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24294. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24295. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24296. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24297. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24298. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24299. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24300. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24301. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24302. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24303. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24304. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24305. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24306. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24307. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24308. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24309. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24310. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24311. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24312. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24313. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24314. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24315. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24316. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24317. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24318. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24319. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24320. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24321. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24322. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24323. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24324. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24325. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24326. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24327. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24328. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24329. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24330. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24331. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24332. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24333. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24334. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24335. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24336. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24337. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24338. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24339. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24340. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24341. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24342. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24343. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24344. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24345. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24346. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24347. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24348. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24349. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24350. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24351. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24352. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24353. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24354. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24355. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24356. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24357. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24358. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24359. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24360. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24361. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24362. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24363. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24364. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24365. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24366. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24367. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24368. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24369. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24370. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24371. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24372. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24373. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24374. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24375. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24376. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24377. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24378. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24379. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24380. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24381. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24382. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24383. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24384. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24385. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24386. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24387. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24388. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24389. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24390. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24391. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24392. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24393. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24394. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24395. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24396. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24397. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24398. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24399. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24400. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24401. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24402. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24403. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24404. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24405. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24406. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24407. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24408. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24409. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24410. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24411. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24412. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24413. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24414. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24415. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24416. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24417. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24418. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24419. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24420. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24421. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24422. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24423. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24424. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24425. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24426. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24427. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24428. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24429. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24430. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24431. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24432. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24433. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24434. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24435. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24436. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24437. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24438. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24439. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24440. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24441. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24442. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24443. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24444. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24445. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24446. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24447. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24448. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24449. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24450. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24451. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24452. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24453. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24454. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24455. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24456. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24457. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24458. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24459. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24460. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24461. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24462. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24463. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24464. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24465. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24466. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24467. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24468. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24469. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24470. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24471. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24472. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24473. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24474. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24475. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24476. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24477. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24478. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24479. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24480. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24481. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24482. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24483. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24484. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24485. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24486. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24487. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24488. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24489. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24490. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24491. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24492. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24493. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24494. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24495. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24496. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24497. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24498. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24499. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24500. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24501. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24502. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24503. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24504. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24505. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24506. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24507. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24508. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24509. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24510. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24511. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24512. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24513. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24514. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24515. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24516. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24517. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24518. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24519. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24520. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24521. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24522. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24523. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24524. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24525. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24526. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24527. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24528. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24529. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24530. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24531. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24532. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24533. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24534. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24535. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24536. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24537. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24538. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24539. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24540. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24541. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24542. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24543. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24544. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24545. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24546. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24547. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24548. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24549. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24550. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24551. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24552. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24553. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24554. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24555. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24556. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24557. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24558. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24559. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24560. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24561. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24562. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24563. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24564. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24565. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24566. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24567. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24568. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24569. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24570. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24571. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24572. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24573. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24574. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24575. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24576. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24577. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24578. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24579. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24580. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24581. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24582. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24583. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24584. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24585. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24586. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24587. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24588. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24589. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24590. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24591. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24592. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24593. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24594. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24595. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24596. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24597. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24598. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24599. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24600. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24601. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24602. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24603. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24604. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24605. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24606. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24607. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24608. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24609. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24610. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24611. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24612. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24613. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24614. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24615. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24616. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24617. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24618. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24619. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24620. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24621. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24622. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24623. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24624. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24625. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24626. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24627. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24628. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24629. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24630. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24631. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24632. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24633. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24634. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24635. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24636. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24637. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24638. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24639. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24640. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24641. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24642. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24643. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24644. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24645. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24646. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24647. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24648. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24649. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24650. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24651. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24652. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24653. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24654. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24655. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24656. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24657. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24658. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24659. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24660. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24661. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24662. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24663. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24664. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24665. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24666. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24667. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24668. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24669. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24670. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24671. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24672. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24673. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24674. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24675. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24676. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24677. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24678. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24679. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24680. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24681. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24682. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24683. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24684. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24685. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24686. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24687. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24688. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24689. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24690. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24691. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24692. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24693. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24694. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24695. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24696. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24697. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24698. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24699. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24700. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24701. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24702. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24703. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24704. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24705. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24706. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24707. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24708. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24709. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24710. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24711. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24712. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24713. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24714. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24715. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24716. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24717. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24718. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24719. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24720. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24721. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24722. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24723. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24724. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24725. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24726. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24727. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24728. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24729. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24730. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24731. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24732. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24733. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24734. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24735. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24736. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24737. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24738. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24739. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24740. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24741. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24742. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24743. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24744. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24745. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24746. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24747. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24748. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24749. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24750. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24751. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24752. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24753. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24754. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24755. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24756. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24757. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24758. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24759. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24760. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24761. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24762. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  24763. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  24764. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24765. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24766. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24767. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24768. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24769. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24770. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24771. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24772. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24773. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24774. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24775. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24776. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24777. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24778. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24779. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24780. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  24781. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  24782. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24783. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24784. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24785. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24786. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24787. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24788. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24789. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24790. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24791. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24792. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24793. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24794. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24795. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24796. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24797. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24798. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  24799. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24800. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24801. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24802. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24803. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24804. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24805. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24806. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24807. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24808. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24809. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24810. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24811. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24812. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24813. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24814. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24815. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  24816. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24817. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24818. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24819. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24820. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24821. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24822. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24823. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24824. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24825. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24826. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24827. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24828. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24829. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24830. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24831. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24832. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24833. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24834. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24835. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24836. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24837. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24838. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24839. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24840. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24841. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24842. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24843. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24844. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24845. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24846. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24847. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24848. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24849. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24850. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24851. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24852. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24853. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24854. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  24855. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24856. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  24857. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  24858. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  24859. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  24860. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  24861. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  24862. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  24863. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  24864. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  24865. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  24866. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  24867. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  24868. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  24869. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  24870. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  24871. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  24872. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  24873. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  24874. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24875. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24876. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24877. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24878. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24879. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24880. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24881. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24882. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24883. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24884. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24885. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24886. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24887. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24888. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24889. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24890. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24891. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  24892. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24893. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24894. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24895. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24896. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24897. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24898. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24899. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24900. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24901. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24902. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24903. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24904. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24905. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24906. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24907. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24908. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24909. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  24910. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24911. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24912. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24913. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24914. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24915. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24916. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24917. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24918. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24919. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24920. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24921. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24922. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24923. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24924. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24925. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24926. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  24927. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24928. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24929. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24930. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24931. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24932. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24933. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24934. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24935. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24936. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24937. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24938. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24939. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24940. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24941. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24942. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24943. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  24944. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24945. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24946. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24947. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24948. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24949. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24950. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24951. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24952. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24953. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24954. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24955. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24956. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24957. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24958. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24959. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24960. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  24961. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24962. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24963. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24964. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24965. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24966. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24967. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24968. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24969. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24970. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24971. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24972. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24973. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24974. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24975. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24976. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24977. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  24978. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24979. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24980. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24981. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24982. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24983. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  24984. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24985. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24986. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24987. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  24988. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24989. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24990. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24991. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24992. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24993. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24994. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24995. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  24996. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24997. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24998. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24999. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25000. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25001. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25002. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25003. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25004. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25005. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25006. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25007. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25008. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25009. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25010. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25011. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25012. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25013. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25014. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25015. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25016. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25017. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25018. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25019. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25020. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25021. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25022. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25023. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25024. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25025. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25026. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25027. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25028. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25029. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25030. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25031. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25032. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25033. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25034. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25035. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25036. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25037. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25038. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25039. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25040. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25041. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25042. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25043. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25044. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25045. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25046. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25047. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25048. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25049. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25050. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25051. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25052. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25053. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25054. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25055. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25056. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25057. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25058. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25059. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25060. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25061. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25062. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25063. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25064. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25065. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25066. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25067. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25068. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25069. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25070. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25071. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25072. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25073. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25074. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25075. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25076. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25077. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25078. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25079. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25080. {"HDMI", NULL, "HDMI_DL_HL"},
  25081. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25082. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25083. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25084. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25085. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25086. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25087. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25088. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25089. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25090. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25091. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25092. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25093. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25094. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25095. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25096. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25097. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25098. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25099. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25100. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25101. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25102. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25103. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25104. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25105. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25106. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25107. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25108. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25109. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25110. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25111. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25112. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25113. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25114. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25115. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25116. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25117. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25118. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25119. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25120. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25121. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25122. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25123. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25124. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25125. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25126. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25127. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25128. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25129. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25130. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25131. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25132. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25133. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25134. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25135. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25136. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25137. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25138. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25139. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25140. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25141. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25142. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25143. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25144. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25145. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25146. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25147. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25148. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25149. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25150. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25151. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25152. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25153. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25154. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25155. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25156. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25157. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25158. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25159. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25160. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25161. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25162. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25163. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25164. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25165. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25166. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25167. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25168. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25169. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25170. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25171. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25172. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25173. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25174. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25175. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25176. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25177. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25178. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25179. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25180. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25181. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25182. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25183. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25184. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25185. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25186. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25187. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25188. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25189. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25190. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25191. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25192. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25193. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25194. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25195. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25196. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25197. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25198. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25199. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25200. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25201. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25202. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25203. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25204. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25205. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25206. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25207. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25208. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25209. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25210. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25211. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25212. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25213. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25214. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25215. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25216. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25217. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25218. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25219. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25220. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25221. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25222. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25223. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25224. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25225. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25226. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25227. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25228. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25229. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25230. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25231. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25232. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25233. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25234. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25235. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25236. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25237. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25238. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25239. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25240. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25241. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25242. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25243. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25244. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25245. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25246. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25247. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25248. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25249. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25250. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25251. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25252. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25253. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25254. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25255. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25256. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25257. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25258. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25259. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25260. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25261. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25262. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25263. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25264. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25265. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25266. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25267. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25268. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25269. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25270. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25271. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25272. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25273. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25274. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25275. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  25276. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  25277. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  25278. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  25279. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  25280. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  25281. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  25282. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  25283. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  25284. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  25285. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  25286. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  25287. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  25288. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  25289. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  25290. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  25291. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  25292. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  25293. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  25294. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  25295. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  25296. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  25297. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  25298. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  25299. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  25300. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  25301. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  25302. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  25303. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  25304. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  25305. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  25306. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  25307. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  25308. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  25309. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  25310. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  25311. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  25312. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  25313. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  25314. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  25315. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  25316. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  25317. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  25318. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  25319. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  25320. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  25321. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  25322. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  25323. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  25324. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  25325. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  25326. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  25327. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  25328. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  25329. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  25330. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  25331. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  25332. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  25333. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  25334. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  25335. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  25336. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  25337. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  25338. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  25339. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  25340. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  25341. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  25342. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  25343. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  25344. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  25345. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  25346. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  25347. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  25348. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  25349. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  25350. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  25351. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  25352. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  25353. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  25354. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  25355. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  25356. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  25357. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  25358. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  25359. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  25360. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  25361. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  25362. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  25363. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  25364. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  25365. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  25366. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  25367. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  25368. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  25369. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  25370. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  25371. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  25372. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  25373. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  25374. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  25375. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  25376. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  25377. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  25378. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  25379. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  25380. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  25381. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  25382. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  25383. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  25384. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25385. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  25386. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  25387. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25388. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25389. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  25390. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25391. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25392. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25393. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25394. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25395. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25396. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25397. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25398. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25399. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25400. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25401. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25402. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25403. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  25404. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25405. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25406. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25407. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25408. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25409. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25410. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25411. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25412. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25413. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25414. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25415. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25416. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25417. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  25418. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25419. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25420. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25421. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25422. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25423. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25424. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25425. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25426. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25427. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25428. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25429. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25430. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25431. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  25432. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25433. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25434. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25435. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25436. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25437. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25438. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25439. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25440. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25441. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25442. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25443. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25444. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25445. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25446. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25447. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25448. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25449. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25450. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25451. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25452. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25453. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25454. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25455. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25456. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25457. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25458. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25459. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25460. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25461. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25462. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25463. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25464. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25465. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25466. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25467. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25468. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25469. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25470. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25471. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  25472. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25473. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25474. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25475. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25476. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25477. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25478. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25479. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25480. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25481. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25482. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25483. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  25484. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25485. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25486. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25487. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25488. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25489. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25490. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25491. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25492. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25493. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25494. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25495. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  25496. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  25497. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  25498. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  25499. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  25500. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  25501. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  25502. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  25503. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  25504. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  25505. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  25506. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  25507. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  25508. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  25509. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  25510. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  25511. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  25512. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  25513. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  25514. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  25515. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  25516. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  25517. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  25518. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  25519. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  25520. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  25521. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  25522. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  25523. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  25524. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  25525. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  25526. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  25527. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  25528. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  25529. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  25530. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  25531. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  25532. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  25533. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  25534. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  25535. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  25536. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  25537. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  25538. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  25539. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  25540. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  25541. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  25542. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  25543. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  25544. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  25545. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  25546. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  25547. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  25548. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  25549. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  25550. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  25551. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  25552. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  25553. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  25554. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  25555. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  25556. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  25557. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  25558. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  25559. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  25560. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  25561. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  25562. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  25563. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  25564. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  25565. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  25566. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  25567. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  25568. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  25569. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  25570. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  25571. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  25572. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  25573. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  25574. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  25575. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  25576. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  25577. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  25578. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  25579. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  25580. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  25581. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  25582. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  25583. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  25584. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  25585. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  25586. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  25587. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  25588. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  25589. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  25590. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  25591. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  25592. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  25593. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  25594. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  25595. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  25596. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  25597. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  25598. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  25599. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  25600. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  25601. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  25602. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  25603. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  25604. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  25605. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  25606. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  25607. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  25608. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  25609. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  25610. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  25611. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  25612. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  25613. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  25614. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  25615. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  25616. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  25617. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25618. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25619. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25620. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25621. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25622. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25623. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25624. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25625. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25626. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25627. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25628. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25629. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25630. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25631. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25632. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25633. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25634. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25635. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25636. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25637. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25638. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25639. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25640. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25641. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  25642. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25643. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25644. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25645. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25646. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25647. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25648. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25649. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25650. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25651. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25652. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25653. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25654. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25655. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25656. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25657. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25658. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25659. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25660. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25661. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25662. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25663. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25664. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25665. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25666. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  25667. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25668. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25669. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25670. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25671. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25672. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25673. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25674. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25675. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25676. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25677. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25678. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25679. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25680. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25681. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25682. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25683. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25684. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25685. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25686. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25687. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25688. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25689. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25690. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25691. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  25692. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25693. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25694. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25695. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25696. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25697. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25698. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25699. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25700. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25701. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25702. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25703. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25704. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25705. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25706. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25707. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25708. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25709. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25710. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25711. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25712. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25713. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25714. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25715. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25716. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  25717. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25718. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25719. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25720. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25721. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25722. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25723. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25724. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25725. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25726. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25727. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25728. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25729. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25730. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25731. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25732. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25733. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25734. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25735. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25736. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25737. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25738. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25739. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25740. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25741. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  25742. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25743. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25744. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25745. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25746. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25747. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25748. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25749. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25750. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25751. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25752. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25753. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25754. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25755. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25756. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25757. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25758. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25759. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25760. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25761. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25762. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25763. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25764. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25765. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25766. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  25767. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25768. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25769. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25770. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25771. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25772. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25773. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25774. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25775. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25776. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25777. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25778. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25779. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25780. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25781. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25782. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25783. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25784. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25785. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25786. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25787. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25788. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25789. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25790. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25791. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  25792. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25793. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25794. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25795. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25796. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25797. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25798. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25799. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25800. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25801. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25802. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25803. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25804. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25805. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25806. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25807. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25808. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25809. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25810. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25811. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25812. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25813. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25814. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25815. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25816. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  25817. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  25818. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  25819. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25820. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25821. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25822. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25823. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25824. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25825. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25826. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25827. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25828. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25829. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25830. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25831. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25832. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25833. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25834. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25835. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25836. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25837. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25838. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25839. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25840. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25841. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25842. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25843. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  25844. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25845. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25846. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25847. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25848. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25849. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25850. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25851. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25852. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25853. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25854. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25855. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25856. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25857. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25858. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25859. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25860. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25861. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25862. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25863. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25864. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25865. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25866. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25867. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25868. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  25869. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25870. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25871. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25872. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25873. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25874. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25875. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25876. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25877. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25878. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25879. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25880. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25881. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25882. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25883. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25884. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25885. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25886. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25887. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25888. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25889. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25890. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25891. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25892. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25893. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  25894. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25895. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25896. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25897. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25898. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25899. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25900. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25901. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25902. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25903. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25904. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25905. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25906. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25907. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25908. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25909. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25910. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25911. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25912. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25913. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25914. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25915. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25916. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25917. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25918. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  25919. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25920. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25921. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25922. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25923. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25924. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25925. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25926. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25927. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25928. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25929. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25930. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25931. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25932. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25933. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25934. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25935. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25936. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25937. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25938. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25939. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25940. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25941. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25942. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25943. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  25944. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25945. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25946. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25947. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25948. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25949. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25950. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25951. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25952. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25953. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25954. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25955. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25956. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25957. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25958. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25959. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25960. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25961. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25962. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25963. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25964. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25965. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25966. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25967. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25968. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  25969. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25970. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25971. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25972. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25973. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25974. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25975. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25976. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25977. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25978. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25979. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25980. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25981. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25982. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25983. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25984. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25985. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25986. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25987. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25988. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25989. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25990. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25991. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25992. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25993. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  25994. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25995. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25996. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25997. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25998. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25999. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26000. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26001. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26002. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26003. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26004. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26005. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26006. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26007. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26008. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26009. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26010. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26011. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26012. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26013. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26014. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26015. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26016. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26017. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26018. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26019. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26020. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26021. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26022. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26023. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26024. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26025. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26026. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26027. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26028. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26029. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26030. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26031. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26032. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26033. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26034. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26035. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26036. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26037. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26038. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26039. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26040. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26041. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26042. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26043. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26044. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26045. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26046. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26047. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26048. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26049. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26050. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26051. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26052. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26053. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26054. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26055. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26056. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26057. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26058. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26059. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26060. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26061. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26062. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26063. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26064. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26065. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26066. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26067. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26068. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26069. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26070. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26071. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26072. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26073. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26074. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26075. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26076. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26077. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26078. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26079. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26080. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26081. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26082. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26083. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26084. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26085. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26086. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26087. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26088. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26089. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26090. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26091. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26092. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26093. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26094. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26095. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26096. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26097. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26098. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26099. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26100. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26101. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26102. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26103. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26104. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26105. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26106. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26107. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26108. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26109. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26110. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26111. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26112. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26113. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26114. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26115. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26116. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26117. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26118. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26119. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26120. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26121. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26122. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26123. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26124. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26125. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26126. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26127. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26128. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26129. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26130. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26131. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26132. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26133. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26134. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26135. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26136. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26137. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26138. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26139. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26140. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26141. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26142. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26143. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26144. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26145. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26146. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26147. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26148. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26149. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26150. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26151. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26152. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26153. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26154. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26155. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26156. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26157. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26158. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26159. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26160. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26161. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26162. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26163. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26164. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26165. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26166. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26167. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26168. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26169. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26170. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26171. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26172. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26173. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26174. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26175. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26176. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26177. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26178. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26179. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26180. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26181. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26182. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26183. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26184. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26185. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26186. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26187. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26188. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26189. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26190. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26191. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26192. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26193. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26194. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26195. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26196. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26197. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26198. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26199. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26200. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26201. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26202. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26203. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26204. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26205. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26206. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26207. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26208. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26209. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26210. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26211. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26212. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26213. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26214. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26215. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26216. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26217. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26218. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26219. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26220. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26221. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26222. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26223. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26224. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26225. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26226. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26227. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26228. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26229. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26230. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26231. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26232. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26233. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26234. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26235. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26236. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26237. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26238. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26239. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26240. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26241. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26242. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26243. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26244. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26245. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26246. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26247. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26248. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26249. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26250. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26251. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26252. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26253. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26254. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26255. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26256. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26257. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26258. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26259. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26260. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26261. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26262. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26263. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26264. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26265. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26266. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26267. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26268. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26269. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26270. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26271. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26272. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26273. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26274. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26275. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26276. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26277. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26278. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26279. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26280. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26281. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26282. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26283. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26284. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26285. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26286. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26287. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26288. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26289. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26290. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26291. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26292. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26293. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26294. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26295. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26296. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26297. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26298. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26299. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26300. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26301. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26302. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26303. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26304. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26305. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26306. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26307. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26308. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26309. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  26310. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26311. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26312. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26313. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26314. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26315. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26316. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26317. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26318. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26319. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26320. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26321. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26322. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26323. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26324. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26325. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26326. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26327. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26328. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26329. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26330. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26331. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26332. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26333. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26334. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26335. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26336. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26337. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26338. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26339. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26340. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26341. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26342. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26343. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26344. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26345. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26346. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26347. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26348. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26349. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26350. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26351. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26352. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26353. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26354. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26355. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26356. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26357. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26358. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26359. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26360. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26361. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26362. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26363. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26364. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26365. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26366. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26367. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26368. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26369. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26370. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26371. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26372. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26373. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26374. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26375. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26376. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26377. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26378. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26379. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26380. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26381. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26382. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26383. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26384. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26385. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26386. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26387. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26388. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26389. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26390. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26391. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26392. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26393. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26394. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26395. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26396. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26397. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  26398. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26399. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26400. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  26401. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26402. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26403. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  26404. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26405. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26406. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26407. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26408. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26409. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26410. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26411. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26412. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26413. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26414. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26415. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  26416. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26417. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26418. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26419. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26420. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26421. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26422. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26423. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26424. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26425. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26426. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  26427. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26428. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26429. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26430. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26431. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26432. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26433. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26434. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26435. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  26436. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26437. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26438. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26439. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26440. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26441. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26442. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26443. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26444. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26445. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26446. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  26447. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26448. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26449. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26450. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26451. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26452. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26453. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26454. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26455. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26456. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26457. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26458. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26459. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26460. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26461. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26462. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26463. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26464. /* Backend Enablement */
  26465. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26466. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26467. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26468. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26469. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26470. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26471. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26472. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26473. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26474. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26475. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26476. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26477. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26478. {"BE_OUT", NULL, "HDMI"},
  26479. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26480. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26481. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26482. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  26483. {"BE_OUT", NULL, "MI2S_RX"},
  26484. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  26485. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  26486. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  26487. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  26488. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  26489. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  26490. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  26491. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  26492. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  26493. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  26494. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  26495. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  26496. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26497. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  26498. {"BE_OUT", NULL, "INT_FM_RX"},
  26499. {"BE_OUT", NULL, "PCM_RX"},
  26500. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26501. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26502. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  26503. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  26504. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  26505. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  26506. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  26507. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26508. {"BE_OUT", NULL, "INT_FM_RX"},
  26509. {"BE_OUT", NULL, "PCM_RX"},
  26510. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26511. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  26512. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  26513. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  26514. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  26515. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  26516. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  26517. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  26518. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  26519. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  26520. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  26521. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  26522. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  26523. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  26524. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  26525. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  26526. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  26527. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  26528. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  26529. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  26530. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  26531. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  26532. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  26533. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  26534. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  26535. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  26536. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  26537. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  26538. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  26539. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  26540. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  26541. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  26542. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  26543. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  26544. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  26545. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  26546. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  26547. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  26548. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  26549. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  26550. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  26551. {"PRI_I2S_TX", NULL, "BE_IN"},
  26552. {"MI2S_TX", NULL, "BE_IN"},
  26553. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  26554. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  26555. {"PRI_MI2S_TX", NULL, "BE_IN"},
  26556. {"TERT_MI2S_TX", NULL, "BE_IN"},
  26557. {"INT0_MI2S_TX", NULL, "BE_IN"},
  26558. {"INT2_MI2S_TX", NULL, "BE_IN"},
  26559. {"INT3_MI2S_TX", NULL, "BE_IN"},
  26560. {"INT4_MI2S_TX", NULL, "BE_IN"},
  26561. {"INT5_MI2S_TX", NULL, "BE_IN"},
  26562. {"SEC_MI2S_TX", NULL, "BE_IN"},
  26563. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  26564. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  26565. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  26566. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  26567. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  26568. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  26569. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  26570. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  26571. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  26572. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  26573. {"USB_AUDIO_TX", NULL, "BE_IN" },
  26574. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  26575. {"INT_FM_TX", NULL, "BE_IN"},
  26576. {"PCM_TX", NULL, "BE_IN"},
  26577. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26578. {"BE_OUT", NULL, "STUB_RX"},
  26579. {"STUB_TX", NULL, "BE_IN"},
  26580. {"STUB_1_TX", NULL, "BE_IN"},
  26581. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26582. {"AUX_PCM_TX", NULL, "BE_IN"},
  26583. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  26584. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  26585. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  26586. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  26587. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  26588. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  26589. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  26590. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26591. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26592. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26593. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26594. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  26595. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  26596. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  26597. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  26598. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  26599. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  26600. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  26601. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  26602. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  26603. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  26604. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  26605. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  26606. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  26607. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  26608. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  26609. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  26610. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  26611. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  26612. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  26613. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  26614. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  26615. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  26616. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  26617. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  26618. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  26619. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  26620. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  26621. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  26622. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  26623. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  26624. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  26625. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  26626. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  26627. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  26628. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  26629. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  26630. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  26631. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  26632. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26633. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26634. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26635. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26636. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26637. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26638. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  26639. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  26640. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  26641. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  26642. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  26643. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  26644. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  26645. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  26646. };
  26647. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  26648. struct snd_pcm_hw_params *params)
  26649. {
  26650. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26651. unsigned int be_id = rtd->dai_link->id;
  26652. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26653. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26654. return -EINVAL;
  26655. }
  26656. mutex_lock(&routing_lock);
  26657. msm_bedais[be_id].sample_rate = params_rate(params);
  26658. msm_bedais[be_id].channel = params_channels(params);
  26659. msm_bedais[be_id].format = params_format(params);
  26660. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  26661. __func__, msm_bedais[be_id].sample_rate,
  26662. msm_bedais[be_id].format, be_id);
  26663. mutex_unlock(&routing_lock);
  26664. return 0;
  26665. }
  26666. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  26667. {
  26668. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26669. unsigned int be_id = rtd->dai_link->id;
  26670. int i, session_type, path_type, topology;
  26671. struct msm_pcm_routing_bdai_data *bedai;
  26672. struct msm_pcm_routing_fdai_data *fdai;
  26673. pr_debug("%s: substream->pcm->id:%s\n",
  26674. __func__, substream->pcm->id);
  26675. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26676. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26677. return -EINVAL;
  26678. }
  26679. bedai = &msm_bedais[be_id];
  26680. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  26681. 0 : 1);
  26682. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  26683. path_type = ADM_PATH_PLAYBACK;
  26684. else
  26685. path_type = ADM_PATH_LIVE_REC;
  26686. mutex_lock(&routing_lock);
  26687. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26688. if (!is_mm_lsm_fe_id(i))
  26689. continue;
  26690. fdai = &fe_dai_map[i][session_type];
  26691. if (fdai->strm_id != INVALID_SESSION) {
  26692. int idx;
  26693. int port_id;
  26694. unsigned long copp =
  26695. session_copp_map[i][session_type][be_id];
  26696. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  26697. if (test_bit(idx, &copp))
  26698. break;
  26699. if (idx >= MAX_COPPS_PER_PORT) {
  26700. pr_debug("%s: copp idx is invalid, exiting\n",
  26701. __func__);
  26702. continue;
  26703. }
  26704. fdai->be_srate = bedai->sample_rate;
  26705. port_id = get_port_id(bedai->port_id);
  26706. topology = adm_get_topology_for_port_copp_idx(port_id,
  26707. idx);
  26708. msm_routing_unload_topology(topology);
  26709. adm_close(port_id, fdai->perf_mode, idx);
  26710. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  26711. __func__, copp, i, session_type, be_id,
  26712. topology);
  26713. clear_bit(idx,
  26714. &session_copp_map[i][session_type][be_id]);
  26715. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  26716. (fdai->passthr_mode == LEGACY_PCM))
  26717. msm_pcm_routing_deinit_pp(port_id,
  26718. topology);
  26719. }
  26720. }
  26721. bedai->active = 0;
  26722. bedai->sample_rate = 0;
  26723. bedai->channel = 0;
  26724. mutex_unlock(&routing_lock);
  26725. return 0;
  26726. }
  26727. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  26728. {
  26729. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26730. unsigned int be_id = rtd->dai_link->id;
  26731. int i, path_type, topology;
  26732. int session_type = INVALID_SESSION;
  26733. struct msm_pcm_routing_bdai_data *bedai;
  26734. u32 channels, sample_rate;
  26735. uint16_t bits_per_sample = 16, voc_path_type;
  26736. struct msm_pcm_routing_fdai_data *fdai;
  26737. u32 session_id;
  26738. struct media_format_info voc_be_media_format;
  26739. bool is_lsm;
  26740. pr_debug("%s: substream->pcm->id:%s\n",
  26741. __func__, substream->pcm->id);
  26742. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26743. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26744. return -EINVAL;
  26745. }
  26746. bedai = &msm_bedais[be_id];
  26747. mutex_lock(&routing_lock);
  26748. if (bedai->active == 1)
  26749. goto done; /* Ignore prepare if back-end already active */
  26750. /* AFE port is not active at this point. However, still
  26751. * go ahead setting active flag under the notion that
  26752. * QDSP6 is able to handle ADM starting before AFE port
  26753. * is started.
  26754. */
  26755. bedai->active = 1;
  26756. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26757. if (!(is_mm_lsm_fe_id(i) &&
  26758. route_check_fe_id_adm_support(i)))
  26759. continue;
  26760. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  26761. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26762. fdai = &fe_dai_map[i][session_type];
  26763. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  26764. if (fdai->passthr_mode != LEGACY_PCM)
  26765. path_type = ADM_PATH_COMPRESSED_RX;
  26766. else
  26767. path_type = ADM_PATH_PLAYBACK;
  26768. } else {
  26769. if ((fdai->passthr_mode != LEGACY_PCM) &&
  26770. (fdai->passthr_mode != LISTEN))
  26771. path_type = ADM_PATH_COMPRESSED_TX;
  26772. else
  26773. path_type = ADM_PATH_LIVE_REC;
  26774. }
  26775. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  26776. (i <= MSM_FRONTEND_DAI_LSM8);
  26777. if (fdai->strm_id != INVALID_SESSION) {
  26778. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  26779. int port_id = get_port_id(bedai->port_id);
  26780. if (session_type == SESSION_TYPE_TX &&
  26781. fdai->be_srate &&
  26782. (fdai->be_srate != bedai->sample_rate)) {
  26783. pr_debug("%s: flush strm %d diff BE rates\n",
  26784. __func__,
  26785. fdai->strm_id);
  26786. if (fdai->event_info.event_func)
  26787. fdai->event_info.event_func(
  26788. MSM_PCM_RT_EVT_BUF_RECFG,
  26789. fdai->event_info.priv_data);
  26790. fdai->be_srate = 0; /* might not need it */
  26791. }
  26792. bits_per_sample = msm_routing_get_bit_width(
  26793. bedai->format);
  26794. app_type =
  26795. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  26796. if (app_type && is_lsm) {
  26797. app_type_idx =
  26798. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  26799. sample_rate =
  26800. fe_dai_app_type_cfg[i][session_type][be_id]
  26801. .sample_rate;
  26802. bits_per_sample =
  26803. lsm_app_type_cfg[app_type_idx].bit_width;
  26804. } else if (app_type) {
  26805. app_type_idx =
  26806. msm_pcm_routing_get_app_type_idx(app_type);
  26807. sample_rate =
  26808. fe_dai_app_type_cfg[i][session_type]
  26809. [be_id].sample_rate;
  26810. bits_per_sample =
  26811. app_type_cfg[app_type_idx].bit_width;
  26812. } else
  26813. sample_rate = bedai->sample_rate;
  26814. /*
  26815. * check if ADM needs to be configured with different
  26816. * channel mapping than backend
  26817. */
  26818. if (!bedai->adm_override_ch)
  26819. channels = bedai->channel;
  26820. else
  26821. channels = bedai->adm_override_ch;
  26822. acdb_dev_id =
  26823. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  26824. topology = msm_routing_get_adm_topology(i, session_type,
  26825. be_id);
  26826. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  26827. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  26828. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  26829. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  26830. copp_idx = adm_open(port_id, path_type,
  26831. sample_rate, channels, topology,
  26832. fdai->perf_mode, bits_per_sample,
  26833. app_type, acdb_dev_id,
  26834. session_type);
  26835. if ((copp_idx < 0) ||
  26836. (copp_idx >= MAX_COPPS_PER_PORT)) {
  26837. pr_err("%s: adm open failed\n", __func__);
  26838. mutex_unlock(&routing_lock);
  26839. return -EINVAL;
  26840. }
  26841. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  26842. __func__, i, session_type, be_id);
  26843. set_bit(copp_idx,
  26844. &session_copp_map[i][session_type][be_id]);
  26845. if (msm_is_resample_needed(
  26846. sample_rate,
  26847. bedai->sample_rate))
  26848. adm_copp_mfc_cfg(port_id, copp_idx,
  26849. bedai->sample_rate);
  26850. msm_pcm_routing_build_matrix(i, session_type, path_type,
  26851. fdai->perf_mode, fdai->passthr_mode);
  26852. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  26853. (fdai->passthr_mode == LEGACY_PCM))
  26854. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  26855. topology, channels);
  26856. }
  26857. }
  26858. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26859. session_id = msm_pcm_routing_get_voc_sessionid(i);
  26860. if (session_id) {
  26861. pr_debug("%s voice session_id: 0x%x\n", __func__,
  26862. session_id);
  26863. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  26864. voc_path_type = RX_PATH;
  26865. else
  26866. voc_path_type = TX_PATH;
  26867. voc_set_route_flag(session_id, voc_path_type, 1);
  26868. memset(&voc_be_media_format, 0,
  26869. sizeof(struct media_format_info));
  26870. voc_be_media_format.port_id = bedai->port_id;
  26871. voc_be_media_format.num_channels = bedai->channel;
  26872. voc_be_media_format.sample_rate = bedai->sample_rate;
  26873. voc_be_media_format.bits_per_sample = bedai->format;
  26874. /* Defaulting this to 1 for voice call usecases */
  26875. voc_be_media_format.channel_mapping[0] = 1;
  26876. voc_set_device_config(session_id, voc_path_type,
  26877. &voc_be_media_format);
  26878. if (voc_get_route_flag(session_id, RX_PATH) &&
  26879. voc_get_route_flag(session_id, TX_PATH))
  26880. voc_enable_device(session_id);
  26881. }
  26882. }
  26883. /* Check if backend is an external ec ref port and set as needed */
  26884. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  26885. memset(&voc_be_media_format, 0,
  26886. sizeof(struct media_format_info));
  26887. /* Get format info for ec ref port from msm_bedais[] */
  26888. voc_be_media_format.port_id = bedai->port_id;
  26889. voc_be_media_format.num_channels = bedai->channel;
  26890. voc_be_media_format.bits_per_sample = bedai->format;
  26891. voc_be_media_format.sample_rate = bedai->sample_rate;
  26892. /* Defaulting this to 1 for voice call usecases */
  26893. voc_be_media_format.channel_mapping[0] = 1;
  26894. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  26895. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  26896. __func__, voc_be_media_format.port_id,
  26897. voc_be_media_format.num_channels,
  26898. voc_be_media_format.bits_per_sample,
  26899. voc_be_media_format.sample_rate);
  26900. }
  26901. done:
  26902. mutex_unlock(&routing_lock);
  26903. return 0;
  26904. }
  26905. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  26906. int fe_id)
  26907. {
  26908. int index, topo_id, be_idx;
  26909. unsigned long pp_config = 0;
  26910. bool mute_on;
  26911. int latency, session_type;
  26912. bool compr_passthr_mode = true;
  26913. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  26914. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  26915. pr_err("%s: Device pp params on invalid port %d\n",
  26916. __func__, port_id);
  26917. return -EINVAL;
  26918. }
  26919. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  26920. if (port_id == msm_bedais[be_idx].port_id)
  26921. break;
  26922. }
  26923. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  26924. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  26925. return -EINVAL;
  26926. }
  26927. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  26928. if (msm_bedais_pp_params[index].port_id == port_id)
  26929. break;
  26930. }
  26931. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  26932. pr_err("%s: Invalid backend pp params index %d\n",
  26933. __func__, index);
  26934. return -EINVAL;
  26935. }
  26936. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  26937. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  26938. pr_err("%s: Invalid passthrough topology 0x%x\n",
  26939. __func__, topo_id);
  26940. return -EINVAL;
  26941. }
  26942. session_type =
  26943. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  26944. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26945. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  26946. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  26947. compr_passthr_mode = false;
  26948. pp_config = msm_bedais_pp_params[index].pp_params_config;
  26949. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  26950. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  26951. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  26952. mute_on = msm_bedais_pp_params[index].mute_on;
  26953. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26954. adm_send_compressed_device_mute(port_id,
  26955. copp_idx,
  26956. mute_on);
  26957. }
  26958. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  26959. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  26960. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  26961. &pp_config);
  26962. latency = msm_bedais_pp_params[index].latency;
  26963. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26964. adm_send_compressed_device_latency(port_id,
  26965. copp_idx,
  26966. latency);
  26967. }
  26968. return 0;
  26969. }
  26970. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  26971. {
  26972. uint32_t topology = NULL_COPP_TOPOLOGY;
  26973. void *cal_info = NULL;
  26974. uint32_t size = 0;
  26975. /* Retrieve cal_info size from cal data*/
  26976. if (data_size < sizeof(struct audio_cal_type_basic) +
  26977. sizeof(struct audio_cal_info_adm_top)) {
  26978. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  26979. goto done;
  26980. }
  26981. size = data_size - sizeof(struct audio_cal_type_basic);
  26982. cal_info = kzalloc(size, GFP_KERNEL);
  26983. if (!cal_info)
  26984. goto done;
  26985. memcpy(cal_info,
  26986. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  26987. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  26988. kfree(cal_info);
  26989. cal_info = NULL;
  26990. done:
  26991. pr_debug("%s: Using topology %d\n", __func__, topology);
  26992. return topology;
  26993. }
  26994. static void msm_routing_load_topology(size_t data_size, void *data)
  26995. {
  26996. uint32_t topology_id;
  26997. int ret = -EINVAL;
  26998. topology_id = msm_routing_get_topology(data_size, data);
  26999. if (topology_id != NULL_COPP_TOPOLOGY)
  27000. ret = q6core_load_unload_topo_modules(topology_id,
  27001. CORE_LOAD_TOPOLOGY);
  27002. if (ret < 0)
  27003. pr_debug("%s %d load topology failed\n",
  27004. __func__, topology_id);
  27005. }
  27006. static void msm_routing_unload_topology(uint32_t topology_id)
  27007. {
  27008. int ret = -EINVAL;
  27009. if (topology_id != NULL_COPP_TOPOLOGY)
  27010. ret = q6core_load_unload_topo_modules(topology_id,
  27011. CORE_UNLOAD_TOPOLOGY);
  27012. if (ret < 0)
  27013. pr_debug("%s %d unload topology failed\n",
  27014. __func__, topology_id);
  27015. }
  27016. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27017. struct snd_ctl_elem_value *ucontrol)
  27018. {
  27019. int pp_id = ucontrol->value.integer.value[0];
  27020. int port_id = 0;
  27021. int index, be_idx, i, topo_id, idx;
  27022. bool mute;
  27023. int latency, session_type;
  27024. bool compr_passthr_mode = true;
  27025. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27026. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27027. port_id = msm_bedais[be_idx].port_id;
  27028. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27029. break;
  27030. }
  27031. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27032. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27033. return -EINVAL;
  27034. }
  27035. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27036. if (msm_bedais_pp_params[index].port_id == port_id)
  27037. break;
  27038. }
  27039. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27040. pr_err("%s: Invalid pp params backend index %d\n",
  27041. __func__, index);
  27042. return -EINVAL;
  27043. }
  27044. session_type =
  27045. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27046. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27047. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27048. MSM_FRONTEND_DAI_MM_SIZE) {
  27049. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27050. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27051. compr_passthr_mode = false;
  27052. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27053. unsigned long copp =
  27054. session_copp_map[i]
  27055. [SESSION_TYPE_RX][be_idx];
  27056. if (!test_bit(idx, &copp))
  27057. continue;
  27058. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27059. idx);
  27060. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27061. continue;
  27062. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27063. __func__, port_id, copp, msm_bedais[be_idx].active,
  27064. fe_dai_map[i][session_type].passthr_mode);
  27065. switch (pp_id) {
  27066. case ADM_PP_PARAM_MUTE_ID:
  27067. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27068. mute = ucontrol->value.integer.value[1] ? true : false;
  27069. msm_bedais_pp_params[index].mute_on = mute;
  27070. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27071. &msm_bedais_pp_params[index].pp_params_config);
  27072. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27073. adm_send_compressed_device_mute(port_id,
  27074. idx, mute);
  27075. break;
  27076. case ADM_PP_PARAM_LATENCY_ID:
  27077. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27078. msm_bedais_pp_params[index].latency =
  27079. ucontrol->value.integer.value[1];
  27080. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27081. &msm_bedais_pp_params[index].pp_params_config);
  27082. latency = msm_bedais_pp_params[index].latency =
  27083. ucontrol->value.integer.value[1];
  27084. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27085. adm_send_compressed_device_latency(port_id,
  27086. idx, latency);
  27087. break;
  27088. default:
  27089. pr_info("%s, device pp param %d not supported\n",
  27090. __func__, pp_id);
  27091. break;
  27092. }
  27093. }
  27094. }
  27095. return 0;
  27096. }
  27097. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27098. struct snd_ctl_elem_value *ucontrol)
  27099. {
  27100. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27101. return 0;
  27102. }
  27103. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27104. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27105. 0, 3, msm_routing_get_device_pp_params_mixer,
  27106. msm_routing_put_device_pp_params_mixer),
  27107. };
  27108. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27109. struct snd_ctl_elem_value *ucontrol)
  27110. {
  27111. ucontrol->value.integer.value[0] =
  27112. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27113. pr_debug("%s: status %ld\n", __func__,
  27114. ucontrol->value.integer.value[0]);
  27115. return 0;
  27116. }
  27117. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27118. struct snd_ctl_elem_value *ucontrol)
  27119. {
  27120. int32_t status = 0;
  27121. status = core_set_license(ucontrol->value.integer.value[0],
  27122. APTX_CLASSIC_DEC_LICENSE_ID);
  27123. pr_debug("%s: status %d\n", __func__, status);
  27124. return status;
  27125. }
  27126. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27127. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27128. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27129. msm_aptx_dec_license_control_put),
  27130. };
  27131. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27132. struct snd_ctl_elem_value *ucontrol)
  27133. {
  27134. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27135. uint32_t be_idx = ucontrol->value.integer.value[0];
  27136. int i;
  27137. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27138. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27139. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27140. pr_err("%s: Invalid channel map %d\n",
  27141. __func__, channel_map[i]);
  27142. return -EINVAL;
  27143. }
  27144. }
  27145. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27146. return 0;
  27147. }
  27148. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27149. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27150. MSM_BACKEND_DAI_MAX, 0,
  27151. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27152. msm_routing_put_port_chmap_mixer),
  27153. };
  27154. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27155. struct snd_ctl_elem_info *uinfo)
  27156. {
  27157. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27158. uinfo->count = sizeof(be_dai_name_table);
  27159. return 0;
  27160. }
  27161. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27162. unsigned int __user *bytes,
  27163. unsigned int size)
  27164. {
  27165. int i;
  27166. int ret = 0;
  27167. if (size < sizeof(be_dai_name_table)) {
  27168. pr_err("%s: invalid size %d requested, returning\n",
  27169. __func__, size);
  27170. ret = -EINVAL;
  27171. goto done;
  27172. }
  27173. /*
  27174. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27175. * needed when adding new backends
  27176. */
  27177. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27178. be_dai_name_table[i].be_id = i;
  27179. strlcpy(be_dai_name_table[i].be_name,
  27180. msm_bedais[i].name,
  27181. LPASS_BE_NAME_MAX_LENGTH);
  27182. }
  27183. ret = copy_to_user(bytes, &be_dai_name_table,
  27184. sizeof(be_dai_name_table));
  27185. if (ret) {
  27186. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27187. ret = -EFAULT;
  27188. }
  27189. done:
  27190. return ret;
  27191. }
  27192. static const struct snd_kcontrol_new
  27193. msm_routing_be_dai_name_table_mixer_controls[] = {
  27194. {
  27195. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27196. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27197. .info = msm_routing_be_dai_name_table_info,
  27198. .name = "Backend DAI Name Table",
  27199. .tlv.c = snd_soc_bytes_tlv_callback,
  27200. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27201. .max = sizeof(be_dai_name_table),
  27202. .get = msm_routing_be_dai_name_table_tlv_get,
  27203. }
  27204. },
  27205. };
  27206. static int msm_routing_stereo_channel_reverse_control_get(
  27207. struct snd_kcontrol *kcontrol,
  27208. struct snd_ctl_elem_value *ucontrol)
  27209. {
  27210. ucontrol->value.integer.value[0] = swap_ch;
  27211. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27212. ucontrol->value.integer.value[0]);
  27213. return 0;
  27214. }
  27215. static int msm_routing_stereo_channel_reverse_control_put(
  27216. struct snd_kcontrol *kcontrol,
  27217. struct snd_ctl_elem_value *ucontrol)
  27218. {
  27219. int i, idx, be_index, port_id;
  27220. int ret = 0;
  27221. unsigned long copp;
  27222. pr_debug("%s Swap channel value:%ld\n", __func__,
  27223. ucontrol->value.integer.value[0]);
  27224. swap_ch = ucontrol->value.integer.value[0];
  27225. mutex_lock(&routing_lock);
  27226. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27227. port_id = msm_bedais[be_index].port_id;
  27228. if (!msm_bedais[be_index].active)
  27229. continue;
  27230. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27231. MSM_FRONTEND_DAI_MM_SIZE) {
  27232. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27233. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27234. if (!test_bit(idx, &copp))
  27235. continue;
  27236. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27237. __func__, port_id, idx);
  27238. ret = adm_swap_speaker_channels(
  27239. port_id, idx,
  27240. msm_bedais[be_index].sample_rate,
  27241. swap_ch);
  27242. if (ret) {
  27243. pr_err("%s:Swap_channel failed, err=%d\n",
  27244. __func__, ret);
  27245. goto done;
  27246. }
  27247. }
  27248. }
  27249. }
  27250. done:
  27251. mutex_unlock(&routing_lock);
  27252. return ret;
  27253. }
  27254. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27255. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27256. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27257. msm_routing_stereo_channel_reverse_control_put),
  27258. };
  27259. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27260. struct snd_ctl_elem_info *uinfo)
  27261. {
  27262. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  27263. uinfo->count = 1;
  27264. return 0;
  27265. }
  27266. static int msm_routing_instance_id_support_put(
  27267. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27268. {
  27269. bool supported = ucontrol->value.integer.value[0] ? true : false;
  27270. q6common_update_instance_id_support(supported);
  27271. return 0;
  27272. }
  27273. static int msm_routing_instance_id_support_get(
  27274. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27275. {
  27276. bool supported = false;
  27277. supported = q6common_is_instance_id_supported();
  27278. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  27279. return 0;
  27280. }
  27281. static const struct snd_kcontrol_new
  27282. msm_routing_feature_support_mixer_controls[] = {
  27283. {
  27284. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  27285. SNDRV_CTL_ELEM_ACCESS_WRITE,
  27286. .info = msm_routing_instance_id_support_info,
  27287. .name = "Instance ID Support",
  27288. .put = msm_routing_instance_id_support_put,
  27289. .get = msm_routing_instance_id_support_get,
  27290. },
  27291. };
  27292. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  27293. .hw_params = msm_pcm_routing_hw_params,
  27294. .close = msm_pcm_routing_close,
  27295. .prepare = msm_pcm_routing_prepare,
  27296. };
  27297. /* Not used but frame seems to require it */
  27298. static int msm_routing_probe(struct snd_soc_component *component)
  27299. {
  27300. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  27301. ARRAY_SIZE(msm_qdsp6_widgets));
  27302. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  27303. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  27304. snd_soc_dapm_add_routes(&component->dapm, intercon,
  27305. ARRAY_SIZE(intercon));
  27306. snd_soc_dapm_new_widgets(component->dapm.card);
  27307. snd_soc_add_component_controls(component, lsm_controls,
  27308. ARRAY_SIZE(lsm_controls));
  27309. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  27310. ARRAY_SIZE(aanc_slim_0_rx_mux));
  27311. snd_soc_add_component_controls(component, aanc_noise_level,
  27312. ARRAY_SIZE(aanc_noise_level));
  27313. snd_soc_add_component_controls(component, msm_voc_session_controls,
  27314. ARRAY_SIZE(msm_voc_session_controls));
  27315. snd_soc_add_component_controls(component, app_type_cfg_controls,
  27316. ARRAY_SIZE(app_type_cfg_controls));
  27317. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  27318. ARRAY_SIZE(lsm_app_type_cfg_controls));
  27319. snd_soc_add_component_controls(component, module_cfg_controls,
  27320. ARRAY_SIZE(module_cfg_controls));
  27321. snd_soc_add_component_controls(component,
  27322. stereo_to_custom_stereo_controls,
  27323. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  27324. snd_soc_add_component_controls(component, ec_ref_param_controls,
  27325. ARRAY_SIZE(ec_ref_param_controls));
  27326. snd_soc_add_component_controls(component, channel_mixer_controls,
  27327. ARRAY_SIZE(channel_mixer_controls));
  27328. msm_qti_pp_add_controls(component);
  27329. msm_dts_srs_tm_add_controls(component);
  27330. msm_dolby_dap_add_controls(component);
  27331. snd_soc_add_component_controls(component,
  27332. use_ds1_or_ds2_controls,
  27333. ARRAY_SIZE(use_ds1_or_ds2_controls));
  27334. snd_soc_add_component_controls(component,
  27335. device_pp_params_mixer_controls,
  27336. ARRAY_SIZE(device_pp_params_mixer_controls));
  27337. snd_soc_add_component_controls(component,
  27338. msm_routing_be_dai_name_table_mixer_controls,
  27339. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  27340. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  27341. ARRAY_SIZE(msm_source_tracking_controls));
  27342. snd_soc_add_component_controls(component, adm_channel_config_controls,
  27343. ARRAY_SIZE(adm_channel_config_controls));
  27344. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  27345. ARRAY_SIZE(aptx_dec_license_controls));
  27346. snd_soc_add_component_controls(component,
  27347. stereo_channel_reverse_control,
  27348. ARRAY_SIZE(stereo_channel_reverse_control));
  27349. snd_soc_add_component_controls(
  27350. component, msm_routing_feature_support_mixer_controls,
  27351. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  27352. snd_soc_add_component_controls(component,
  27353. port_multi_channel_map_mixer_controls,
  27354. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  27355. return 0;
  27356. }
  27357. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  27358. {
  27359. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  27360. }
  27361. void msm_routing_pcm_free(struct snd_pcm *pcm)
  27362. {
  27363. msm_pcm_routing_hwdep_free(pcm);
  27364. }
  27365. static struct snd_soc_component_driver msm_soc_routing_component = {
  27366. .name = DRV_NAME,
  27367. .ops = &msm_routing_pcm_ops,
  27368. .probe = msm_routing_probe,
  27369. .pcm_new = msm_routing_pcm_new,
  27370. .pcm_free = msm_routing_pcm_free,
  27371. };
  27372. static int msm_routing_pcm_probe(struct platform_device *pdev)
  27373. {
  27374. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  27375. return snd_soc_register_component(&pdev->dev,
  27376. &msm_soc_routing_component,
  27377. NULL, 0);
  27378. }
  27379. static int msm_routing_pcm_remove(struct platform_device *pdev)
  27380. {
  27381. snd_soc_unregister_component(&pdev->dev);
  27382. return 0;
  27383. }
  27384. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  27385. {.compatible = "qcom,msm-pcm-routing"},
  27386. {}
  27387. };
  27388. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  27389. static struct platform_driver msm_routing_pcm_driver = {
  27390. .driver = {
  27391. .name = "msm-pcm-routing",
  27392. .owner = THIS_MODULE,
  27393. .of_match_table = msm_pcm_routing_dt_match,
  27394. .suppress_bind_attrs = true,
  27395. },
  27396. .probe = msm_routing_pcm_probe,
  27397. .remove = msm_routing_pcm_remove,
  27398. };
  27399. int msm_routing_check_backend_enabled(int fedai_id)
  27400. {
  27401. int i;
  27402. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  27403. /* bad ID assigned in machine driver */
  27404. pr_err("%s: bad MM ID\n", __func__);
  27405. return 0;
  27406. }
  27407. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27408. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  27409. return msm_bedais[i].active;
  27410. }
  27411. return 0;
  27412. }
  27413. static int get_cal_type_index(int32_t cal_type)
  27414. {
  27415. int ret = -EINVAL;
  27416. switch (cal_type) {
  27417. case ADM_TOPOLOGY_CAL_TYPE:
  27418. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  27419. break;
  27420. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  27421. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  27422. break;
  27423. default:
  27424. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  27425. }
  27426. return ret;
  27427. }
  27428. static int msm_routing_set_cal(int32_t cal_type,
  27429. size_t data_size, void *data)
  27430. {
  27431. int ret = 0;
  27432. int cal_index;
  27433. pr_debug("%s\n", __func__);
  27434. cal_index = get_cal_type_index(cal_type);
  27435. if (cal_index < 0) {
  27436. pr_err("%s: Could not get cal index %d\n",
  27437. __func__, cal_index);
  27438. ret = -EINVAL;
  27439. goto done;
  27440. }
  27441. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  27442. if (ret < 0) {
  27443. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  27444. __func__, ret, cal_type);
  27445. ret = -EINVAL;
  27446. goto done;
  27447. }
  27448. /* Pre-load if it is ADM topology */
  27449. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  27450. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27451. msm_routing_load_topology(data_size, data);
  27452. }
  27453. done:
  27454. return ret;
  27455. }
  27456. static void msm_routing_delete_cal_data(void)
  27457. {
  27458. pr_debug("%s\n", __func__);
  27459. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27460. }
  27461. static int msm_routing_init_cal_data(void)
  27462. {
  27463. int ret = 0;
  27464. struct cal_type_info cal_type_info[] = {
  27465. {{ADM_TOPOLOGY_CAL_TYPE,
  27466. {NULL, NULL, NULL,
  27467. msm_routing_set_cal, NULL, NULL} },
  27468. {NULL, NULL, cal_utils_match_buf_num} },
  27469. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  27470. {NULL, NULL, NULL,
  27471. msm_routing_set_cal, NULL, NULL} },
  27472. {NULL, NULL, cal_utils_match_buf_num} },
  27473. };
  27474. pr_debug("%s\n", __func__);
  27475. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  27476. &cal_type_info[0]);
  27477. if (ret < 0) {
  27478. pr_err("%s: could not create cal type!\n",
  27479. __func__);
  27480. ret = -EINVAL;
  27481. goto err;
  27482. }
  27483. return ret;
  27484. err:
  27485. msm_routing_delete_cal_data();
  27486. return ret;
  27487. }
  27488. int __init msm_soc_routing_platform_init(void)
  27489. {
  27490. mutex_init(&routing_lock);
  27491. if (msm_routing_init_cal_data())
  27492. pr_err("%s: could not init cal data!\n", __func__);
  27493. afe_set_routing_callback(
  27494. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  27495. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  27496. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  27497. return platform_driver_register(&msm_routing_pcm_driver);
  27498. }
  27499. void msm_soc_routing_platform_exit(void)
  27500. {
  27501. msm_routing_delete_cal_data();
  27502. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  27503. mutex_destroy(&routing_lock);
  27504. platform_driver_unregister(&msm_routing_pcm_driver);
  27505. }
  27506. MODULE_DESCRIPTION("MSM routing platform driver");
  27507. MODULE_LICENSE("GPL v2");